Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index 831627dde5cfed8553a8f036e2b53008a78a3bc1..3f2f1c9fe001031be0839eb65b61594d13e28fe1 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -331,17 +331,16 @@ |
} while (0) |
-#define ASSEMBLE_SHIFT(asm_instr, width) \ |
- do { \ |
- if (instr->InputAt(1)->IsRegister()) { \ |
- __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), \ |
- i.InputRegister##width(1)); \ |
- } else { \ |
- uint32_t imm = \ |
- static_cast<uint32_t>(i.InputOperand##width(1).ImmediateValue()); \ |
- __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), \ |
- imm % (width)); \ |
- } \ |
+#define ASSEMBLE_SHIFT(asm_instr, width) \ |
+ do { \ |
+ if (instr->InputAt(1)->IsRegister()) { \ |
+ __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), \ |
+ i.InputRegister##width(1)); \ |
+ } else { \ |
+ int imm = \ |
+ static_cast<int>(i.InputOperand##width(1).immediate().value()); \ |
+ __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), imm); \ |
+ } \ |
} while (0) |