[PATCH] D60777: [llvm-objdump] Test tabs in disassemble-align.s with a more visible character

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 08:56:52 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL358504: [llvm-objdump] Test tabs in disassemble-align.s with a more visible character (authored by MaskRay, committed by ).

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60777/new/

https://reviews.llvm.org/D60777

Files:
  llvm/trunk/test/tools/llvm-objdump/X86/disassemble-align.s


Index: llvm/trunk/test/tools/llvm-objdump/X86/disassemble-align.s
===================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/disassemble-align.s
+++ llvm/trunk/test/tools/llvm-objdump/X86/disassemble-align.s
@@ -1,24 +1,26 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
-# RUN: llvm-objdump -d -print-imm-hex %t | tr '\t' ' ' | FileCheck -strict-whitespace %s
 
-# RUN: llvm-objdump -d -print-imm-hex -no-show-raw-insn %t | tr '\t' ' ' | \
+# Use '|' to show where the tabs line up.
+# RUN: llvm-objdump -d -print-imm-hex %t | tr '\t' '|' | FileCheck -strict-whitespace %s
+
+# RUN: llvm-objdump -d -print-imm-hex -no-show-raw-insn %t | tr '\t' '|' | \
 # RUN:   FileCheck -check-prefix=NORAW -strict-whitespace %s
 
 # Instructions are expected to be aligned if the instruction in hex is not too long.
 
-# CHECK:       0: c3                            retq
-# CHECK-NEXT:  1: 48 8b 05 56 34 12 00          movq 0x123456(%rip), %rax
-# CHECK-NEXT:  8: 48 b8 54 55 55 55 55 55 55 55 movabsq $0x5555555555555554, %rax
-# CHECK-NEXT: 12: 8f ea 00 12 4c 02 40 00 00 00 00      lwpval $0x0, 0x40(%rdx,%rax), %r15d
-# CHECK-NEXT: 1d: 8f ea 00 12 04 25 f0 1c f0 1c 00 00 00 00     lwpins $0x0, 0x1cf01cf0, %r15d
-# CHECK-NEXT: 2b: ff ff                         <unknown>
-
-# NORAW:       0:       retq
-# NORAW-NEXT:  1:       movq 0x123456(%rip), %rax
-# NORAW-NEXT:  8:       movabsq $0x5555555555555554, %rax
-# NORAW-NEXT: 12:       lwpval $0x0, 0x40(%rdx,%rax), %r15d
-# NORAW-NEXT: 1d:       lwpins $0x0, 0x1cf01cf0, %r15d
-# NORAW-NEXT: 2b:       <unknown>
+# CHECK:       0: c3                           |retq
+# CHECK-NEXT:  1: 48 8b 05 56 34 12 00         |movq|0x123456(%rip), %rax
+# CHECK-NEXT:  8: 48 b8 54 55 55 55 55 55 55 55|movabsq|$0x5555555555555554, %rax
+# CHECK-NEXT: 12: 8f ea 00 12 4c 02 40 00 00 00 00     |lwpval|$0x0, 0x40(%rdx,%rax), %r15d
+# CHECK-NEXT: 1d: 8f ea 00 12 04 25 f0 1c f0 1c 00 00 00 00    |lwpins|$0x0, 0x1cf01cf0, %r15d
+# CHECK-NEXT: 2b: ff ff                        |<unknown>
+
+# NORAW:       0:      |retq
+# NORAW-NEXT:  1:      |movq|0x123456(%rip), %rax
+# NORAW-NEXT:  8:      |movabsq|$0x5555555555555554, %rax
+# NORAW-NEXT: 12:      |lwpval|$0x0, 0x40(%rdx,%rax), %r15d
+# NORAW-NEXT: 1d:      |lwpins|$0x0, 0x1cf01cf0, %r15d
+# NORAW-NEXT: 2b:      |<unknown>
 
 .text
   retq


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60777.195397.patch
Type: text/x-patch
Size: 2392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190416/c9bf3dfd/attachment.bin>


More information about the llvm-commits mailing list