Andrew Lenharth | e8aebf7 | 2005-05-04 15:56:34 +0000 | [diff] [blame] | 1 | ; Make sure this testcase codegens to the ctlz instruction |
Andrew Lenharth | 542f2df | 2005-09-30 20:30:24 +0000 | [diff] [blame] | 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' |
Andrew Lenharth | d3942b4 | 2005-05-04 15:51:07 +0000 | [diff] [blame] | 7 | |
| 8 | declare ubyte %llvm.ctlz(ubyte) |
| 9 | |
| 10 | implementation ; Functions: |
| 11 | |
| 12 | ubyte %bar(ubyte %x) { |
| 13 | entry: |
| 14 | %tmp.1 = call ubyte %llvm.ctlz( ubyte %x ) |
| 15 | ret ubyte %tmp.1 |
| 16 | } |