mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
df2896d609
llvm-svn: 81290
19 lines
496 B
LLVM
19 lines
496 B
LLVM
; RUN: llc < %s -march=x86 > %t
|
|
; RUN: not grep lea %t
|
|
; RUN: not grep add %t
|
|
; RUN: grep mov %t | count 1
|
|
; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static > %t
|
|
; RUN: not grep lea %t
|
|
; RUN: not grep add %t
|
|
; RUN: grep mov %t | count 1
|
|
|
|
; This store should fold to a single mov instruction.
|
|
|
|
@ptr = global i32* null
|
|
@dst = global [131072 x i32] zeroinitializer
|
|
|
|
define void @foo() nounwind {
|
|
store i32* getelementptr ([131072 x i32]* @dst, i32 0, i32 16), i32** @ptr
|
|
ret void
|
|
}
|