xref: /llvm-project/llvm/test/CodeGen/ARM/available_externally.ll (revision bed1c7f061aa12417aa081e334afdba45767b938)
1; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic | FileCheck %s
2; rdar://9027648
3
4@A = available_externally hidden constant i32 1
5@B = external hidden constant i32
6
7define i32 @t1() {
8  %tmp = load i32, ptr @A
9  store i32 %tmp, ptr @B
10  ret i32 %tmp
11}
12
13; CHECK:      L_A$non_lazy_ptr:
14; CHECK-NEXT: .indirect_symbol _A
15; CHECK-NEXT: .long 0
16; CHECK:      L_B$non_lazy_ptr:
17; CHECK-NEXT: .indirect_symbol _B
18; CHECK-NEXT: .long 0
19