blob: f7e966535d2fe4a2bb5b44d78beec9dd5befb314 [file] [log] [blame]
Evan Cheng39dfb0f2011-07-07 03:55:05 +00001; RUN: llc < %s -march=thumb -mattr=+thumb2,+v7 | FileCheck %s
David Goodwin24062ac2009-06-26 20:47:43 +00002
3define i32 @f1(i32 %a) {
Bob Wilson37986052009-10-27 06:31:02 +00004; CHECK: f1:
5; CHECK: clz r
Chandler Carruthddbc2742011-12-12 11:59:10 +00006 %tmp = tail call i32 @llvm.ctlz.i32(i32 %a, i1 true)
David Goodwin24062ac2009-06-26 20:47:43 +00007 ret i32 %tmp
8}
9
Chandler Carruthddbc2742011-12-12 11:59:10 +000010declare i32 @llvm.ctlz.i32(i32, i1) nounwind readnone