1; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s
2
3@ptr = dso_local global i32* 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 i32* getelementptr ([131072 x i32], [131072 x i32]* @dst, i32 0, i32 16), i32** @ptr
10  ret void
11}
12