blob: 75035f2c26092eebbb280f1be65eaca89725b11b [file] [log] [blame]
Andrew Lenharthe8aebf72005-05-04 15:56:34 +00001; Make sure this testcase codegens to the ctlz instruction
Reid Spencer69ccadd2006-12-02 04:23:10 +00002; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev67 | grep -i 'ctlz'
3; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=+CIX | grep -i 'ctlz'
4; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev6 | not grep -i 'ctlz'
5; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev56 | not grep -i 'ctlz'
6; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=-CIX | not grep -i 'ctlz'
Andrew Lenharthd3942b42005-05-04 15:51:07 +00007
8declare ubyte %llvm.ctlz(ubyte)
9
10implementation ; Functions:
11
12ubyte %bar(ubyte %x) {
13entry:
14 %tmp.1 = call ubyte %llvm.ctlz( ubyte %x )
15 ret ubyte %tmp.1
16}