diff --git a/crates/ir/src/for_each_op.rs b/crates/ir/src/for_each_op.rs index 759071cbbb..f4453aefa5 100644 --- a/crates/ir/src/for_each_op.rs +++ b/crates/ir/src/for_each_op.rs @@ -4027,8 +4027,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i32.shl` equivalent Wasmi instruction with 16-bit immediate `lhs` operand. - #[snake_name(i32_shl_imm16_lhs)] - I32ShlImm16Lhs { + #[snake_name(i32_shl_imm16)] + I32ShlImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4055,8 +4055,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i32.shr_u` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i32_shr_u_imm16_lhs)] - I32ShrUImm16Lhs { + #[snake_name(i32_shr_u_imm16)] + I32ShrUImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4083,8 +4083,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i32.shr_s` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i32_shr_s_imm16_lhs)] - I32ShrSImm16Lhs { + #[snake_name(i32_shr_s_imm16)] + I32ShrSImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4111,8 +4111,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i32.rotl` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i32_rotl_imm16_lhs)] - I32RotlImm16Lhs { + #[snake_name(i32_rotl_imm16)] + I32RotlImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4139,8 +4139,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i32.rotr` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i32_rotr_imm16_lhs)] - I32RotrImm16Lhs { + #[snake_name(i32_rotr_imm16)] + I32RotrImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4487,8 +4487,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i64.shl` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i64_shl_imm16_lhs)] - I64ShlImm16Lhs { + #[snake_name(i64_shl_imm16)] + I64ShlImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4515,8 +4515,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i64.shr_u` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i64_shr_u_imm16_lhs)] - I64ShrUImm16Lhs { + #[snake_name(i64_shr_u_imm16)] + I64ShrUImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4543,8 +4543,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i64.shr_s` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i64_shr_s_imm16_lhs)] - I64ShrSImm16Lhs { + #[snake_name(i64_shr_s_imm16)] + I64ShrSImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4571,8 +4571,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i64.rotl` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i64_rotl_imm16_lhs)] - I64RotlImm16Lhs { + #[snake_name(i64_rotl_imm16)] + I64RotlImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, @@ -4599,8 +4599,8 @@ macro_rules! for_each_op { rhs: ShiftAmount, }, /// A Wasm `i64.rotr` equivalent Wasmi instruction with 16-bit immediate `lhs` value. - #[snake_name(i64_rotr_imm16_lhs)] - I64RotrImm16Lhs { + #[snake_name(i64_rotr_imm16)] + I64RotrImm16 { @result: Reg, /// The 16-bit immediate value. lhs: Const16, diff --git a/crates/wasmi/src/engine/executor/instrs.rs b/crates/wasmi/src/engine/executor/instrs.rs index ede1c62fbc..58e9cf523e 100644 --- a/crates/wasmi/src/engine/executor/instrs.rs +++ b/crates/wasmi/src/engine/executor/instrs.rs @@ -969,32 +969,32 @@ impl<'engine> Executor<'engine> { } Instr::I32Shl { result, lhs, rhs } => self.execute_i32_shl(result, lhs, rhs), Instr::I32ShlBy { result, lhs, rhs } => self.execute_i32_shl_by(result, lhs, rhs), - Instr::I32ShlImm16Lhs { result, lhs, rhs } => { - self.execute_i32_shl_imm16_lhs(result, lhs, rhs) + Instr::I32ShlImm16 { result, lhs, rhs } => { + self.execute_i32_shl_imm16(result, lhs, rhs) } Instr::I32ShrU { result, lhs, rhs } => self.execute_i32_shr_u(result, lhs, rhs), Instr::I32ShrUBy { result, lhs, rhs } => { self.execute_i32_shr_u_by(result, lhs, rhs) } - Instr::I32ShrUImm16Lhs { result, lhs, rhs } => { - self.execute_i32_shr_u_imm16_lhs(result, lhs, rhs) + Instr::I32ShrUImm16 { result, lhs, rhs } => { + self.execute_i32_shr_u_imm16(result, lhs, rhs) } Instr::I32ShrS { result, lhs, rhs } => self.execute_i32_shr_s(result, lhs, rhs), Instr::I32ShrSBy { result, lhs, rhs } => { self.execute_i32_shr_s_by(result, lhs, rhs) } - Instr::I32ShrSImm16Lhs { result, lhs, rhs } => { - self.execute_i32_shr_s_imm16_lhs(result, lhs, rhs) + Instr::I32ShrSImm16 { result, lhs, rhs } => { + self.execute_i32_shr_s_imm16(result, lhs, rhs) } Instr::I32Rotl { result, lhs, rhs } => self.execute_i32_rotl(result, lhs, rhs), Instr::I32RotlBy { result, lhs, rhs } => self.execute_i32_rotl_by(result, lhs, rhs), - Instr::I32RotlImm16Lhs { result, lhs, rhs } => { - self.execute_i32_rotl_imm16_lhs(result, lhs, rhs) + Instr::I32RotlImm16 { result, lhs, rhs } => { + self.execute_i32_rotl_imm16(result, lhs, rhs) } Instr::I32Rotr { result, lhs, rhs } => self.execute_i32_rotr(result, lhs, rhs), Instr::I32RotrBy { result, lhs, rhs } => self.execute_i32_rotr_by(result, lhs, rhs), - Instr::I32RotrImm16Lhs { result, lhs, rhs } => { - self.execute_i32_rotr_imm16_lhs(result, lhs, rhs) + Instr::I32RotrImm16 { result, lhs, rhs } => { + self.execute_i32_rotr_imm16(result, lhs, rhs) } Instr::I64Clz { result, input } => self.execute_i64_clz(result, input), Instr::I64Ctz { result, input } => self.execute_i64_ctz(result, input), @@ -1053,32 +1053,32 @@ impl<'engine> Executor<'engine> { } Instr::I64Shl { result, lhs, rhs } => self.execute_i64_shl(result, lhs, rhs), Instr::I64ShlBy { result, lhs, rhs } => self.execute_i64_shl_by(result, lhs, rhs), - Instr::I64ShlImm16Lhs { result, lhs, rhs } => { - self.execute_i64_shl_imm16_lhs(result, lhs, rhs) + Instr::I64ShlImm16 { result, lhs, rhs } => { + self.execute_i64_shl_imm16(result, lhs, rhs) } Instr::I64ShrU { result, lhs, rhs } => self.execute_i64_shr_u(result, lhs, rhs), Instr::I64ShrUBy { result, lhs, rhs } => { self.execute_i64_shr_u_by(result, lhs, rhs) } - Instr::I64ShrUImm16Lhs { result, lhs, rhs } => { - self.execute_i64_shr_u_imm16_lhs(result, lhs, rhs) + Instr::I64ShrUImm16 { result, lhs, rhs } => { + self.execute_i64_shr_u_imm16(result, lhs, rhs) } Instr::I64ShrS { result, lhs, rhs } => self.execute_i64_shr_s(result, lhs, rhs), Instr::I64ShrSBy { result, lhs, rhs } => { self.execute_i64_shr_s_by(result, lhs, rhs) } - Instr::I64ShrSImm16Lhs { result, lhs, rhs } => { - self.execute_i64_shr_s_imm16_lhs(result, lhs, rhs) + Instr::I64ShrSImm16 { result, lhs, rhs } => { + self.execute_i64_shr_s_imm16(result, lhs, rhs) } Instr::I64Rotl { result, lhs, rhs } => self.execute_i64_rotl(result, lhs, rhs), Instr::I64RotlBy { result, lhs, rhs } => self.execute_i64_rotl_by(result, lhs, rhs), - Instr::I64RotlImm16Lhs { result, lhs, rhs } => { - self.execute_i64_rotl_imm16_lhs(result, lhs, rhs) + Instr::I64RotlImm16 { result, lhs, rhs } => { + self.execute_i64_rotl_imm16(result, lhs, rhs) } Instr::I64Rotr { result, lhs, rhs } => self.execute_i64_rotr(result, lhs, rhs), Instr::I64RotrBy { result, lhs, rhs } => self.execute_i64_rotr_by(result, lhs, rhs), - Instr::I64RotrImm16Lhs { result, lhs, rhs } => { - self.execute_i64_rotr_imm16_lhs(result, lhs, rhs) + Instr::I64RotrImm16 { result, lhs, rhs } => { + self.execute_i64_rotr_imm16(result, lhs, rhs) } Instr::I32WrapI64 { result, input } => self.execute_i32_wrap_i64(result, input), Instr::I32Extend8S { result, input } => self.execute_i32_extend8_s(result, input), diff --git a/crates/wasmi/src/engine/executor/instrs/binary.rs b/crates/wasmi/src/engine/executor/instrs/binary.rs index 14db0cfec3..b456a39229 100644 --- a/crates/wasmi/src/engine/executor/instrs/binary.rs +++ b/crates/wasmi/src/engine/executor/instrs/binary.rs @@ -140,17 +140,17 @@ impl Executor<'_> { (i32, Instruction::I32SubImm16Rev, execute_i32_sub_imm16_lhs, UntypedVal::i32_sub), (i64, Instruction::I64SubImm16Rev, execute_i64_sub_imm16_lhs, UntypedVal::i64_sub), - (i32, Instruction::I32ShlImm16Rev, execute_i32_shl_imm16_lhs, UntypedVal::i32_shl), - (i32, Instruction::I32ShrUImm16Rev, execute_i32_shr_u_imm16_lhs, UntypedVal::i32_shr_u), - (i32, Instruction::I32ShrSImm16Rev, execute_i32_shr_s_imm16_lhs, UntypedVal::i32_shr_s), - (i32, Instruction::I32RotlImm16Rev, execute_i32_rotl_imm16_lhs, UntypedVal::i32_rotl), - (i32, Instruction::I32RotrImm16Rev, execute_i32_rotr_imm16_lhs, UntypedVal::i32_rotr), - - (i64, Instruction::I64ShlImm16Rev, execute_i64_shl_imm16_lhs, UntypedVal::i64_shl), - (i64, Instruction::I64ShrUImm16Rev, execute_i64_shr_u_imm16_lhs, UntypedVal::i64_shr_u), - (i64, Instruction::I64ShrSImm16Rev, execute_i64_shr_s_imm16_lhs, UntypedVal::i64_shr_s), - (i64, Instruction::I64RotlImm16Rev, execute_i64_rotl_imm16_lhs, UntypedVal::i64_rotl), - (i64, Instruction::I64RotrImm16Rev, execute_i64_rotr_imm16_lhs, UntypedVal::i64_rotr), + (i32, Instruction::I32ShlImm16Rev, execute_i32_shl_imm16, UntypedVal::i32_shl), + (i32, Instruction::I32ShrUImm16Rev, execute_i32_shr_u_imm16, UntypedVal::i32_shr_u), + (i32, Instruction::I32ShrSImm16Rev, execute_i32_shr_s_imm16, UntypedVal::i32_shr_s), + (i32, Instruction::I32RotlImm16Rev, execute_i32_rotl_imm16, UntypedVal::i32_rotl), + (i32, Instruction::I32RotrImm16Rev, execute_i32_rotr_imm16, UntypedVal::i32_rotr), + + (i64, Instruction::I64ShlImm16Rev, execute_i64_shl_imm16, UntypedVal::i64_shl), + (i64, Instruction::I64ShrUImm16Rev, execute_i64_shr_u_imm16, UntypedVal::i64_shr_u), + (i64, Instruction::I64ShrSImm16Rev, execute_i64_shr_s_imm16, UntypedVal::i64_shr_s), + (i64, Instruction::I64RotlImm16Rev, execute_i64_rotl_imm16, UntypedVal::i64_rotl), + (i64, Instruction::I64RotrImm16Rev, execute_i64_rotr_imm16, UntypedVal::i64_rotr), } } diff --git a/crates/wasmi/src/engine/translator/mod.rs b/crates/wasmi/src/engine/translator/mod.rs index 10d5ddceb9..9a43e43fd3 100644 --- a/crates/wasmi/src/engine/translator/mod.rs +++ b/crates/wasmi/src/engine/translator/mod.rs @@ -1676,7 +1676,7 @@ impl FuncTranslator { &mut self, make_instr: fn(result: Reg, lhs: Reg, rhs: Reg) -> Instruction, make_instr_by: fn(result: Reg, lhs: Reg, rhs: ShiftAmount) -> Instruction, - make_instr_imm16_rev: fn(result: Reg, lhs: Const16, rhs: Reg) -> Instruction, + make_instr_imm16: fn(result: Reg, lhs: Const16, rhs: Reg) -> Instruction, consteval: fn(TypedVal, TypedVal) -> TypedVal, make_instr_imm_reg_opt: fn(&mut Self, lhs: T, rhs: Reg) -> Result, ) -> Result<(), Error> @@ -1709,7 +1709,7 @@ impl FuncTranslator { self.alloc.stack.push_const(lhs); return Ok(()); } - if self.try_push_binary_instr_imm16_rev(T::from(lhs), rhs, make_instr_imm16_rev)? { + if self.try_push_binary_instr_imm16_rev(T::from(lhs), rhs, make_instr_imm16)? { // Optimization was applied: return early. return Ok(()); } diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i32_rotl.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i32_rotl.rs index a74fe406ed..9e67c2b033 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i32_rotl.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i32_rotl.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_rotl_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_rotl_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i32_rotr.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i32_rotr.rs index b272707027..5df3e83349 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i32_rotr.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i32_rotr.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_rotr_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_rotr_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i32_shl.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i32_shl.rs index 6ccaf37ed5..a7e634d9d6 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i32_shl.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i32_shl.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_shl_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_shl_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i32_shr_s.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i32_shr_s.rs index 1837b74c01..6265a0422f 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i32_shr_s.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i32_shr_s.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_shr_s_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_shr_s_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i32_shr_u.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i32_shr_u.rs index f17f5056ee..4724f7b1ca 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i32_shr_u.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i32_shr_u.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_shr_u_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i32_shr_u_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i64_rotl.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i64_rotl.rs index 44f6cbc88c..c0f18ffec8 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i64_rotl.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i64_rotl.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_rotl_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_rotl_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i64_rotr.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i64_rotr.rs index 26a94f3bc9..284b204102 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i64_rotr.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i64_rotr.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_rotr_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_rotr_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i64_shl.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i64_shl.rs index 2409ab7a30..37876ac8b3 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i64_shl.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i64_shl.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_shl_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_shl_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i64_shr_s.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i64_shr_s.rs index 2f99a91205..1ac7ba8266 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i64_shr_s.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i64_shr_s.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_shr_s_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_shr_s_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/tests/op/binary/i64_shr_u.rs b/crates/wasmi/src/engine/translator/tests/op/binary/i64_shr_u.rs index abd757e289..5cf8ce2c5c 100644 --- a/crates/wasmi/src/engine/translator/tests/op/binary/i64_shr_u.rs +++ b/crates/wasmi/src/engine/translator/tests/op/binary/i64_shr_u.rs @@ -17,7 +17,7 @@ fn reg_imm_lhs() { #[test] #[cfg_attr(miri, ignore)] fn reg_imm16_lhs() { - test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_shr_u_imm16_lhs) + test_binary_reg_imm16_lhs::(WASM_OP, 100, Instruction::i64_shr_u_imm16) } #[test] diff --git a/crates/wasmi/src/engine/translator/visit.rs b/crates/wasmi/src/engine/translator/visit.rs index 791d475b5e..904bb5458c 100644 --- a/crates/wasmi/src/engine/translator/visit.rs +++ b/crates/wasmi/src/engine/translator/visit.rs @@ -2274,7 +2274,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift::( Instruction::i32_shl, Instruction::i32_shl_by, - Instruction::i32_shl_imm16_lhs, + Instruction::i32_shl_imm16, TypedVal::i32_shl, Self::no_custom_opt, ) @@ -2284,7 +2284,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift( Instruction::i32_shr_s, Instruction::i32_shr_s_by, - Instruction::i32_shr_s_imm16_lhs, + Instruction::i32_shr_s_imm16, TypedVal::i32_shr_s, |this, lhs: i32, _rhs: Reg| { if lhs == -1 { @@ -2301,7 +2301,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift::( Instruction::i32_shr_u, Instruction::i32_shr_u_by, - Instruction::i32_shr_u_imm16_lhs, + Instruction::i32_shr_u_imm16, TypedVal::i32_shr_u, Self::no_custom_opt, ) @@ -2311,7 +2311,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift( Instruction::i32_rotl, Instruction::i32_rotl_by, - Instruction::i32_rotl_imm16_lhs, + Instruction::i32_rotl_imm16, TypedVal::i32_rotl, |this, lhs: i32, _rhs: Reg| { if lhs == -1 { @@ -2328,7 +2328,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift( Instruction::i32_rotr, Instruction::i32_rotr_by, - Instruction::i32_rotr_imm16_lhs, + Instruction::i32_rotr_imm16, TypedVal::i32_rotr, |this, lhs: i32, _rhs: Reg| { if lhs == -1 { @@ -2591,7 +2591,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift::( Instruction::i64_shl, Instruction::i64_shl_by, - Instruction::i64_shl_imm16_lhs, + Instruction::i64_shl_imm16, TypedVal::i64_shl, Self::no_custom_opt, ) @@ -2601,7 +2601,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift( Instruction::i64_shr_s, Instruction::i64_shr_s_by, - Instruction::i64_shr_s_imm16_lhs, + Instruction::i64_shr_s_imm16, TypedVal::i64_shr_s, |this, lhs: i64, _rhs: Reg| { if lhs == -1 { @@ -2618,7 +2618,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift::( Instruction::i64_shr_u, Instruction::i64_shr_u_by, - Instruction::i64_shr_u_imm16_lhs, + Instruction::i64_shr_u_imm16, TypedVal::i64_shr_u, Self::no_custom_opt, ) @@ -2628,7 +2628,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift( Instruction::i64_rotl, Instruction::i64_rotl_by, - Instruction::i64_rotl_imm16_lhs, + Instruction::i64_rotl_imm16, TypedVal::i64_rotl, |this, lhs: i64, _rhs: Reg| { if lhs == -1 { @@ -2645,7 +2645,7 @@ impl<'a> VisitOperator<'a> for FuncTranslator { self.translate_shift( Instruction::i64_rotr, Instruction::i64_rotr_by, - Instruction::i64_rotr_imm16_lhs, + Instruction::i64_rotr_imm16, TypedVal::i64_rotr, |this, lhs: i64, _rhs: Reg| { if lhs == -1 {