blob: 8b6526a8cd7d3f91eccb6458cc7e227db1235dfc [file] [log] [blame]
Andrew Lenharthe8aebf72005-05-04 15:56:34 +00001; Make sure this testcase codegens to the ctlz instruction
Andrew Lenharth542f2df2005-09-30 20:30:24 +00002; 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'
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}