CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
79 lines
4.0 KiB
LLVM
79 lines
4.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
|
|
; RUN: opt < %s -passes="print<cost-model>" -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 <vscale x 16 x i8> undef, undef
|
|
; 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, undef
|
|
; 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, undef
|
|
; 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, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
entry:
|
|
%sdiv_nxv16i8 = sdiv <vscale x 16 x i8> undef, undef
|
|
%sdiv_nxv8i16 = sdiv <vscale x 8 x i16> undef, undef
|
|
%sdiv_nxv4i32 = sdiv <vscale x 4 x i32> undef, undef
|
|
%sdiv_nxv2i64 = sdiv <vscale x 2 x i64> 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 <vscale x 16 x i8> undef, undef
|
|
; 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, undef
|
|
; 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, undef
|
|
; 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, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
entry:
|
|
%udiv_nxv16i8 = udiv <vscale x 16 x i8> undef, undef
|
|
%udiv_nxv8i16 = udiv <vscale x 8 x i16> undef, undef
|
|
%udiv_nxv4i32 = udiv <vscale x 4 x i32> undef, undef
|
|
%udiv_nxv2i64 = udiv <vscale x 2 x i64> 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 <vscale x 16 x i8> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of 1 for: %mul_nxv8i16 = mul <vscale x 8 x i16> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of 1 for: %mul_nxv4i32 = mul <vscale x 4 x i32> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of 1 for: %mul_nxv2i64 = mul <vscale x 2 x i64> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of Invalid for: %mul_nxv1i64 = mul <vscale x 1 x i64> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
entry:
|
|
%mul_nxv16i8 = mul <vscale x 16 x i8> undef, undef
|
|
%mul_nxv8i16 = mul <vscale x 8 x i16> undef, undef
|
|
%mul_nxv4i32 = mul <vscale x 4 x i32> undef, undef
|
|
%mul_nxv2i64 = mul <vscale x 2 x i64> undef, undef
|
|
%mul_nxv1i64 = mul <vscale x 1 x i64> 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 <vscale x 16 x i8> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of 1 for: %add_nxv8i16 = add <vscale x 8 x i16> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of 1 for: %add_nxv4i32 = add <vscale x 4 x i32> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of 1 for: %add_nxv2i64 = add <vscale x 2 x i64> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of Invalid for: %add_nxv1i64 = add <vscale x 1 x i64> undef, undef
|
|
; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
entry:
|
|
%add_nxv16i8 = add <vscale x 16 x i8> undef, undef
|
|
%add_nxv8i16 = add <vscale x 8 x i16> undef, undef
|
|
%add_nxv4i32 = add <vscale x 4 x i32> undef, undef
|
|
%add_nxv2i64 = add <vscale x 2 x i64> undef, undef
|
|
%add_nxv1i64 = add <vscale x 1 x i64> undef, undef
|
|
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { "target-features"="+sve" }
|