llvm.org GIT mirror llvm / d4e43ba
Use FileCheck. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273699 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 3 years ago
1 changed file(s) with 3 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -march=x86 > %t
1 ; RUN: not grep lea %t
2 ; RUN: not grep add %t
3 ; RUN: grep mov %t | count 1
4 ; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static > %t
5 ; RUN: not grep lea %t
6 ; RUN: not grep add %t
7 ; RUN: grep mov %t | count 1
8
9 ; This store should fold to a single mov instruction.
0 ; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s
101
112 @ptr = global i32* null
123 @dst = global [131072 x i32] zeroinitializer
134
145 define void @foo() nounwind {
6 ; This store should fold to a single mov instruction.
7 ; CHECK: movq $dst+64, ptr(%rip)
158 store i32* getelementptr ([131072 x i32], [131072 x i32]* @dst, i32 0, i32 16), i32** @ptr
169 ret void
1710 }