[X86][AVX] Match broadcast loads through a bitcast
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-clz.ll
index e5f94a6c4929d1ae780dff3d63b34d6e78ab000e..52b540b2bdd063f8f03c980329fa991fb1312809 100644 (file)
@@ -1,8 +1,10 @@
-; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2,+v7a | grep "clz " | count 1
+; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2,+v7 %s -o - | FileCheck %s
 
 define i32 @f1(i32 %a) {
-    %tmp = tail call i32 @llvm.ctlz.i32(i32 %a)
+; CHECK-LABEL: f1:
+; CHECK: clz r
+    %tmp = tail call i32 @llvm.ctlz.i32(i32 %a, i1 true)
     ret i32 %tmp
 }
 
-declare i32 @llvm.ctlz.i32(i32) nounwind readnone
+declare i32 @llvm.ctlz.i32(i32, i1) nounwind readnone