Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / MachO / darwin-x86_64-diff-reloc-assign-2.s
blobb01857ed8c38af1f84e9074b72eeeda6c82553b4
1 // RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s
3 .data
4 L_var1:
5 L_var2:
6 .long L_var2 - L_var1
7 .set L_var3, .
8 .set L_var4, .
9 .long L_var4 - L_var3
11 // CHECK: Relocations [
12 // CHECK-NEXT: Section __data {
13 // CHECK-NEXT: Relocation {
14 // CHECK-NEXT: Offset: 0x4
15 // CHECK-NEXT: PCRel: 0
16 // CHECK-NEXT: Length: 2
17 // CHECK-NEXT: Type: X86_64_RELOC_SUBTRACTOR (5)
18 // CHECK-NEXT: Section: __data (2)
19 // CHECK-NEXT: }
20 // CHECK-NEXT: Relocation {
21 // CHECK-NEXT: Offset: 0x4
22 // CHECK-NEXT: PCRel: 0
23 // CHECK-NEXT: Length: 2
24 // CHECK-NEXT: Type: X86_64_RELOC_UNSIGNED (0)
25 // CHECK-NEXT: Section: __data (2)
26 // CHECK-NEXT: }
27 // CHECK-NEXT: }
28 // CHECK-NEXT: ]