Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / MachO_self_relocation.test
blob45e3eae0720c532b513cd41edfed97b85c6449e7
1 # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %S/Inputs/MachO_self_relocation.s
2 # RUN: llvm-jitlink -noexec -show-graphs='.*' %t 2>&1 | \
3 # RUN:   FileCheck -check-prefix=WITHOUT %s
4 # RUN: llvm-jitlink -noexec -show-graphs='.*' -add-self-relocations %t 2>&1 | \
5 # RUN:   FileCheck -check-prefix=CHECK %s
7 # WITHOUT: block
8 # WITHOUT-NEXT: symbols
9 # WITHOUT-NEXT:   _form_func_ptr
10 # WITHOUT-NEXT: edges
11 # WITHOUT-NEXT:   (block + 0x0000000a), addend = -0x00000004, kind = Delta32, target = _other
12 # WITHOUT-NOT:   kind =
14 # CHECK: block
15 # CHECK-NEXT: symbols
16 # CHECK-NEXT:   _form_func_ptr
17 # CHECK-NEXT: edges
18 # CHECK-NEXT:   (block + 0x00000003), addend = -0x00000004, kind = Delta32, target = _form_func_ptr
19 # CHECK-NEXT:   (block + 0x0000000a), addend = -0x00000004, kind = Delta32, target = _other
20 # CHECK-NEXT:   (block + 0x00000011), addend = -0x00000004, kind = Delta32, target = _form_func_ptr
21 # CHECK-NEXT:   (block + 0x00000019), addend = -0x00000004, kind = Delta32, target = _form_func_ptr
22 # CHECK-NOT:   kind =
24 # WITHOUT: block
25 # WITHOUT-NEXT: symbols
26 # WITHOUT-NEXT:   _other
27 # WITHOUT-NEXT: edges
28 # WITHOUT-NEXT:   kind = Delta32, target = _form_func_ptr
30 # CHECK: block
31 # CHECK-NEXT: symbols
32 # CHECK-NEXT:   _other
33 # CHECK-NEXT: edges
34 # CHECK-NEXT:   kind = Delta32, target = _form_func_ptr