aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/clz.ll
blob: 80b7cd8fee9bab1bb47baa2f8d78149fcb70beb5 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5t | grep "clz"

declare uint %llvm.ctlz.i32(uint)

uint %test(uint %x) {
	%tmp.1 = call uint %llvm.ctlz.i32( uint %x ) 
	ret uint %tmp.1
}