Use FileCheck. NFC.

llvm-svn: 273699
This commit is contained in:
Rafael Espindola 2016-06-24 18:04:39 +00:00
parent e160f0d0d6
commit 955d3569e7
1 changed files with 3 additions and 10 deletions

View File

@ -1,18 +1,11 @@
; 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.
; 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
}