Index: src/arm/disasm-arm.cc |
diff --git a/src/arm/disasm-arm.cc b/src/arm/disasm-arm.cc |
index 4e631b08a364424543a3a6aea2798c931503dc17..19f8c2f8e21f124205dbabc64a2d14db16df0bd5 100644 |
--- a/src/arm/disasm-arm.cc |
+++ b/src/arm/disasm-arm.cc |
@@ -33,6 +33,7 @@ |
#if V8_TARGET_ARCH_ARM |
#include "src/arm/constants-arm.h" |
+#include "src/base/bits.h" |
#include "src/base/platform/platform.h" |
#include "src/disasm.h" |
#include "src/macro-assembler.h" |
@@ -226,7 +227,7 @@ void Decoder::PrintShiftRm(Instruction* instr) { |
void Decoder::PrintShiftImm(Instruction* instr) { |
int rotate = instr->RotateValue() * 2; |
int immed8 = instr->Immed8Value(); |
- int imm = (immed8 >> rotate) | (immed8 << (32 - rotate)); |
+ int imm = base::bits::RotateRight32(immed8, rotate); |
out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, "#%d", imm); |
} |