blob: a5cd0747f1536948ec9aca8d66542b51b7745e0c [file] [log] [blame]
Joerg Sonnenberger002a1472013-12-13 11:16:00 +00001; RUN: llc < %s -march=thumb -mcpu=arm1156t2-s -mattr=+thumb2,+v7 | FileCheck %s
David Goodwinaa294c52009-06-26 20:47:43 +00002
3define i32 @f1(i32 %a) {
Stephen Lind24ab202013-07-14 06:24:09 +00004; CHECK-LABEL: f1:
Bob Wilson3d43b382009-10-27 06:31:02 +00005; CHECK: clz r
Chandler Carruth6b0e34c2011-12-12 11:59:10 +00006 %tmp = tail call i32 @llvm.ctlz.i32(i32 %a, i1 true)
David Goodwinaa294c52009-06-26 20:47:43 +00007 ret i32 %tmp
8}
9
Chandler Carruth6b0e34c2011-12-12 11:59:10 +000010declare i32 @llvm.ctlz.i32(i32, i1) nounwind readnone