[cfe-commits] r89610 - /cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c

Anders Carlsson andersca at mac.com
Sun Nov 22 10:56:40 PST 2009


Author: andersca
Date: Sun Nov 22 12:56:40 2009
New Revision: 89610

URL: http://llvm.org/viewvc/llvm-project?rev=89610&view=rev
Log:
Update a test to FileCheck.

Modified:
    cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c

Modified: cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c?rev=89610&r1=89609&r2=89610&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c (original)
+++ cfe/trunk/test/CodeGen/PR2001-bitfield-reload.c Sun Nov 22 12:56:40 2009
@@ -1,6 +1,4 @@
-// RUN: clang-cc -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t
-// RUN: grep "ret i32" %t | count 1
-// RUN: grep "ret i32 1" %t | count 1
+// RUN: clang-cc -triple i386-unknown-unknown -O3 -emit-llvm -o - %s | FileCheck %s
 // PR2001
 
 /* Test that the result of the assignment properly uses the value *in
@@ -13,5 +11,6 @@
 }
 
 int bar() {
+  // CHECK: ret i32 1
   return foo(-5) == -1;
 }





More information about the cfe-commits mailing list