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