aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/cttz.ll
blob: bfb7b5d2f9358061171192e266a40a1ad924e987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; Make sure this testcase does not use ctpop
; RUN: llvm-upgrade < %s | llvm-as | 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
}