[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / MachO / darwin-x86_64-diff-reloc-assign.s
blob7a7919786d411a77614754666d3a1f6678753880
1 // RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
3 // Test case for rdar://10743265
5 // This tests that this expression does not cause a crash and produces two
6 // relocation entries:
7 // Relocation information (__TEXT,__text) 2 entries
8 // address pcrel length extern type scattered symbolnum/value
9 // 00000000 False long True SUB False _base
10 // 00000000 False long True UNSIGND False _start_ap_2
12 _base = .
14 .long (0x2000) + _start_ap_2 - _base
15 .word 0
17 _start_ap_2:
18 cli
20 // CHECK: Relocations [
21 // CHECK: Section __text {
22 // CHECK: 0x0 0 2 1 X86_64_RELOC_SUBTRACTOR 0 _base
23 // CHECK: 0x0 0 2 1 X86_64_RELOC_UNSIGNED 0 _start_ap_2
24 // CHECK: }
25 // CHECK: ]