Andrew Lenharth | e8aebf7 | 2005-05-04 15:56:34 +0000 | [diff] [blame^] | 1 | ; Make sure this testcase codegens to the ctlz instruction |
Andrew Lenharth | d3942b4 | 2005-05-04 15:51:07 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as < %s | llc -march=alpha -enable-alpha-CT | grep 'ctlz' |
3 | |||||
4 | declare ubyte %llvm.ctlz(ubyte) | ||||
5 | |||||
6 | implementation ; Functions: | ||||
7 | |||||
8 | ubyte %bar(ubyte %x) { | ||||
9 | entry: | ||||
10 | %tmp.1 = call ubyte %llvm.ctlz( ubyte %x ) | ||||
11 | ret ubyte %tmp.1 | ||||
12 | } |