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
367 lines
12 KiB
LLVM
367 lines
12 KiB
LLVM
; RUN: llc -mtriple=amdgcn < %s | FileCheck -enable-var-scope -check-prefixes=SI,GCN %s
|
|
|
|
; RUN: llc -mtriple=amdgcn -mcpu=fiji < %s | FileCheck -enable-var-scope -check-prefixes=VI,GCN %s
|
|
|
|
; GCN-LABEL: {{^}}min_fneg_select_regression_0:
|
|
; GCN-NOT: v_mul
|
|
|
|
; VI: v_cmp_nle_f32_e32 vcc, 1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, -1.0, -v0, vcc
|
|
define amdgpu_ps float @min_fneg_select_regression_0(float %a, float %b) #0 {
|
|
%fneg.a = fsub float -0.0, %a
|
|
%cmp.a = fcmp ult float %a, 1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float -1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}min_fneg_select_regression_0_fast:
|
|
; GCN-NOT: v_mul
|
|
|
|
define amdgpu_ps float @min_fneg_select_regression_0_fast(float %a, float %b) #0 {
|
|
%fneg.a = fsub float -0.0, %a
|
|
%cmp.a = fcmp ult float %a, 1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float -1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}min_fneg_select_regression_posk_0:
|
|
; GCN-NOT: v_mul
|
|
|
|
; SI: v_max_legacy_f32_e64 [[MIN:v[0-9]+]], 1.0, -v0
|
|
|
|
; VI: v_cmp_nle_f32_e32 vcc, -1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, 1.0, -v0, vcc
|
|
define amdgpu_ps float @min_fneg_select_regression_posk_0(float %a, float %b) #0 {
|
|
%fneg.a = fsub float -0.0, %a
|
|
%cmp.a = fcmp ult float %a, -1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}min_fneg_select_regression_posk_0_fast:
|
|
; GCN-NOT: v_mul
|
|
|
|
; VI: v_max_f32_e64 v{{[0-9]+}}, -v0, 1.0
|
|
define amdgpu_ps float @min_fneg_select_regression_posk_0_fast(float %a, float %b) #0 {
|
|
%fneg.a = fsub float -0.0, %a
|
|
%cmp.a = fcmp ult float %a, -1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}max_fneg_select_regression_0:
|
|
; GCN-NOT: v_mul
|
|
|
|
; SI: v_min_legacy_f32_e64 [[MIN:v[0-9]+]], -1.0, -v0
|
|
|
|
; VI: v_cmp_nge_f32_e32 vcc, 1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, -1.0, -v0, vcc
|
|
define amdgpu_ps float @max_fneg_select_regression_0(float %a) #0 {
|
|
%fneg.a = fsub float -0.0, %a
|
|
%cmp.a = fcmp ugt float %a, 1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float -1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}max_fneg_select_regression_0_fast:
|
|
; GCN-NOT: v_mul
|
|
|
|
; GCN: v_min_f32_e64 [[MIN:v[0-9]+]], -v0, -1.0
|
|
define amdgpu_ps float @max_fneg_select_regression_0_fast(float %a) #0 {
|
|
%fneg.a = fsub float -0.0, %a
|
|
%cmp.a = fcmp ugt float %a, 1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float -1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}max_fneg_select_regression_posk_0:
|
|
; GCN-NOT: v_mul
|
|
|
|
; SI: v_min_legacy_f32_e64 [[MIN:v[0-9]+]], 1.0, -v0
|
|
|
|
; VI: v_cmp_nge_f32_e32 vcc, -1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, 1.0, -v0, vcc
|
|
define amdgpu_ps float @max_fneg_select_regression_posk_0(float %a) #0 {
|
|
%fneg.a = fsub float -0.0, %a
|
|
%cmp.a = fcmp ugt float %a, -1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}max_fneg_select_regression_posk_0_fast:
|
|
; GCN-NOT: v_mul
|
|
|
|
; GCN: v_min_f32_e64 [[MIN:v[0-9]+]], -v0, 1.0
|
|
define amdgpu_ps float @max_fneg_select_regression_posk_0_fast(float %a) #0 {
|
|
%fneg.a = fsub float -0.0, %a
|
|
%cmp.a = fcmp ugt float %a, -1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ugt_a_neg1:
|
|
; SI: v_min_legacy_f32_e64 v0, 1.0, -v0
|
|
|
|
; VI: v_cmp_nge_f32_e32 vcc, -1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, 1.0, -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ugt_a_neg1(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ugt float %a, -1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ugt_a_neg1_fast:
|
|
|
|
; VI: v_min_f32_e64 v0, -v0, 1.0
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ugt_a_neg1_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ugt float %a, -1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ult_a_neg1:
|
|
; SI: v_max_legacy_f32_e64 v0, 1.0, -v0
|
|
|
|
; VI: v_cmp_nle_f32_e32 vcc, -1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, 1.0, -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ult_a_neg1(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ult float %a, -1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ult_a_neg1_fast:
|
|
|
|
; VI: v_max_f32_e64 v0, -v0, 1.0
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ult_a_neg1_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ult float %a, -1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ogt_a_neg1:
|
|
; SI: v_min_legacy_f32_e64 v0, -v0, 1.0
|
|
|
|
; VI: v_cmp_lt_f32_e32 vcc, -1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, 1.0, -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ogt_a_neg1(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ogt float %a, -1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ogt_a_neg1_fast:
|
|
|
|
; VI: v_min_f32_e64 v0, -v0, 1.0
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ogt_a_neg1_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ogt float %a, -1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_olt_a_neg1:
|
|
; SI: v_max_legacy_f32_e64 v0, -v0, 1.0
|
|
|
|
; VI: v_cmp_gt_f32_e32 vcc, -1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, 1.0, -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_olt_a_neg1(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp olt float %a, -1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_olt_a_neg1_fast:
|
|
|
|
; VI-NANN: v_max_f32_e64 v0, -v0, 1.0
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_olt_a_neg1_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp olt float %a, -1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ugt_a_neg8:
|
|
; SI: s_mov_b32 [[K:s[0-9]+]], 0x41000000
|
|
; SI-NEXT: v_min_legacy_f32_e64 v0, [[K]], -v0
|
|
|
|
; VI-DAG: s_mov_b32 [[K0:s[0-9]+]], 0xc1000000
|
|
; VI-DAG: v_mov_b32_e32 [[K1:v[0-9]+]], 0x41000000
|
|
; VI: v_cmp_nge_f32_e32 vcc, [[K0]], v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, [[K1]], -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ugt_a_neg8(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ugt float %a, -8.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 8.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ugt_a_neg8_fast:
|
|
|
|
; VI: s_mov_b32 [[K:s[0-9]+]], 0x41000000
|
|
; VI-NEXT: v_min_f32_e64 v0, -v0, [[K]]
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ugt_a_neg8_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ugt float %a, -8.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 8.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ult_a_neg8:
|
|
; SI: s_mov_b32 [[K:s[0-9]+]], 0x41000000
|
|
; SI-NEXT: v_max_legacy_f32_e64 v0, [[K]], -v0
|
|
|
|
; VI-DAG: s_mov_b32 [[K0:s[0-9]+]], 0xc1000000
|
|
; VI-DAG: v_mov_b32_e32 [[K1:v[0-9]+]], 0x41000000
|
|
; VI: v_cmp_nle_f32_e32 vcc, [[K0]], v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, [[K1]], -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ult_a_neg8(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ult float %a, -8.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 8.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ult_a_neg8_fast:
|
|
|
|
; VI: s_mov_b32 [[K:s[0-9]+]], 0x41000000
|
|
; VI-NEXT: v_max_f32_e64 v0, -v0, [[K]]
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ult_a_neg8_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ult float %a, -8.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 8.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ogt_a_neg8:
|
|
; SI: s_mov_b32 [[K:s[0-9]+]], 0x41000000
|
|
; SI-NEXT: v_min_legacy_f32_e64 v0, -v0, [[K]]
|
|
|
|
; VI-DAG: s_mov_b32 [[K0:s[0-9]+]], 0xc1000000
|
|
; VI-DAG: v_mov_b32_e32 [[K1:v[0-9]+]], 0x41000000
|
|
; VI: v_cmp_lt_f32_e32 vcc, [[K0]], v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, [[K1]], -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ogt_a_neg8(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ogt float %a, -8.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 8.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_ogt_a_neg8_fast:
|
|
|
|
; VI: s_mov_b32 [[K:s[0-9]+]], 0x41000000
|
|
; VI-NEXT: v_min_f32_e64 v0, -v0, [[K]]
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_ogt_a_neg8_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ogt float %a, -8.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 8.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_olt_a_neg8:
|
|
; SI: s_mov_b32 [[K:s[0-9]+]], 0x41000000
|
|
; SI-NEXT: v_max_legacy_f32_e64 v0, -v0, [[K]]
|
|
|
|
|
|
; VI-DAG: s_mov_b32 [[K0:s[0-9]+]], 0xc1000000
|
|
; VI-DAG: v_mov_b32_e32 [[K1:v[0-9]+]], 0x41000000
|
|
; VI: v_cmp_gt_f32_e32 vcc, [[K0]], v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, [[K1]], -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_olt_a_neg8(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp olt float %a, -8.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float 8.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_q_cmp_olt_a_neg8_fast:
|
|
|
|
; VI: s_mov_b32 [[K:s[0-9]+]], 0x41000000
|
|
; VI-NEXT: v_max_f32_e64 v0, -v0, [[K]]
|
|
define amdgpu_ps float @select_fneg_a_or_q_cmp_olt_a_neg8_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp olt float %a, -8.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float 8.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_neg1_cmp_olt_a_1:
|
|
; SI: v_max_legacy_f32_e64 v0, -v0, -1.0
|
|
|
|
; VI: v_cmp_gt_f32_e32 vcc, 1.0, v0
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, -1.0, -v0, vcc
|
|
define amdgpu_ps float @select_fneg_a_or_neg1_cmp_olt_a_1(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp olt float %a, 1.0
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float -1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}select_fneg_a_or_neg1_cmp_olt_a_1_fast:
|
|
|
|
; VI: v_max_f32_e64 v0, -v0, -1.0
|
|
define amdgpu_ps float @select_fneg_a_or_neg1_cmp_olt_a_1_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp olt float %a, 1.0
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float -1.0
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}ult_a_select_fneg_a_b:
|
|
; SI: v_cmp_nge_f32_e32 vcc, v0, v1
|
|
; SI-NEXT: v_cndmask_b32_e64 v0, v1, -v0, vcc
|
|
|
|
; VI: v_cmp_nge_f32_e32 vcc, v0, v1
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, v1, -v0, vcc
|
|
define amdgpu_ps float @ult_a_select_fneg_a_b(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ult float %a, %b
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float %b
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}ult_a_select_fneg_a_b_fast:
|
|
|
|
; VI: v_cmp_lt_f32_e32 vcc, v0, v1
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, v1, -v0, vcc
|
|
define amdgpu_ps float @ult_a_select_fneg_a_b_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp nnan nsz ult float %a, %b
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float %b
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}ugt_a_select_fneg_a_b:
|
|
; SI: v_cmp_nle_f32_e32 vcc, v0, v1
|
|
; SI-NEXT: v_cndmask_b32_e64 v0, v1, -v0, vcc
|
|
|
|
; VI: v_cmp_nle_f32_e32 vcc, v0, v1
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, v1, -v0, vcc
|
|
define amdgpu_ps float @ugt_a_select_fneg_a_b(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp ugt float %a, %b
|
|
%min.a = select i1 %cmp.a, float %fneg.a, float %b
|
|
ret float %min.a
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}ugt_a_select_fneg_a_b_fast:
|
|
|
|
; VI: v_cmp_gt_f32_e32 vcc, v0, v1
|
|
; VI-NEXT: v_cndmask_b32_e64 v0, v1, -v0, vcc
|
|
define amdgpu_ps float @ugt_a_select_fneg_a_b_fast(float %a, float %b) #0 {
|
|
%fneg.a = fneg float %a
|
|
%cmp.a = fcmp nnan nsz ugt float %a, %b
|
|
%min.a = select nnan nsz i1 %cmp.a, float %fneg.a, float %b
|
|
ret float %min.a
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|
|
attributes #1 = { nounwind readnone }
|