| Index: test/cctest/test-disasm-arm.cc
|
| diff --git a/test/cctest/test-disasm-arm.cc b/test/cctest/test-disasm-arm.cc
|
| index 0e9432d95df17b9ad2bde81b7d849cbfe11303aa..3a2d9e8361c163fabf1b95c9bfcc22f812afe861 100644
|
| --- a/test/cctest/test-disasm-arm.cc
|
| +++ b/test/cctest/test-disasm-arm.cc
|
| @@ -92,6 +92,10 @@ bool DisassembleAndCompare(byte* pc, const char* compare_string) {
|
| if (!DisassembleAndCompare(progcounter, compare_string)) failure = true; \
|
| }
|
|
|
| +// Force emission of any pending literals into a pool.
|
| +#define EMIT_PENDING_LITERALS() \
|
| + assm.CheckConstPool(true, false)
|
| +
|
|
|
| // Verify that all invocations of the COMPARE macro passed successfully.
|
| // Exit with a failure if at least one of the tests failed.
|
| @@ -280,6 +284,10 @@ TEST(Type0) {
|
| // is pretty strange anyway.
|
| COMPARE(mov(r5, Operand(0x01234), SetCC, ne),
|
| "159fc000 ldrne ip, [pc, #+0]");
|
| + // Emit a literal pool now, otherwise this could be dumped later, in the
|
| + // middle of a different test.
|
| + EMIT_PENDING_LITERALS();
|
| +
|
| // We only disassemble one instruction so the eor instruction is not here.
|
| // The eor does the setcc so we get a movw here.
|
| COMPARE(eor(r5, r4, Operand(0x1234), SetCC, ne),
|
|
|