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
128 lines
4.0 KiB
LLVM
128 lines
4.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: llc < %s -mtriple=arm64-linux-gnu | FileCheck %s
|
|
; RUN: llc < %s -mtriple=arm64-linux-gnu -global-isel | FileCheck %s
|
|
|
|
define float @test_fminv_v2f32(<2 x float> %in) {
|
|
; CHECK-LABEL: test_fminv_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminp s0, v0.2s
|
|
; CHECK-NEXT: ret
|
|
%min = call float @llvm.aarch64.neon.fminv.f32.v2f32(<2 x float> %in)
|
|
ret float %min
|
|
}
|
|
|
|
define float @test_fminv_v4f32(<4 x float> %in) {
|
|
; CHECK-LABEL: test_fminv_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminv s0, v0.4s
|
|
; CHECK-NEXT: ret
|
|
%min = call float @llvm.aarch64.neon.fminv.f32.v4f32(<4 x float> %in)
|
|
ret float %min
|
|
}
|
|
|
|
define double @test_fminv_v2f64(<2 x double> %in) {
|
|
; CHECK-LABEL: test_fminv_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminp d0, v0.2d
|
|
; CHECK-NEXT: ret
|
|
%min = call double @llvm.aarch64.neon.fminv.f64.v2f64(<2 x double> %in)
|
|
ret double %min
|
|
}
|
|
|
|
declare float @llvm.aarch64.neon.fminv.f32.v2f32(<2 x float>)
|
|
declare float @llvm.aarch64.neon.fminv.f32.v4f32(<4 x float>)
|
|
declare double @llvm.aarch64.neon.fminv.f64.v2f64(<2 x double>)
|
|
|
|
define float @test_fmaxv_v2f32(<2 x float> %in) {
|
|
; CHECK-LABEL: test_fmaxv_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxp s0, v0.2s
|
|
; CHECK-NEXT: ret
|
|
%max = call float @llvm.aarch64.neon.fmaxv.f32.v2f32(<2 x float> %in)
|
|
ret float %max
|
|
}
|
|
|
|
define float @test_fmaxv_v4f32(<4 x float> %in) {
|
|
; CHECK-LABEL: test_fmaxv_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxv s0, v0.4s
|
|
; CHECK-NEXT: ret
|
|
%max = call float @llvm.aarch64.neon.fmaxv.f32.v4f32(<4 x float> %in)
|
|
ret float %max
|
|
}
|
|
|
|
define double @test_fmaxv_v2f64(<2 x double> %in) {
|
|
; CHECK-LABEL: test_fmaxv_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxp d0, v0.2d
|
|
; CHECK-NEXT: ret
|
|
%max = call double @llvm.aarch64.neon.fmaxv.f64.v2f64(<2 x double> %in)
|
|
ret double %max
|
|
}
|
|
|
|
declare float @llvm.aarch64.neon.fmaxv.f32.v2f32(<2 x float>)
|
|
declare float @llvm.aarch64.neon.fmaxv.f32.v4f32(<4 x float>)
|
|
declare double @llvm.aarch64.neon.fmaxv.f64.v2f64(<2 x double>)
|
|
|
|
define float @test_fminnmv_v2f32(<2 x float> %in) {
|
|
; CHECK-LABEL: test_fminnmv_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminnmp s0, v0.2s
|
|
; CHECK-NEXT: ret
|
|
%minnm = call float @llvm.aarch64.neon.fminnmv.f32.v2f32(<2 x float> %in)
|
|
ret float %minnm
|
|
}
|
|
|
|
define float @test_fminnmv_v4f32(<4 x float> %in) {
|
|
; CHECK-LABEL: test_fminnmv_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminnmv s0, v0.4s
|
|
; CHECK-NEXT: ret
|
|
%minnm = call float @llvm.aarch64.neon.fminnmv.f32.v4f32(<4 x float> %in)
|
|
ret float %minnm
|
|
}
|
|
|
|
define double @test_fminnmv_v2f64(<2 x double> %in) {
|
|
; CHECK-LABEL: test_fminnmv_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminnmp d0, v0.2d
|
|
; CHECK-NEXT: ret
|
|
%minnm = call double @llvm.aarch64.neon.fminnmv.f64.v2f64(<2 x double> %in)
|
|
ret double %minnm
|
|
}
|
|
|
|
declare float @llvm.aarch64.neon.fminnmv.f32.v2f32(<2 x float>)
|
|
declare float @llvm.aarch64.neon.fminnmv.f32.v4f32(<4 x float>)
|
|
declare double @llvm.aarch64.neon.fminnmv.f64.v2f64(<2 x double>)
|
|
|
|
define float @test_fmaxnmv_v2f32(<2 x float> %in) {
|
|
; CHECK-LABEL: test_fmaxnmv_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxnmp s0, v0.2s
|
|
; CHECK-NEXT: ret
|
|
%maxnm = call float @llvm.aarch64.neon.fmaxnmv.f32.v2f32(<2 x float> %in)
|
|
ret float %maxnm
|
|
}
|
|
|
|
define float @test_fmaxnmv_v4f32(<4 x float> %in) {
|
|
; CHECK-LABEL: test_fmaxnmv_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxnmv s0, v0.4s
|
|
; CHECK-NEXT: ret
|
|
%maxnm = call float @llvm.aarch64.neon.fmaxnmv.f32.v4f32(<4 x float> %in)
|
|
ret float %maxnm
|
|
}
|
|
|
|
define double @test_fmaxnmv_v2f64(<2 x double> %in) {
|
|
; CHECK-LABEL: test_fmaxnmv_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxnmp d0, v0.2d
|
|
; CHECK-NEXT: ret
|
|
%maxnm = call double @llvm.aarch64.neon.fmaxnmv.f64.v2f64(<2 x double> %in)
|
|
ret double %maxnm
|
|
}
|
|
|
|
declare float @llvm.aarch64.neon.fmaxnmv.f32.v2f32(<2 x float>)
|
|
declare float @llvm.aarch64.neon.fmaxnmv.f32.v4f32(<4 x float>)
|
|
declare double @llvm.aarch64.neon.fmaxnmv.f64.v2f64(<2 x double>)
|