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
38 lines
3.1 KiB
LLVM
38 lines
3.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
|
|
; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv64 -mcpu=sifive-x390 < %s | FileCheck %s --check-prefix=CHECK
|
|
; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv64 -mcpu=sifive-p670 < %s | FileCheck %s --check-prefix=CHECK_FUSION
|
|
; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv64 -mcpu=sifive-x390 -cost-kind=code-size < %s | FileCheck %s --check-prefix=SIZE
|
|
; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv64 -mcpu=sifive-p670 -cost-kind=code-size < %s | FileCheck %s --check-prefix=SIZE_FUSION
|
|
|
|
; Storing an immediate vector implicity calls RISCVTTIImpl::getConstantPoolLoadCost()
|
|
define void @rvv_store_imm(ptr %X) {
|
|
; CHECK-LABEL: 'rvv_store_imm'
|
|
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <2 x i8> <i8 2, i8 3>, ptr %X, align 2
|
|
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <4 x i8> <i8 2, i8 3, i8 5, i8 10>, ptr %X, align 4
|
|
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <8 x i8> <i8 2, i8 3, i8 5, i8 10, i8 11, i8 12, i8 23, i8 0>, ptr %X, align 8
|
|
; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
|
|
;
|
|
; CHECK_FUSION-LABEL: 'rvv_store_imm'
|
|
; CHECK_FUSION-NEXT: Cost Model: Found an estimated cost of 3 for instruction: store <2 x i8> <i8 2, i8 3>, ptr %X, align 2
|
|
; CHECK_FUSION-NEXT: Cost Model: Found an estimated cost of 3 for instruction: store <4 x i8> <i8 2, i8 3, i8 5, i8 10>, ptr %X, align 4
|
|
; CHECK_FUSION-NEXT: Cost Model: Found an estimated cost of 3 for instruction: store <8 x i8> <i8 2, i8 3, i8 5, i8 10, i8 11, i8 12, i8 23, i8 0>, ptr %X, align 8
|
|
; CHECK_FUSION-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
|
|
;
|
|
; SIZE-LABEL: 'rvv_store_imm'
|
|
; SIZE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <2 x i8> <i8 2, i8 3>, ptr %X, align 2
|
|
; SIZE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <4 x i8> <i8 2, i8 3, i8 5, i8 10>, ptr %X, align 4
|
|
; SIZE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <8 x i8> <i8 2, i8 3, i8 5, i8 10, i8 11, i8 12, i8 23, i8 0>, ptr %X, align 8
|
|
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret void
|
|
;
|
|
; SIZE_FUSION-LABEL: 'rvv_store_imm'
|
|
; SIZE_FUSION-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <2 x i8> <i8 2, i8 3>, ptr %X, align 2
|
|
; SIZE_FUSION-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <4 x i8> <i8 2, i8 3, i8 5, i8 10>, ptr %X, align 4
|
|
; SIZE_FUSION-NEXT: Cost Model: Found an estimated cost of 4 for instruction: store <8 x i8> <i8 2, i8 3, i8 5, i8 10, i8 11, i8 12, i8 23, i8 0>, ptr %X, align 8
|
|
; SIZE_FUSION-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret void
|
|
;
|
|
store <2 x i8> <i8 2, i8 3>, ptr %X
|
|
store <4 x i8> <i8 2, i8 3, i8 5, i8 10>, ptr %X
|
|
store <8 x i8> <i8 2, i8 3, i8 5, i8 10, i8 11, i8 12, i8 23, i8 0> , ptr %X
|
|
ret void
|
|
}
|