Index: test/cctest/test-macro-assembler-mips64.cc |
diff --git a/test/cctest/test-macro-assembler-mips64.cc b/test/cctest/test-macro-assembler-mips64.cc |
index 05a9b90d60d4950adccae7793ba8dfae301ba4bf..684b554236c123d3c3083fda744a7454a6b0f8e8 100644 |
--- a/test/cctest/test-macro-assembler-mips64.cc |
+++ b/test/cctest/test-macro-assembler-mips64.cc |
@@ -341,6 +341,9 @@ TEST(jump_tables5) { |
__ jalr(at); |
__ nop(); // Branch delay slot nop. |
__ bc(&done); |
+ // A nop instruction must be generated by the forbidden slot guard |
+ // (Assembler::dd(Label*)) so the first label goes to an 8 bytes aligned |
+ // location. |
for (int i = 0; i < kNumCases; ++i) { |
__ dd(&labels[i]); |
} |