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
98 lines
4.2 KiB
LLVM
98 lines
4.2 KiB
LLVM
; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z13 \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,Z13
|
|
; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z15 \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,Z15
|
|
|
|
define void @fun0(i32 %a) {
|
|
; CHECK-LABEL: function 'fun0'
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c0 = xor i32 %l0, -1
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res0 = or i32 %a, %c0
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res0 = or i32 %a, %c0
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c1 = xor i32 %l1, -1
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res1 = and i32 %a, %c1
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res1 = and i32 %a, %c1
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c2 = and i32 %l2, %a
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res2 = xor i32 %c2, -1
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res2 = xor i32 %c2, -1
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c3 = or i32 %l3, %a
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res3 = xor i32 %c3, -1
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res3 = xor i32 %c3, -1
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c4 = xor i32 %l4, %a
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res4 = xor i32 %c4, -1
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res4 = xor i32 %c4, -1
|
|
|
|
entry:
|
|
%l0 = load i32, ptr undef
|
|
%c0 = xor i32 %l0, -1
|
|
%res0 = or i32 %a, %c0
|
|
store i32 %res0, ptr undef
|
|
|
|
%l1 = load i32, ptr undef
|
|
%c1 = xor i32 %l1, -1
|
|
%res1 = and i32 %a, %c1
|
|
store i32 %res1, ptr undef
|
|
|
|
%l2 = load i32, ptr undef
|
|
%c2 = and i32 %l2, %a
|
|
%res2 = xor i32 %c2, -1
|
|
store i32 %res2, ptr undef
|
|
|
|
%l3 = load i32, ptr undef
|
|
%c3 = or i32 %l3, %a
|
|
%res3 = xor i32 %c3, -1
|
|
store i32 %res3, ptr undef
|
|
|
|
%l4 = load i32, ptr undef
|
|
%c4 = xor i32 %l4, %a
|
|
%res4 = xor i32 %c4, -1
|
|
store i32 %res4, ptr undef
|
|
|
|
ret void
|
|
}
|
|
|
|
define void @fun1(i64 %a) {
|
|
; CHECK-LABEL: function 'fun1'
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c0 = xor i64 %l0, -1
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res0 = or i64 %a, %c0
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res0 = or i64 %a, %c0
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c1 = xor i64 %l1, -1
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res1 = and i64 %a, %c1
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res1 = and i64 %a, %c1
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c2 = and i64 %l2, %a
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res2 = xor i64 %c2, -1
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res2 = xor i64 %c2, -1
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c3 = or i64 %l3, %a
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res3 = xor i64 %c3, -1
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res3 = xor i64 %c3, -1
|
|
; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c4 = xor i64 %l4, %a
|
|
; Z13: Cost Model: Found an estimated cost of 1 for instruction: %res4 = xor i64 %c4, -1
|
|
; Z15: Cost Model: Found an estimated cost of 0 for instruction: %res4 = xor i64 %c4, -1
|
|
entry:
|
|
%l0 = load i64, ptr undef
|
|
%c0 = xor i64 %l0, -1
|
|
%res0 = or i64 %a, %c0
|
|
store i64 %res0, ptr undef
|
|
|
|
%l1 = load i64, ptr undef
|
|
%c1 = xor i64 %l1, -1
|
|
%res1 = and i64 %a, %c1
|
|
store i64 %res1, ptr undef
|
|
|
|
%l2 = load i64, ptr undef
|
|
%c2 = and i64 %l2, %a
|
|
%res2 = xor i64 %c2, -1
|
|
store i64 %res2, ptr undef
|
|
|
|
%l3 = load i64, ptr undef
|
|
%c3 = or i64 %l3, %a
|
|
%res3 = xor i64 %c3, -1
|
|
store i64 %res3, ptr undef
|
|
|
|
%l4 = load i64, ptr undef
|
|
%c4 = xor i64 %l4, %a
|
|
%res4 = xor i64 %c4, -1
|
|
store i64 %res4, ptr undef
|
|
|
|
ret void
|
|
}
|