xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/ARM/available_externally.ll (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
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* @A
9  store i32 %tmp, i32* @B
10  ret i32 %tmp
11}
12
13; CHECK:      L_A$non_lazy_ptr:
14; CHECK-NEXT: .long _A
15; CHECK:      L_B$non_lazy_ptr:
16; CHECK-NEXT: .long _B
17