mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-08 13:00:43 +00:00
d4e43baeb0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273699 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
375 B
LLVM
12 lines
375 B
LLVM
; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s
|
|
|
|
@ptr = global i32* null
|
|
@dst = global [131072 x i32] zeroinitializer
|
|
|
|
define void @foo() nounwind {
|
|
; This store should fold to a single mov instruction.
|
|
; CHECK: movq $dst+64, ptr(%rip)
|
|
store i32* getelementptr ([131072 x i32], [131072 x i32]* @dst, i32 0, i32 16), i32** @ptr
|
|
ret void
|
|
}
|