Skip to content

Commit 7992960

Browse files
committed
Avoid using x86_pshufb on non-x86 platforms.
1 parent 505a877 commit 7992960

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/cranelift/src/func_environ.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3445,7 +3445,7 @@ impl FuncEnvironment<'_> {
34453445
) -> ir::Value {
34463446
// As above, fall back to a builtin if we lack SSSE3.
34473447
if !self.is_x86() || self.isa.has_x86_pshufb_lowering() {
3448-
if self.relaxed_simd_deterministic() || self.isa.triple().is_pulley() {
3448+
if !self.is_x86() || self.relaxed_simd_deterministic() {
34493449
builder.ins().swizzle(a, b)
34503450
} else {
34513451
builder.ins().x86_pshufb(a, b)

0 commit comments

Comments
 (0)