xref: /llvm-project/llvm/test/CodeGen/ARM/clz.ll (revision 6b0e34c445683bff74b7441a2c09d4730c264fb4)
1; RUN: llc < %s -march=arm -mattr=+v5t | FileCheck %s
2
3declare i32 @llvm.ctlz.i32(i32, i1)
4
5define i32 @test(i32 %x) {
6; CHECK: test
7; CHECK: clz r0, r0
8        %tmp.1 = call i32 @llvm.ctlz.i32( i32 %x, i1 true )
9        ret i32 %tmp.1
10}
11