brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · 75af1df Raw
79 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py2; RUN: opt < %s -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output -aarch64-sve-vector-bits-min=128 | FileCheck %s -D#VBITS=1283 4target triple = "aarch64-unknown-linux-gnu"5 6define void @scalable_sdiv() #0 {7; CHECK-LABEL: 'scalable_sdiv'8; CHECK-NEXT:  Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %sdiv_nxv16i8 = sdiv <vscale x 16 x i8> undef, undef9; CHECK-NEXT:  Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %sdiv_nxv8i16 = sdiv <vscale x 8 x i16> undef, undef10; CHECK-NEXT:  Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %sdiv_nxv4i32 = sdiv <vscale x 4 x i32> undef, undef11; CHECK-NEXT:  Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %sdiv_nxv2i64 = sdiv <vscale x 2 x i64> undef, undef12; CHECK-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void13;14entry:15  %sdiv_nxv16i8 = sdiv <vscale x 16 x i8> undef, undef16  %sdiv_nxv8i16 = sdiv <vscale x 8 x i16> undef, undef17  %sdiv_nxv4i32 = sdiv <vscale x 4 x i32> undef, undef18  %sdiv_nxv2i64 = sdiv <vscale x 2 x i64> undef, undef19 20  ret void21}22 23define void @scalable_udiv() #0 {24; CHECK-LABEL: 'scalable_udiv'25; CHECK-NEXT:  Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %udiv_nxv16i8 = udiv <vscale x 16 x i8> undef, undef26; CHECK-NEXT:  Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %udiv_nxv8i16 = udiv <vscale x 8 x i16> undef, undef27; CHECK-NEXT:  Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %udiv_nxv4i32 = udiv <vscale x 4 x i32> undef, undef28; CHECK-NEXT:  Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %udiv_nxv2i64 = udiv <vscale x 2 x i64> undef, undef29; CHECK-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void30;31entry:32  %udiv_nxv16i8 = udiv <vscale x 16 x i8> undef, undef33  %udiv_nxv8i16 = udiv <vscale x 8 x i16> undef, undef34  %udiv_nxv4i32 = udiv <vscale x 4 x i32> undef, undef35  %udiv_nxv2i64 = udiv <vscale x 2 x i64> undef, undef36 37  ret void38}39 40define void @scalable_mul() #0 {41; CHECK-LABEL: 'scalable_mul'42; CHECK-NEXT:  Cost Model: Found costs of 1 for: %mul_nxv16i8 = mul <vscale x 16 x i8> undef, undef43; CHECK-NEXT:  Cost Model: Found costs of 1 for: %mul_nxv8i16 = mul <vscale x 8 x i16> undef, undef44; CHECK-NEXT:  Cost Model: Found costs of 1 for: %mul_nxv4i32 = mul <vscale x 4 x i32> undef, undef45; CHECK-NEXT:  Cost Model: Found costs of 1 for: %mul_nxv2i64 = mul <vscale x 2 x i64> undef, undef46; CHECK-NEXT:  Cost Model: Found costs of Invalid for: %mul_nxv1i64 = mul <vscale x 1 x i64> undef, undef47; CHECK-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void48;49entry:50  %mul_nxv16i8 = mul <vscale x 16 x i8> undef, undef51  %mul_nxv8i16 = mul <vscale x 8 x i16> undef, undef52  %mul_nxv4i32 = mul <vscale x 4 x i32> undef, undef53  %mul_nxv2i64 = mul <vscale x 2 x i64> undef, undef54  %mul_nxv1i64 = mul <vscale x 1 x i64> undef, undef55 56  ret void57}58 59define void @scalable_add() #0 {60; CHECK-LABEL: 'scalable_add'61; CHECK-NEXT:  Cost Model: Found costs of 1 for: %add_nxv16i8 = add <vscale x 16 x i8> undef, undef62; CHECK-NEXT:  Cost Model: Found costs of 1 for: %add_nxv8i16 = add <vscale x 8 x i16> undef, undef63; CHECK-NEXT:  Cost Model: Found costs of 1 for: %add_nxv4i32 = add <vscale x 4 x i32> undef, undef64; CHECK-NEXT:  Cost Model: Found costs of 1 for: %add_nxv2i64 = add <vscale x 2 x i64> undef, undef65; CHECK-NEXT:  Cost Model: Found costs of Invalid for: %add_nxv1i64 = add <vscale x 1 x i64> undef, undef66; CHECK-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void67;68entry:69  %add_nxv16i8 = add <vscale x 16 x i8> undef, undef70  %add_nxv8i16 = add <vscale x 8 x i16> undef, undef71  %add_nxv4i32 = add <vscale x 4 x i32> undef, undef72  %add_nxv2i64 = add <vscale x 2 x i64> undef, undef73  %add_nxv1i64 = add <vscale x 1 x i64> undef, undef74 75  ret void76}77 78attributes #0 = { "target-features"="+sve" }79