]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/ARM/ctz.ll
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGen / ARM / ctz.ll
1 ; RUN: llc < %s -march=arm -mattr=+v6t2 | FileCheck %s
2
3 declare i32 @llvm.cttz.i32(i32, i1)
4
5 define i32 @f1(i32 %a) {
6 ; CHECK-LABEL: f1:
7 ; CHECK: rbit
8 ; CHECK: clz
9   %tmp = call i32 @llvm.cttz.i32( i32 %a, i1 true )
10   ret i32 %tmp
11 }