From a148de08f8b4ccdb6e79410cb4b3169b44328201 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 20 Mar 2020 19:00:01 -0700 Subject: [PATCH] Translate Wasm's `I8x16ShrU` to Cranelift's `ushr.i8x16` --- cranelift/wasm/src/code_translator.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index 07f7f7aab6..1766252a27 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -1406,7 +1406,7 @@ pub fn translate_operator( let b_mod_bitwidth = builder.ins().band_imm(b, bitwidth - 1); state.push1(builder.ins().ishl(bitcast_a, b_mod_bitwidth)) } - Operator::I16x8ShrU | Operator::I32x4ShrU | Operator::I64x2ShrU => { + Operator::I8x16ShrU | Operator::I16x8ShrU | Operator::I32x4ShrU | Operator::I64x2ShrU => { let (a, b) = state.pop2(); let bitcast_a = optionally_bitcast_vector(a, type_of(op), builder); let bitwidth = i64::from(builder.func.dfg.value_type(a).bits()); @@ -1542,7 +1542,6 @@ pub fn translate_operator( } Operator::I8x16Shl | Operator::I8x16ShrS - | Operator::I8x16ShrU | Operator::I8x16Mul | Operator::I64x2Mul | Operator::I64x2ShrS