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
80 lines
2.3 KiB
LLVM
80 lines
2.3 KiB
LLVM
; Check that 0.0 is not materialized for CSEL when comparing against it.
|
|
|
|
; RUN: llc -mtriple=aarch64-linux-gnu -o - < %s | FileCheck %s
|
|
|
|
define float @foeq(float %a, float %b) {
|
|
%t = fcmp nsz oeq float %a, 0.0
|
|
%v = select i1 %t, float 0.0, float %b
|
|
ret float %v
|
|
; CHECK-LABEL: foeq
|
|
; CHECK: fcmp [[R:s[0-9]+]], #0.0
|
|
; CHECK-NEXT: fcsel {{s[0-9]+}}, [[R]], {{s[0-9]+}}, eq
|
|
}
|
|
|
|
define float @fueq(float %a, float %b) {
|
|
%t = fcmp nsz ueq float %a, 0.0
|
|
%v = select i1 %t, float 0.0, float %b
|
|
ret float %v
|
|
; CHECK-LABEL: fueq
|
|
; CHECK: fcmp [[R:s[0-9]+]], #0.0
|
|
; CHECK-NEXT: fcsel {{s[0-9]+}}, [[R]], {{s[0-9]+}}, eq
|
|
; CHECK-NEXT: fcsel {{s[0-9]+}}, [[R]], {{s[0-9]+}}, vs
|
|
}
|
|
|
|
define float @fone(float %a, float %b) {
|
|
%t = fcmp nsz one float %a, 0.0
|
|
%v = select i1 %t, float %b, float 0.0
|
|
ret float %v
|
|
; CHECK-LABEL: fone
|
|
; CHECK: fcmp [[R:s[0-9]+]], #0.0
|
|
; CHECK-NEXT: fcsel {{s[0-9]+}}, {{s[0-9]+}}, [[R]], mi
|
|
; CHECK-NEXT: fcsel {{s[0-9]+}}, {{s[0-9]+}}, [[R]], gt
|
|
}
|
|
|
|
define float @fune(float %a, float %b) {
|
|
%t = fcmp nsz une float %a, 0.0
|
|
%v = select i1 %t, float %b, float 0.0
|
|
ret float %v
|
|
; CHECK-LABEL: fune
|
|
; CHECK: fcmp [[R:s[0-9]+]], #0.0
|
|
; CHECK-NEXT: fcsel {{s[0-9]+}}, {{s[0-9]+}}, [[R]], ne
|
|
}
|
|
|
|
define double @doeq(double %a, double %b) {
|
|
%t = fcmp nsz oeq double %a, 0.0
|
|
%v = select i1 %t, double 0.0, double %b
|
|
ret double %v
|
|
; CHECK-LABEL: doeq
|
|
; CHECK: fcmp [[R:d[0-9]+]], #0.0
|
|
; CHECK-NEXT: fcsel {{d[0-9]+}}, [[R]], {{d[0-9]+}}, eq
|
|
}
|
|
|
|
define double @dueq(double %a, double %b) {
|
|
%t = fcmp nsz ueq double %a, 0.0
|
|
%v = select i1 %t, double 0.0, double %b
|
|
ret double %v
|
|
; CHECK-LABEL: dueq
|
|
; CHECK: fcmp [[R:d[0-9]+]], #0.0
|
|
; CHECK-NEXT: fcsel {{d[0-9]+}}, [[R]], {{d[0-9]+}}, eq
|
|
; CHECK-NEXT: fcsel {{d[0-9]+}}, [[R]], {{d[0-9]+}}, vs
|
|
}
|
|
|
|
define double @done(double %a, double %b) {
|
|
%t = fcmp nsz one double %a, 0.0
|
|
%v = select i1 %t, double %b, double 0.0
|
|
ret double %v
|
|
; CHECK-LABEL: done
|
|
; CHECK: fcmp [[R:d[0-9]+]], #0.0
|
|
; CHECK-NEXT: fcsel {{d[0-9]+}}, {{d[0-9]+}}, [[R]], mi
|
|
; CHECK-NEXT: fcsel {{d[0-9]+}}, {{d[0-9]+}}, [[R]], gt
|
|
}
|
|
|
|
define double @dune(double %a, double %b) {
|
|
%t = fcmp nsz une double %a, 0.0
|
|
%v = select i1 %t, double %b, double 0.0
|
|
ret double %v
|
|
; CHECK-LABEL: dune
|
|
; CHECK: fcmp [[R:d[0-9]+]], #0.0
|
|
; CHECK-NEXT: fcsel {{d[0-9]+}}, {{d[0-9]+}}, [[R]], ne
|
|
}
|