[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / MachO / reloc-diff.s
blobf9d58d97e529e716b6c38fe8dbb561955d6705d3
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
3 _local_def:
4 .globl _external_def
5 _external_def:
6 Ltemp:
7 ret
9 .data
10 .long _external_def - _local_def
11 .long Ltemp - _local_def
13 .long _local_def - _external_def
14 .long Ltemp - _external_def
16 .long _local_def - Ltemp
17 .long _external_def - Ltemp
19 // CHECK: Relocations [
20 // CHECK-NEXT: Section __data {
21 // CHECK-NEXT: 0x10 0 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x0
22 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 0x0
23 // CHECK-NEXT: 0x8 0 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x0
24 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 0x0
25 // CHECK-NEXT: 0x4 0 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x0
26 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 0x0
27 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_SECTDIFF 1 0x0
28 // CHECK-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 0x0
29 // CHECK-NEXT: }
30 // CHECK-NEXT: ]