Browse Source

Use local for condition generation after shifts

Fabian 1 year ago
parent
commit
6524bbc569
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/rust/codegen.rs

+ 4 - 0
src/rust/codegen.rs

@@ -355,6 +355,10 @@ fn gen_get_last_result(builder: &mut WasmBuilder, previous_instruction: &Instruc
         | Instruction::Bitwise {
             dest: InstructionOperandDest::WasmLocal(l),
             opsize: OPSIZE_32,
+        }
+        | Instruction::NonZeroShift {
+            dest: InstructionOperandDest::WasmLocal(l),
+            opsize: OPSIZE_32,
         } => builder.get_local(&l),
         Instruction::Cmp {
             dest: InstructionOperandDest::WasmLocal(l),