Taints the non-acquire RMW's store address with the load part
[oota-llvm.git] / test / MC / MachO / darwin-x86_64-diff-reloc-assign.s
1 // RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
2
3 // Test case for rdar://10743265
4
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
11
12 _base = .
13
14 .long (0x2000) + _start_ap_2 - _base 
15 .word 0
16
17 _start_ap_2:
18         cli
19
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: ]