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
66 lines
3.3 KiB
LLVM
66 lines
3.3 KiB
LLVM
; RUN: llc %s -o - -mtriple=aarch64-unknown -mattr=fuse-csel -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=exynos-m3 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=exynos-m4 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=exynos-m5 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=cortex-a78 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=cortex-a710 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=cortex-a715 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=cortex-a720 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=cortex-a725 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=cortex-x4 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=cortex-x925 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-n2 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-n3 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-v1 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-v2 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-v3 -debug-only=machine-scheduler 2>&1 | FileCheck %s
|
|
; REQUIRES: asserts
|
|
|
|
; Check that the scheduling model has an edge between the SUBS and the CSEL.
|
|
; CHECK-LABEL: test_sub_cselw:%bb.0
|
|
; CHECK: SU(2): %3:gpr32common = ADDWri %1:gpr32common, 7, 0
|
|
; CHECK: SU(3): dead $wzr = SUBSWri %0:gpr32common, 13, 0, implicit-def $nzcv
|
|
; CHECK: Successors:
|
|
; CHECK: SU(4): Ord Latency=0 Cluster
|
|
; CHECK: SU(4): %5:gpr32 = CSELWr %0:gpr32common, %3:gpr32common, 0, implicit killed $nzcv
|
|
; CHECK: Predecessors:
|
|
; CHECK: SU(3): Ord Latency=0 Cluster
|
|
; CHECK: SU(5): $w0 = COPY %5:gpr32
|
|
|
|
|
|
; CHECK-LABEL: test_sub_cselx:%bb.0
|
|
; CHECK: SU(2): %3:gpr64common = ADDXri %1:gpr64common, 7, 0
|
|
; CHECK: SU(3): dead $xzr = SUBSXri %0:gpr64common, 13, 0, implicit-def $nzcv
|
|
; CHECK: Successors:
|
|
; CHECK: SU(4): Ord Latency=0 Cluster
|
|
; CHECK: SU(4): %5:gpr64 = CSELXr %0:gpr64common, %3:gpr64common, 0, implicit killed $nzcv
|
|
; CHECK: Predecessors:
|
|
; CHECK: SU(3): Ord Latency=0 Cluster
|
|
; CHECK: SU(5): $x0 = COPY %5:gpr64
|
|
|
|
define i32 @test_sub_cselw(i32 %a0, i32 %a1, i32 %a2) {
|
|
entry:
|
|
%v0 = sub i32 %a0, 13
|
|
%cond = icmp eq i32 %v0, 0
|
|
%v1 = add i32 %a1, 7
|
|
%v2 = select i1 %cond, i32 %a0, i32 %v1
|
|
ret i32 %v2
|
|
|
|
; CHECK-LABEL: test_sub_cselw:
|
|
; CHECK: cmp {{w[0-9]}}, #13
|
|
; CHECK-NEXT: csel {{w[0-9]}}
|
|
}
|
|
|
|
define i64 @test_sub_cselx(i64 %a0, i64 %a1, i64 %a2) {
|
|
entry:
|
|
%v0 = sub i64 %a0, 13
|
|
%cond = icmp eq i64 %v0, 0
|
|
%v1 = add i64 %a1, 7
|
|
%v2 = select i1 %cond, i64 %a0, i64 %v1
|
|
ret i64 %v2
|
|
|
|
; CHECK-LABEL: test_sub_cselx:
|
|
; CHECK: cmp {{x[0-9]}}, #13
|
|
; CHECK-NEXT: csel {{x[0-9]}}
|
|
}
|