diff options
author | Jacob Bramley <jacob.bramley@arm.com> | 2017-02-10 14:20:37 +0000 |
---|---|---|
committer | Jacob Bramley <jacob.bramley@arm.com> | 2017-02-10 18:16:24 +0000 |
commit | 2ab5c802e70ab95e794032878c95a7e446b23a07 (patch) | |
tree | 36a975742822c3d0190807f787c46e237e3039a6 | |
parent | 8cb4e850c01607da237c7819265e1cfe6034861f (diff) |
AArch64: Make --disassemble output a bit clearer.
This separates each 'COMPARE*' block to make it easier to see what's going on in
a long test.
This is based on a very similar change to the AArch32 tests (641f8b8).
Change-Id: Idc139e10f28ba54393dc7da8ce12b487d3babc88
-rw-r--r-- | test/aarch64/test-disasm-aarch64.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/aarch64/test-disasm-aarch64.cc b/test/aarch64/test-disasm-aarch64.cc index 824eb1e9..a4789d79 100644 --- a/test/aarch64/test-disasm-aarch64.cc +++ b/test/aarch64/test-disasm-aarch64.cc @@ -79,6 +79,7 @@ abort(); \ } \ if (Test::disassemble()) { \ + printf("----\n"); \ printf("%08" PRIx32 "\t%s\n", encoding, disasm.GetOutput()); \ } @@ -101,6 +102,7 @@ abort(); \ } \ if (Test::disassemble()) { \ + printf("----\n"); \ printf("%08" PRIx32 "\t%s\n", encoding, disasm.GetOutput()); \ } @@ -113,6 +115,9 @@ Instruction* instruction = \ masm.GetBuffer()->GetStartAddress<Instruction*>(); \ Instruction* end = masm.GetCursorAddress<Instruction*>(); \ + if (Test::disassemble()) { \ + printf("----\n"); \ + } \ while (instruction != end) { \ decoder.Decode(instruction); \ res.append(disasm.GetOutput()); \ |