summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Alpha/ctlz.ll
blob: ad03e911f9b1248e0ad55c9851b888fcfd7382e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; Make sure this testcase codegens to the ctlz instruction
; XFAIL: *
; RUN: llvm-as < %s | llc -march=alpha -enable-alpha-CT | grep 'ctlz'

declare ubyte %llvm.ctlz(ubyte)

implementation   ; Functions:

ubyte %bar(ubyte %x) {
entry:
	%tmp.1 = call ubyte %llvm.ctlz( ubyte %x ) 
	ret ubyte %tmp.1
}