Merging r259798, r259835:
[oota-llvm.git] / test / CodeGen / PowerPC / cttz.ll
index bfb7b5d2f9358061171192e266a40a1ad924e987..3757fa3e2f2970b6901bace30514056aa193b35b 100644 (file)
@@ -1,12 +1,13 @@
 ; Make sure this testcase does not use ctpop
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -i 'cntlzw'
+; RUN: llc < %s -march=ppc32 -mcpu=g5 | FileCheck %s
 
-declare int %llvm.cttz(int)
+declare i32 @llvm.cttz.i32(i32, i1)
 
-implementation   ; Functions:
-
-int %bar(int %x) {
+define i32 @bar(i32 %x) {
 entry:
-       %tmp.1 = call int %llvm.cttz( int %x ) 
-       ret int %tmp.1
+; CHECK: @bar
+; CHECK: cntlzw
+        %tmp.1 = call i32 @llvm.cttz.i32( i32 %x, i1 true )              ; <i32> [#uses=1]
+        ret i32 %tmp.1
 }
+