; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py ; RUN: opt < %s -passes="print" -cost-kind=all 2>&1 -disable-output -aarch64-sve-vector-bits-min=128 | FileCheck %s -D#VBITS=128 target triple = "aarch64-unknown-linux-gnu" define void @scalable_sdiv() #0 { ; CHECK-LABEL: 'scalable_sdiv' ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %sdiv_nxv16i8 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %sdiv_nxv8i16 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %sdiv_nxv4i32 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %sdiv_nxv2i64 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; entry: %sdiv_nxv16i8 = sdiv undef, undef %sdiv_nxv8i16 = sdiv undef, undef %sdiv_nxv4i32 = sdiv undef, undef %sdiv_nxv2i64 = sdiv undef, undef ret void } define void @scalable_udiv() #0 { ; CHECK-LABEL: 'scalable_udiv' ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %udiv_nxv16i8 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %udiv_nxv8i16 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %udiv_nxv4i32 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %udiv_nxv2i64 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; entry: %udiv_nxv16i8 = udiv undef, undef %udiv_nxv8i16 = udiv undef, undef %udiv_nxv4i32 = udiv undef, undef %udiv_nxv2i64 = udiv undef, undef ret void } define void @scalable_mul() #0 { ; CHECK-LABEL: 'scalable_mul' ; CHECK-NEXT: Cost Model: Found costs of 1 for: %mul_nxv16i8 = mul undef, undef ; CHECK-NEXT: Cost Model: Found costs of 1 for: %mul_nxv8i16 = mul undef, undef ; CHECK-NEXT: Cost Model: Found costs of 1 for: %mul_nxv4i32 = mul undef, undef ; CHECK-NEXT: Cost Model: Found costs of 1 for: %mul_nxv2i64 = mul undef, undef ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %mul_nxv1i64 = mul undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; entry: %mul_nxv16i8 = mul undef, undef %mul_nxv8i16 = mul undef, undef %mul_nxv4i32 = mul undef, undef %mul_nxv2i64 = mul undef, undef %mul_nxv1i64 = mul undef, undef ret void } define void @scalable_add() #0 { ; CHECK-LABEL: 'scalable_add' ; CHECK-NEXT: Cost Model: Found costs of 1 for: %add_nxv16i8 = add undef, undef ; CHECK-NEXT: Cost Model: Found costs of 1 for: %add_nxv8i16 = add undef, undef ; CHECK-NEXT: Cost Model: Found costs of 1 for: %add_nxv4i32 = add undef, undef ; CHECK-NEXT: Cost Model: Found costs of 1 for: %add_nxv2i64 = add undef, undef ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %add_nxv1i64 = add undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; entry: %add_nxv16i8 = add undef, undef %add_nxv8i16 = add undef, undef %add_nxv4i32 = add undef, undef %add_nxv2i64 = add undef, undef %add_nxv1i64 = add undef, undef ret void } attributes #0 = { "target-features"="+sve" }