12 lines · plain
1; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s2 3@ptr = dso_local global ptr null4@dst = dso_local global [131072 x i32] zeroinitializer5 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 @ptr10 ret void11}12