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