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
89 lines
2.1 KiB
LLVM
89 lines
2.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
|
|
; RUN: llc -mtriple=riscv32 -mattr=+zfa -global-isel < %s \
|
|
; RUN: | FileCheck %s
|
|
; RUN: llc -mtriple=riscv64 -mattr=+zfa -global-isel < %s \
|
|
; RUN: | FileCheck %s
|
|
|
|
|
|
define float @fceil(float %a) {
|
|
; CHECK-LABEL: fceil:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fround.s fa0, fa0, rup
|
|
; CHECK-NEXT: ret
|
|
%b = call float @llvm.ceil.f32(float %a)
|
|
ret float %b
|
|
}
|
|
|
|
define float @ffloor(float %a) {
|
|
; CHECK-LABEL: ffloor:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fround.s fa0, fa0, rdn
|
|
; CHECK-NEXT: ret
|
|
%b = call float @llvm.floor.f32(float %a)
|
|
ret float %b
|
|
}
|
|
|
|
define float @frint(float %a) {
|
|
; CHECK-LABEL: frint:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: froundnx.s fa0, fa0
|
|
; CHECK-NEXT: ret
|
|
%b = call float @llvm.rint.f32(float %a)
|
|
ret float %b
|
|
}
|
|
|
|
define float @fnearbyint(float %a) {
|
|
; CHECK-LABEL: fnearbyint:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fround.s fa0, fa0
|
|
; CHECK-NEXT: ret
|
|
%b = call float @llvm.nearbyint.f32(float %a)
|
|
ret float %b
|
|
}
|
|
|
|
define float @fround(float %a) {
|
|
; CHECK-LABEL: fround:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fround.s fa0, fa0, rmm
|
|
; CHECK-NEXT: ret
|
|
%b = call float @llvm.round.f32(float %a)
|
|
ret float %b
|
|
}
|
|
|
|
define float @froundeven(float %a) {
|
|
; CHECK-LABEL: froundeven:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fround.s fa0, fa0, rne
|
|
; CHECK-NEXT: ret
|
|
%b = call float @llvm.roundeven.f32(float %a)
|
|
ret float %b
|
|
}
|
|
|
|
define float @ftrunc(float %a) {
|
|
; CHECK-LABEL: ftrunc:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fround.s fa0, fa0, rtz
|
|
; CHECK-NEXT: ret
|
|
%b = call float @llvm.trunc.f32(float %a)
|
|
ret float %b
|
|
}
|
|
|
|
define float @fmaximum(float %a, float %b) {
|
|
; CHECK-LABEL: fmaximum:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fmaxm.s fa0, fa0, fa1
|
|
; CHECK-NEXT: ret
|
|
%c = call float @llvm.maximum.f32(float %a, float %b)
|
|
ret float %c
|
|
}
|
|
|
|
define float @fminimum(float %a, float %b) {
|
|
; CHECK-LABEL: fminimum:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fminm.s fa0, fa0, fa1
|
|
; CHECK-NEXT: ret
|
|
%c = call float @llvm.minimum.f32(float %a, float %b)
|
|
ret float %c
|
|
}
|