; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 6 ; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -mattr=+sve -passes="print" -cost-kind=all 2>&1 -disable-output | FileCheck %s target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" define void @ctpop_scalable() { ; CHECK-LABEL: 'ctpop_scalable' ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv4i8 = call @llvm.ctpop.nxv4i8( poison) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv8i8 = call @llvm.ctpop.nxv8i8( poison) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %nxv16i8 = call @llvm.ctpop.nxv16i8( poison) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv32i8 = call @llvm.ctpop.nxv32i8( poison) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv2i16 = call @llvm.ctpop.nxv2i16( poison) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv4i16 = call @llvm.ctpop.nxv4i16( poison) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %nxv8i16 = call @llvm.ctpop.nxv8i16( poison) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv16i16 = call @llvm.ctpop.nxv16i16( poison) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv2i32 = call @llvm.ctpop.nxv2i32( poison) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %nxv4i32 = call @llvm.ctpop.nxv4i32( poison) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv8i32 = call @llvm.ctpop.nxv8i32( poison) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %nxv2i64 = call @llvm.ctpop.nxv2i64( poison) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %nxv4i64 = call @llvm.ctpop.nxv4i64( poison) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %nxv4i8 = call @llvm.ctpop.nxv4i8 ( poison) %nxv8i8 = call @llvm.ctpop.nxv8i8 ( poison) %nxv16i8 = call @llvm.ctpop.nxv16i8 ( poison) %nxv32i8 = call @llvm.ctpop.nxv32i8 ( poison) %nxv2i16 = call @llvm.ctpop.nxv2i16 ( poison) %nxv4i16 = call @llvm.ctpop.nxv4i16 ( poison) %nxv8i16 = call @llvm.ctpop.nxv8i16 ( poison) %nxv16i16 = call @llvm.ctpop.nxv16i16( poison) %nxv2i32 = call @llvm.ctpop.nxv2i32 ( poison) %nxv4i32 = call @llvm.ctpop.nxv4i32 ( poison) %nxv8i32 = call @llvm.ctpop.nxv8i32 ( poison) %nxv2i64 = call @llvm.ctpop.nxv2i64 ( poison) %nxv4i64 = call @llvm.ctpop.nxv4i64 ( poison) ret void }