blob: 390825ce1b0a62f0bfe5ddad6ff060990abc5f24 [file] [log] [blame]
Andrew Lenharthe8aebf72005-05-04 15:56:34 +00001; Make sure this testcase codegens to the ctlz instruction
Andrew Lenharth3cfc4012005-05-13 19:49:02 +00002; RUN: llvm-as < %s | llc -march=alpha -enable-alpha-CT | grep -i 'ctlz'
Andrew Lenharthd3942b42005-05-04 15:51:07 +00003
4declare ubyte %llvm.ctlz(ubyte)
5
6implementation ; Functions:
7
8ubyte %bar(ubyte %x) {
9entry:
10 %tmp.1 = call ubyte %llvm.ctlz( ubyte %x )
11 ret ubyte %tmp.1
12}