blob: 7a36213286882c8b37d5b73bf0711e18a8051f0f [file] [edit]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
; Make sure this testcase does not use ctpop
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | FileCheck %s
declare i32 @llvm.cttz.i32(i32, i1)
define i32 @bar(i32 %x) {
; CHECK-LABEL: bar:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: neg 4, 3
; CHECK-NEXT: and 3, 3, 4
; CHECK-NEXT: cntlzw 3, 3
; CHECK-NEXT: xori 3, 3, 31
; CHECK-NEXT: blr
entry:
%tmp.1 = call i32 @llvm.cttz.i32( i32 %x, i1 true ) ; <i32> [#uses=1]
ret i32 %tmp.1
}