xref: /llvm-project/llvm/test/CodeGen/PowerPC/cttz.ll (revision e2d2ce9ff1fabe751d3990af4bfa82cbf4998d41)
1; Make sure this testcase does not use ctpop
2; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | FileCheck %s
3
4declare i32 @llvm.cttz.i32(i32, i1)
5
6define i32 @bar(i32 %x) {
7entry:
8; CHECK: @bar
9; CHECK: cntlzw
10        %tmp.1 = call i32 @llvm.cttz.i32( i32 %x, i1 true )              ; <i32> [#uses=1]
11        ret i32 %tmp.1
12}
13
14