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
108 lines
4.4 KiB
LLVM
108 lines
4.4 KiB
LLVM
; Check that abs.[ds] is only selected for mips32r6 or mips64r6 when no
|
|
; additional options are passed. For revisions prior mips32r6 and mips64r6,
|
|
; abs.[ds] does not generate the correct result when working with NaNs, and
|
|
; should be explicitly enabled with nnan flag or +abs2008 options.
|
|
|
|
; In 1985 mode, abs.[ds] are arithmetic (i.e. they raise invalid operation
|
|
; exceptions when given NaN's). In 2008 mode, they are non-arithmetic (i.e.
|
|
; they are copies and don't raise any exceptions).
|
|
|
|
; Testing default values
|
|
; RUN: llc < %s -mtriple=mipsel-linux-gnu -mcpu=mips32 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mips64el-linux-gnu -mcpu=mips64 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mipsel-linux-gnu -mcpu=mips32r2 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mips64el-linux-gnu -mcpu=mips64r2 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mipsel-linux-gnu -mcpu=mips32r6 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABS2008
|
|
; RUN: llc < %s -mtriple=mips64el-linux-gnu -mcpu=mips64r6 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABS2008
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mips64-linux-gnu -mcpu=mips64 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mips64-linux-gnu -mcpu=mips64r2 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r6 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABS2008
|
|
; RUN: llc < %s -mtriple=mips64-linux-gnu -mcpu=mips64r6 | FileCheck %s \
|
|
; RUN: -check-prefixes=CHECK,CHECK-ABS2008
|
|
; Testing non-default values
|
|
; RUN: llc < %s -mtriple=mipsel-linux-gnu -mcpu=mips32r2 -mattr=+abs2008 \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,CHECK-ABS2008
|
|
; RUN: llc < %s -mtriple=mips64el-linux-gnu -mcpu=mips64r2 -mattr=+abs2008 \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,CHECK-ABS2008
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+abs2008 \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,CHECK-ABS2008
|
|
; RUN: llc < %s -mtriple=mips64-linux-gnu -mcpu=mips64r2 -mattr=+abs2008 \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,CHECK-ABS2008
|
|
|
|
; microMIPS
|
|
; Testing default values
|
|
; RUN: llc < %s -mtriple=mipsel-linux-gnu -mcpu=mips32 -mattr=+micromips \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mipsel-linux-gnu -mcpu=mips32r2 -mattr=+micromips \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32 -mattr=+micromips \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+micromips \
|
|
; RUN: | FileCheck %s -check-prefixes=CHECK,CHECK-ABSLEGACY
|
|
; Testing non-default values
|
|
; RUN: llc < %s -mtriple=mipsel-linux-gnu -mcpu=mips32r2 \
|
|
; RUN: -mattr=+abs2008,+micromips | FileCheck %s -check-prefixes=CHECK,CHECK-ABS2008
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 \
|
|
; RUN: -mattr=+abs2008,+micromips | FileCheck %s -check-prefixes=CHECK,CHECK-ABS2008
|
|
|
|
define float @foo0(float %a) nounwind readnone {
|
|
entry:
|
|
|
|
; CHECK-LABEL: foo0
|
|
; CHECK-ABS2008: abs.s
|
|
; CHECK-ABSLEGACY: {{(ori|ins)}}
|
|
; CHECK-ABSLEGACY-NOT: abs.s
|
|
|
|
%call = tail call float @llvm.fabs.f32(float %a) nounwind readnone
|
|
ret float %call
|
|
}
|
|
|
|
define float @foo0_nnan(float %a) nounwind readnone {
|
|
entry:
|
|
|
|
; CHECK-LABEL: foo0_nnan
|
|
; CHECK-ABS2008: abs.s
|
|
|
|
%call = tail call nnan float @llvm.fabs.f32(float %a) nounwind readnone
|
|
ret float %call
|
|
}
|
|
|
|
declare float @llvm.fabs.f32(float) nounwind readnone
|
|
|
|
define double @foo1(double %a) nounwind readnone {
|
|
entry:
|
|
|
|
; CHECK-LABEL: foo1:
|
|
; CHECK-ABS2008: abs.d
|
|
; CHECK-ABSLEGACY: {{(ori|ins|dsll)}}
|
|
; CHECK-ABSLEGACY-NOT: abs.d
|
|
|
|
%call = tail call double @llvm.fabs.f64(double %a) nounwind readnone
|
|
ret double %call
|
|
}
|
|
|
|
define double @foo1_nnan(double %a) nounwind readnone {
|
|
entry:
|
|
|
|
; CHECK-LABEL: foo1_nnan
|
|
; CHECK-ABS2008: abs.d
|
|
|
|
%call = tail call nnan double @llvm.fabs.f64(double %a) nounwind readnone
|
|
ret double %call
|
|
}
|
|
|
|
declare double @llvm.fabs.f64(double) nounwind readnone
|