ARM test cases contributed by Apple.
[oota-llvm.git] / test / CodeGen / ARM / clz.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5t | grep "clz"
3
4 declare uint %llvm.ctlz.i32(uint)
5
6 uint %test(uint %x) {
7         %tmp.1 = call uint %llvm.ctlz.i32( uint %x ) 
8         ret uint %tmp.1
9 }