xref: /llvm-project/llvm/test/CodeGen/X86/ga-offset.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s
2
3@ptr = dso_local global ptr null
4@dst = dso_local global [131072 x i32] zeroinitializer
5
6define dso_local void @foo() nounwind {
7; This store should fold to a single mov instruction.
8; CHECK: movq    $dst+64, ptr(%rip)
9  store ptr getelementptr ([131072 x i32], ptr @dst, i32 0, i32 16), ptr @ptr
10  ret void
11}
12