[llvm] r273699 - Use FileCheck. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 24 11:04:40 PDT 2016
Author: rafael
Date: Fri Jun 24 13:04:39 2016
New Revision: 273699
URL: http://llvm.org/viewvc/llvm-project?rev=273699&view=rev
Log:
Use FileCheck. NFC.
Modified:
llvm/trunk/test/CodeGen/X86/ga-offset.ll
Modified: llvm/trunk/test/CodeGen/X86/ga-offset.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/ga-offset.ll?rev=273699&r1=273698&r2=273699&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/ga-offset.ll (original)
+++ llvm/trunk/test/CodeGen/X86/ga-offset.ll Fri Jun 24 13:04:39 2016
@@ -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
}
More information about the llvm-commits
mailing list