FileCheck-ize another codegen test.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 2 Jul 2011 20:42:22 +0000 (20:42 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 2 Jul 2011 20:42:22 +0000 (20:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134334 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/lsr-redundant-addressing.ll

index aaa1426918f2485cb6364f2ff1b60f3da2b64524..cb0ac8b67a7e629be433018c7ea00fd56663aded 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=x86-64 < %s | fgrep {addq    $-16,} | count 1
+; RUN: llc -march=x86-64 < %s | FileCheck %s
 ; rdar://9081094
 
 ; LSR shouldn't create lots of redundant address computations.
 @isa = external hidden unnamed_addr constant [13 x %1], align 32
 
 define void @main_bb.i() nounwind {
+; CHECK: main_bb.i:
+; CHECK-NOT: ret
+; CHECK: addq $-16,
+; CHECK-NOT: ret
+; CHECK: ret
+
 bb:
   br label %bb38