summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/cttz.ll
blob: f860456d647c1122d7f2e917a7725aca11a8df8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; Make sure this testcase does not use ctpop
; RUN: llvm-as < %s | llc -march=ppc32 | grep -i 'cntlzw'

declare int %llvm.cttz(int)

implementation   ; Functions:

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