1 ; Function Attrs: nounwind readnone
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-unknown \
3 ; RUN: -mcpu=pwr9 < %s | FileCheck %s
5 define signext i32 @ctw(i32 signext %a) {
7 %0 = tail call i32 @llvm.cttz.i32(i32 %a, i1 false)
14 ; Function Attrs: nounwind readnone
15 declare i32 @llvm.cttz.i32(i32, i1)
17 ; Function Attrs: nounwind readnone
18 define signext i32 @clw(i32 signext %a) {
20 %0 = tail call i32 @llvm.ctlz.i32(i32 %a, i1 false)
27 ; Function Attrs: nounwind readnone
28 declare i32 @llvm.ctlz.i32(i32, i1)
30 ; Function Attrs: nounwind readnone
31 define i64 @ctd(i64 %a) {
33 %0 = tail call i64 @llvm.cttz.i64(i64 %a, i1 false)
40 ; Function Attrs: nounwind readnone
41 declare i64 @llvm.cttz.i64(i64, i1)
43 ; Function Attrs: nounwind readnone
44 define i64 @cld(i64 %a) {
46 %0 = tail call i64 @llvm.ctlz.i64(i64 %a, i1 false)
53 ; Function Attrs: nounwind readnone
54 declare i64 @llvm.ctlz.i64(i64, i1)