[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / MachO / darwin-x86_64-diff-reloc-assign-2.s
blobe3fa1335a0c433d6b98e0a6d89ed04216d27ae73
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: ]