blob: 54d2027527eff7e55e182d3320591d7abf946c5e [file] [log] [blame]
; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s
@ptr = dso_local global ptr null
@dst = dso_local global [131072 x i32] zeroinitializer
define dso_local void @foo() nounwind {
; This store should fold to a single mov instruction.
; CHECK: movq $dst+64, ptr(%rip)
store ptr getelementptr ([131072 x i32], ptr @dst, i32 0, i32 16), ptr @ptr
ret void
}