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
113 lines
4.9 KiB
LLVM
113 lines
4.9 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: llc < %s -mtriple=aarch64-unknown-linux -mattr=+neon,+fullfp16 | FileCheck %s
|
|
|
|
define <2 x double> @manual_fmaxp_v2f64(<2 x double> %a, <2 x double> %b) {
|
|
; CHECK-LABEL: manual_fmaxp_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxp v0.2d, v0.2d, v1.2d
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <2 x double> %a, <2 x double> %b, <2 x i32> <i32 0, i32 2>
|
|
%o = shufflevector <2 x double> %a, <2 x double> %b, <2 x i32> <i32 1, i32 3>
|
|
%r = call <2 x double> @llvm.maximum.v2f64(<2 x double> %e, <2 x double> %o)
|
|
ret <2 x double> %r
|
|
}
|
|
|
|
define <2 x double> @manual_fminp_v2f64(<2 x double> %a, <2 x double> %b) {
|
|
; CHECK-LABEL: manual_fminp_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminp v0.2d, v0.2d, v1.2d
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <2 x double> %a, <2 x double> %b, <2 x i32> <i32 0, i32 2>
|
|
%o = shufflevector <2 x double> %a, <2 x double> %b, <2 x i32> <i32 1, i32 3>
|
|
%r = call <2 x double> @llvm.minimum.v2f64(<2 x double> %e, <2 x double> %o)
|
|
ret <2 x double> %r
|
|
}
|
|
|
|
define <2 x float> @manual_fmaxp_v2f32(<2 x float> %a, <2 x float> %b) {
|
|
; CHECK-LABEL: manual_fmaxp_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxp v0.2s, v0.2s, v1.2s
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <2 x float> %a, <2 x float> %b, <2 x i32> <i32 0, i32 2>
|
|
%o = shufflevector <2 x float> %a, <2 x float> %b, <2 x i32> <i32 1, i32 3>
|
|
%r = call <2 x float> @llvm.maximum.v2f32(<2 x float> %e, <2 x float> %o)
|
|
ret <2 x float> %r
|
|
}
|
|
|
|
define <2 x float> @manual_fminp_v2f32(<2 x float> %a, <2 x float> %b) {
|
|
; CHECK-LABEL: manual_fminp_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminp v0.2s, v0.2s, v1.2s
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <2 x float> %a, <2 x float> %b, <2 x i32> <i32 0, i32 2>
|
|
%o = shufflevector <2 x float> %a, <2 x float> %b, <2 x i32> <i32 1, i32 3>
|
|
%r = call <2 x float> @llvm.minimum.v2f32(<2 x float> %e, <2 x float> %o)
|
|
ret <2 x float> %r
|
|
}
|
|
|
|
define <4 x float> @manual_fmaxp_v4f32(<4 x float> %a, <4 x float> %b) {
|
|
; CHECK-LABEL: manual_fmaxp_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxp v0.4s, v0.4s, v1.4s
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <4 x float> %a, <4 x float> %b, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
|
|
%o = shufflevector <4 x float> %a, <4 x float> %b, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
|
|
%r = call <4 x float> @llvm.maximum.v4f32(<4 x float> %e, <4 x float> %o)
|
|
ret <4 x float> %r
|
|
}
|
|
|
|
define <4 x float> @manual_fminp_v4f32(<4 x float> %a, <4 x float> %b) {
|
|
; CHECK-LABEL: manual_fminp_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminp v0.4s, v0.4s, v1.4s
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <4 x float> %a, <4 x float> %b, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
|
|
%o = shufflevector <4 x float> %a, <4 x float> %b, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
|
|
%r = call <4 x float> @llvm.minimum.v4f32(<4 x float> %e, <4 x float> %o)
|
|
ret <4 x float> %r
|
|
}
|
|
|
|
define <4 x half> @manual_fmaxp_v4f16(<4 x half> %a, <4 x half> %b) {
|
|
; CHECK-LABEL: manual_fmaxp_v4f16:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxp v0.4h, v0.4h, v1.4h
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <4 x half> %a, <4 x half> %b, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
|
|
%o = shufflevector <4 x half> %a, <4 x half> %b, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
|
|
%r = call <4 x half> @llvm.maximum.v4f16(<4 x half> %e, <4 x half> %o)
|
|
ret <4 x half> %r
|
|
}
|
|
|
|
define <4 x half> @manual_fminp_v4f16(<4 x half> %a, <4 x half> %b) {
|
|
; CHECK-LABEL: manual_fminp_v4f16:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminp v0.4h, v0.4h, v1.4h
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <4 x half> %a, <4 x half> %b, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
|
|
%o = shufflevector <4 x half> %a, <4 x half> %b, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
|
|
%r = call <4 x half> @llvm.minimum.v4f16(<4 x half> %e, <4 x half> %o)
|
|
ret <4 x half> %r
|
|
}
|
|
|
|
define <8 x half> @manual_fmaxp_v8f16(<8 x half> %a, <8 x half> %b) {
|
|
; CHECK-LABEL: manual_fmaxp_v8f16:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmaxp v0.8h, v0.8h, v1.8h
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <8 x half> %a, <8 x half> %b, <8 x i32> <i32 0, i32 2, i32 4, i32 6, i32 8, i32 10, i32 12, i32 14>
|
|
%o = shufflevector <8 x half> %a, <8 x half> %b, <8 x i32> <i32 1, i32 3, i32 5, i32 7, i32 9, i32 11, i32 13, i32 15>
|
|
%r = call <8 x half> @llvm.maximum.v8f16(<8 x half> %e, <8 x half> %o)
|
|
ret <8 x half> %r
|
|
}
|
|
|
|
define <8 x half> @manual_fminp_v8f16(<8 x half> %a, <8 x half> %b) {
|
|
; CHECK-LABEL: manual_fminp_v8f16:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fminp v0.8h, v0.8h, v1.8h
|
|
; CHECK-NEXT: ret
|
|
%e = shufflevector <8 x half> %a, <8 x half> %b, <8 x i32> <i32 0, i32 2, i32 4, i32 6, i32 8, i32 10, i32 12, i32 14>
|
|
%o = shufflevector <8 x half> %a, <8 x half> %b, <8 x i32> <i32 1, i32 3, i32 5, i32 7, i32 9, i32 11, i32 13, i32 15>
|
|
%r = call <8 x half> @llvm.minimum.v8f16(<8 x half> %e, <8 x half> %o)
|
|
ret <8 x half> %r
|
|
}
|