Index: test/cctest/test-disasm-mips64.cc |
diff --git a/test/cctest/test-disasm-mips64.cc b/test/cctest/test-disasm-mips64.cc |
index 225a1e7f0b1baa253c71d3d4157ab2922d10be2d..4bc6fb5305977ea4c06d77e7c4f65200e839a48d 100644 |
--- a/test/cctest/test-disasm-mips64.cc |
+++ b/test/cctest/test-disasm-mips64.cc |
@@ -98,7 +98,7 @@ if (failure) { \ |
byte *progcounter = &buffer[pc_offset]; \ |
char str_with_address[100]; \ |
snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \ |
- compare_string, progcounter + 4 + (offset << 2)); \ |
+ compare_string, progcounter + 4 + (offset * 4)); \ |
assm.asm_; \ |
if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \ |
} |
@@ -110,7 +110,7 @@ if (failure) { \ |
byte *progcounter = &buffer[pc_offset]; \ |
char str_with_address[100]; \ |
snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \ |
- compare_string, progcounter + (offset << 2)); \ |
+ compare_string, progcounter + (offset * 4)); \ |
assm.asm_; \ |
if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \ |
} |