[llvm] r178472 - Fix PowerPC/cttz.ll to specify a cpu (and use FileCheck)

Hal Finkel hfinkel at anl.gov
Mon Apr 1 09:31:57 PDT 2013


Author: hfinkel
Date: Mon Apr  1 11:31:56 2013
New Revision: 178472

URL: http://llvm.org/viewvc/llvm-project?rev=178472&view=rev
Log:
Fix PowerPC/cttz.ll to specify a cpu (and use FileCheck)

Modified:
    llvm/trunk/test/CodeGen/PowerPC/cttz.ll

Modified: llvm/trunk/test/CodeGen/PowerPC/cttz.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/cttz.ll?rev=178472&r1=178471&r2=178472&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/cttz.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/cttz.ll Mon Apr  1 11:31:56 2013
@@ -1,10 +1,12 @@
 ; Make sure this testcase does not use ctpop
-; RUN: llc < %s -march=ppc32 | grep -i cntlzw
+; RUN: llc < %s -march=ppc32 -mcpu=g5 | FileCheck %s
 
 declare i32 @llvm.cttz.i32(i32, i1)
 
 define i32 @bar(i32 %x) {
 entry:
+; CHECK: @bar
+; CHECK: cntlzw
         %tmp.1 = call i32 @llvm.cttz.i32( i32 %x, i1 true )              ; <i32> [#uses=1]
         ret i32 %tmp.1
 }





More information about the llvm-commits mailing list