xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/x86-64-pic-4.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
2*9880d681SAndroid Build Coastguard Worker; RUN: grep "movq	a@GOTPCREL(%rip)," %t1
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker@a = global i32 0
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i32 @get_a() {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker	%tmp1 = load i32, i32* @a, align 4
9*9880d681SAndroid Build Coastguard Worker	ret i32 %tmp1
10*9880d681SAndroid Build Coastguard Worker}
11