0ad014dbf970deb7d2c7db2951e28c5392ceb982
[oota-llvm.git] / test / CodeGen / Alpha / ctlz.ll
1 ; Make sure this testcase codegens to the ctlz instruction
2 ; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev67 | grep -i ctlz
3 ; RUN: llvm-as < %s | llc -march=alpha -mattr=+CIX | grep -i ctlz
4 ; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev6 | not grep -i ctlz
5 ; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev56 | not grep -i ctlz
6 ; RUN: llvm-as < %s | llc -march=alpha -mattr=-CIX | not grep -i ctlz
7
8 declare i32 @llvm.ctlz.i8(i8)
9
10 define i32 @bar(i8 %x) {
11 entry:
12         %tmp.1 = call i32 @llvm.ctlz.i8( i8 %x ) 
13         ret i32 %tmp.1
14 }