blob: f7e966535d2fe4a2bb5b44d78beec9dd5befb314 [file] [log] [blame]
Evan Cheng8b2bda02011-07-07 03:55:05 +00001; RUN: llc < %s -march=thumb -mattr=+thumb2,+v7 | FileCheck %s
David Goodwinaa294c52009-06-26 20:47:43 +00002
3define i32 @f1(i32 %a) {
Bob Wilson3d43b382009-10-27 06:31:02 +00004; CHECK: f1:
5; 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