From d98a57cc5a17a9f3914c165ba5002e8a94fb87d3 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 2 Jul 2011 20:42:22 +0000 Subject: [PATCH] FileCheck-ize another codegen test. llvm-svn: 134334 --- test/CodeGen/X86/lsr-redundant-addressing.ll | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/CodeGen/X86/lsr-redundant-addressing.ll b/test/CodeGen/X86/lsr-redundant-addressing.ll index aaa1426918f..cb0ac8b67a7 100644 --- a/test/CodeGen/X86/lsr-redundant-addressing.ll +++ b/test/CodeGen/X86/lsr-redundant-addressing.ll @@ -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. @@ -10,6 +10,12 @@ @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