Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / MachO / pending-labels.s
bloba4644357ca4ee933678b1c05d8b38d74f609a97c
1 // Verify relocations for temporary labels are referenced by real symbols
2 // at the same address.
3 //
4 // RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj -o - %s | llvm-objdump -r - | FileCheck %s
6 L1:
7 .section __TEXT,__text_cold,regular,pure_instructions
8 L2:
9 .text
10 L3:
11 .section __TEXT,__text_cold,regular,pure_instructions
12 L4:
13 _function2:
14 L5:
15 nop
16 L6:
17 .text
18 L7:
19 _function1:
20 L8:
21 nop
23 .data
24 __data:
25 .quad L1-.
26 .quad L2-.
27 .quad L3-.
28 .quad L4-.
29 .quad L5-.
30 .quad L6-.
31 .quad L7-.
32 .quad L8-.
33 // CHECK: 0000000000000038 X86_64_RELOC_SUBTRACTOR _function1-__data
34 // CHECK: 0000000000000038 X86_64_RELOC_UNSIGNED _function1
35 // CHECK: 0000000000000030 X86_64_RELOC_SUBTRACTOR _function1-__data
36 // CHECK: 0000000000000030 X86_64_RELOC_UNSIGNED _function1
37 // CHECK: 0000000000000028 X86_64_RELOC_SUBTRACTOR _function2-__data
38 // CHECK: 0000000000000028 X86_64_RELOC_UNSIGNED _function2
39 // CHECK: 0000000000000020 X86_64_RELOC_SUBTRACTOR _function2-__data
40 // CHECK: 0000000000000020 X86_64_RELOC_UNSIGNED _function2
41 // CHECK: 0000000000000018 X86_64_RELOC_SUBTRACTOR _function2-__data
42 // CHECK: 0000000000000018 X86_64_RELOC_UNSIGNED _function2
43 // CHECK: 0000000000000010 X86_64_RELOC_SUBTRACTOR _function1-__data
44 // CHECK: 0000000000000010 X86_64_RELOC_UNSIGNED _function1
45 // CHECK: 0000000000000008 X86_64_RELOC_SUBTRACTOR _function2-__data
46 // CHECK: 0000000000000008 X86_64_RELOC_UNSIGNED _function2
47 // CHECK: 0000000000000000 X86_64_RELOC_SUBTRACTOR _function1-__data
48 // CHECK: 0000000000000000 X86_64_RELOC_UNSIGNED _function1