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