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
225 lines
8.0 KiB
LLVM
225 lines
8.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc --mtriple=mipsisa32r6-linux-gnu < %s | FileCheck %s --check-prefix=MIPS32R6
|
|
; RUN: llc --mtriple=mipsisa64r6-linux-gnu < %s | FileCheck %s --check-prefix=MIPS64R6
|
|
|
|
define float @f(float nofpclass(nan) %a, float nofpclass(nan) %b) {
|
|
; MIPS32R6-LABEL: f:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f0, $f12, $f14
|
|
;
|
|
; MIPS64R6-LABEL: f:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f0, $f12, $f13
|
|
entry:
|
|
%cond = tail call float @llvm.maximumnum.f32(float %a, float %b)
|
|
ret float %cond
|
|
}
|
|
|
|
define {float, float} @m({float, float} nofpclass(nan) %a0, {float, float} nofpclass(nan) %a1) {
|
|
; MIPS32R6-LABEL: m:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: mtc1 $6, $f0
|
|
; MIPS32R6-NEXT: max.s $f0, $f12, $f0
|
|
; MIPS32R6-NEXT: mtc1 $7, $f1
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f2, $f14, $f1
|
|
;
|
|
; MIPS64R6-LABEL: m:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: max.s $f0, $f12, $f14
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f2, $f13, $f15
|
|
entry:
|
|
%a0f0 = extractvalue {float, float} %a0, 0
|
|
%a0f1 = extractvalue {float, float} %a0, 1
|
|
%a1f0 = extractvalue {float, float} %a1, 0
|
|
%a1f1 = extractvalue {float, float} %a1, 1
|
|
%max0 = tail call float @llvm.maximumnum.f32(float %a0f0, float %a1f0)
|
|
%max1 = tail call float @llvm.maximumnum.f32(float %a0f1, float %a1f1)
|
|
%ret0 = insertvalue {float, float} poison, float %max0, 0
|
|
%ret1 = insertvalue {float, float} %ret0, float %max1, 1
|
|
ret {float, float} %ret1
|
|
}
|
|
|
|
define [2 x float] @mA([2 x float] nofpclass(nan) %a0, [2 x float] nofpclass(nan) %a1) {
|
|
; MIPS32R6-LABEL: mA:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: mtc1 $6, $f0
|
|
; MIPS32R6-NEXT: max.s $f0, $f12, $f0
|
|
; MIPS32R6-NEXT: mtc1 $7, $f1
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f2, $f14, $f1
|
|
;
|
|
; MIPS64R6-LABEL: mA:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: max.s $f0, $f12, $f14
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f2, $f13, $f15
|
|
entry:
|
|
%a0f0 = extractvalue [2 x float] %a0, 0
|
|
%a0f1 = extractvalue [2 x float] %a0, 1
|
|
%a1f0 = extractvalue [2 x float] %a1, 0
|
|
%a1f1 = extractvalue [2 x float] %a1, 1
|
|
%max0 = tail call float @llvm.maximumnum.f32(float %a0f0, float %a1f0)
|
|
%max1 = tail call float @llvm.maximumnum.f32(float %a0f1, float %a1f1)
|
|
%ret0 = insertvalue [2 x float] poison, float %max0, 0
|
|
%ret1 = insertvalue [2 x float] %ret0, float %max1, 1
|
|
ret [2 x float] %ret1
|
|
}
|
|
|
|
define float @fS(float nofpclass(snan) %a, float nofpclass(snan) %b) {
|
|
; MIPS32R6-LABEL: fS:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f0, $f12, $f14
|
|
;
|
|
; MIPS64R6-LABEL: fS:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f0, $f12, $f13
|
|
entry:
|
|
%cond = tail call float @llvm.maximumnum.f32(float %a, float %b)
|
|
ret float %cond
|
|
}
|
|
|
|
define {float, float} @mS({float, float} nofpclass(snan) %a0, {float, float} nofpclass(snan) %a1) {
|
|
; MIPS32R6-LABEL: mS:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: mtc1 $6, $f0
|
|
; MIPS32R6-NEXT: max.s $f0, $f12, $f0
|
|
; MIPS32R6-NEXT: mtc1 $7, $f1
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f2, $f14, $f1
|
|
;
|
|
; MIPS64R6-LABEL: mS:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: max.s $f0, $f12, $f14
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f2, $f13, $f15
|
|
entry:
|
|
%a0f0 = extractvalue {float, float} %a0, 0
|
|
%a0f1 = extractvalue {float, float} %a0, 1
|
|
%a1f0 = extractvalue {float, float} %a1, 0
|
|
%a1f1 = extractvalue {float, float} %a1, 1
|
|
%max0 = tail call float @llvm.maximumnum.f32(float %a0f0, float %a1f0)
|
|
%max1 = tail call float @llvm.maximumnum.f32(float %a0f1, float %a1f1)
|
|
%ret0 = insertvalue {float, float} poison, float %max0, 0
|
|
%ret1 = insertvalue {float, float} %ret0, float %max1, 1
|
|
ret {float, float} %ret1
|
|
}
|
|
|
|
define [2 x float] @mAS([2 x float] nofpclass(snan) %a0, [2 x float] nofpclass(snan) %a1) {
|
|
; MIPS32R6-LABEL: mAS:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: mtc1 $6, $f0
|
|
; MIPS32R6-NEXT: max.s $f0, $f12, $f0
|
|
; MIPS32R6-NEXT: mtc1 $7, $f1
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f2, $f14, $f1
|
|
;
|
|
; MIPS64R6-LABEL: mAS:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: max.s $f0, $f12, $f14
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f2, $f13, $f15
|
|
entry:
|
|
%a0f0 = extractvalue [2 x float] %a0, 0
|
|
%a0f1 = extractvalue [2 x float] %a0, 1
|
|
%a1f0 = extractvalue [2 x float] %a1, 0
|
|
%a1f1 = extractvalue [2 x float] %a1, 1
|
|
%max0 = tail call float @llvm.maximumnum.f32(float %a0f0, float %a1f0)
|
|
%max1 = tail call float @llvm.maximumnum.f32(float %a0f1, float %a1f1)
|
|
%ret0 = insertvalue [2 x float] poison, float %max0, 0
|
|
%ret1 = insertvalue [2 x float] %ret0, float %max1, 1
|
|
ret [2 x float] %ret1
|
|
}
|
|
|
|
define float @fQ(float nofpclass(qnan) %a, float nofpclass(qnan) %b) {
|
|
; MIPS32R6-LABEL: fQ:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: min.s $f0, $f14, $f14
|
|
; MIPS32R6-NEXT: min.s $f1, $f12, $f12
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f0, $f1, $f0
|
|
;
|
|
; MIPS64R6-LABEL: fQ:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: min.s $f0, $f13, $f13
|
|
; MIPS64R6-NEXT: min.s $f1, $f12, $f12
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f0, $f1, $f0
|
|
entry:
|
|
%cond = tail call float @llvm.maximumnum.f32(float %a, float %b)
|
|
ret float %cond
|
|
}
|
|
|
|
define {float, float} @mQ({float, float} nofpclass(qnan) %a0, {float, float} nofpclass(qnan) %a1) {
|
|
; MIPS32R6-LABEL: mQ:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: min.s $f0, $f12, $f12
|
|
; MIPS32R6-NEXT: mtc1 $6, $f1
|
|
; MIPS32R6-NEXT: min.s $f1, $f1, $f1
|
|
; MIPS32R6-NEXT: max.s $f0, $f0, $f1
|
|
; MIPS32R6-NEXT: min.s $f1, $f14, $f14
|
|
; MIPS32R6-NEXT: mtc1 $7, $f2
|
|
; MIPS32R6-NEXT: min.s $f2, $f2, $f2
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f2, $f1, $f2
|
|
;
|
|
; MIPS64R6-LABEL: mQ:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: min.s $f0, $f14, $f14
|
|
; MIPS64R6-NEXT: min.s $f1, $f12, $f12
|
|
; MIPS64R6-NEXT: max.s $f0, $f1, $f0
|
|
; MIPS64R6-NEXT: min.s $f1, $f15, $f15
|
|
; MIPS64R6-NEXT: min.s $f2, $f13, $f13
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f2, $f2, $f1
|
|
entry:
|
|
%a0f0 = extractvalue {float, float} %a0, 0
|
|
%a0f1 = extractvalue {float, float} %a0, 1
|
|
%a1f0 = extractvalue {float, float} %a1, 0
|
|
%a1f1 = extractvalue {float, float} %a1, 1
|
|
%max0 = tail call float @llvm.maximumnum.f32(float %a0f0, float %a1f0)
|
|
%max1 = tail call float @llvm.maximumnum.f32(float %a0f1, float %a1f1)
|
|
%ret0 = insertvalue {float, float} poison, float %max0, 0
|
|
%ret1 = insertvalue {float, float} %ret0, float %max1, 1
|
|
ret {float, float} %ret1
|
|
}
|
|
|
|
define [2 x float] @mAQ([2 x float] nofpclass(qnan) %a0, [2 x float] nofpclass(qnan) %a1) {
|
|
; MIPS32R6-LABEL: mAQ:
|
|
; MIPS32R6: # %bb.0: # %entry
|
|
; MIPS32R6-NEXT: min.s $f0, $f12, $f12
|
|
; MIPS32R6-NEXT: mtc1 $6, $f1
|
|
; MIPS32R6-NEXT: min.s $f1, $f1, $f1
|
|
; MIPS32R6-NEXT: max.s $f0, $f0, $f1
|
|
; MIPS32R6-NEXT: min.s $f1, $f14, $f14
|
|
; MIPS32R6-NEXT: mtc1 $7, $f2
|
|
; MIPS32R6-NEXT: min.s $f2, $f2, $f2
|
|
; MIPS32R6-NEXT: jr $ra
|
|
; MIPS32R6-NEXT: max.s $f2, $f1, $f2
|
|
;
|
|
; MIPS64R6-LABEL: mAQ:
|
|
; MIPS64R6: # %bb.0: # %entry
|
|
; MIPS64R6-NEXT: min.s $f0, $f14, $f14
|
|
; MIPS64R6-NEXT: min.s $f1, $f12, $f12
|
|
; MIPS64R6-NEXT: max.s $f0, $f1, $f0
|
|
; MIPS64R6-NEXT: min.s $f1, $f15, $f15
|
|
; MIPS64R6-NEXT: min.s $f2, $f13, $f13
|
|
; MIPS64R6-NEXT: jr $ra
|
|
; MIPS64R6-NEXT: max.s $f2, $f2, $f1
|
|
entry:
|
|
%a0f0 = extractvalue [2 x float] %a0, 0
|
|
%a0f1 = extractvalue [2 x float] %a0, 1
|
|
%a1f0 = extractvalue [2 x float] %a1, 0
|
|
%a1f1 = extractvalue [2 x float] %a1, 1
|
|
%max0 = tail call float @llvm.maximumnum.f32(float %a0f0, float %a1f0)
|
|
%max1 = tail call float @llvm.maximumnum.f32(float %a0f1, float %a1f1)
|
|
%ret0 = insertvalue [2 x float] poison, float %max0, 0
|
|
%ret1 = insertvalue [2 x float] %ret0, float %max1, 1
|
|
ret [2 x float] %ret1
|
|
}
|