Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / MachO / reloc-diff.s
blob13a5c17586904c0d1a66a4f77dae92161be2edd4
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s
3 _local_def:
4 .p2align 2
5 .globl _external_def
6 _external_def:
7 Ltemp:
8 ret
10 .data
11 .long _external_def - _local_def
12 .long Ltemp - _local_def
14 .long _local_def - _external_def
15 .long Ltemp - _external_def
17 .long _local_def - Ltemp
18 .long _external_def - Ltemp
20 // CHECK: Relocations [
21 // CHECK-NEXT: Section __data {
22 // CHECK-NEXT: 0x10 0 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x0
23 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 0x0
24 // CHECK-NEXT: 0x8 0 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x0
25 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 0x0
26 // CHECK-NEXT: 0x4 0 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x0
27 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 0x0
28 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_SECTDIFF 1 0x0
29 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 0x0
30 // CHECK-NEXT: }
31 // CHECK-NEXT: ]