blob: c99d60e08d553a6f78850fc7d6badffb22d4ae24 [file] [log] [blame]
Andrew Lenharthe8aebf72005-05-04 15:56:34 +00001; Make sure this testcase codegens to the ctlz instruction
Andrew Lenharthd3942b42005-05-04 15:51:07 +00002; RUN: llvm-as < %s | llc -march=alpha -enable-alpha-CT | grep 'ctlz'
3
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}