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
185 lines
3.8 KiB
LLVM
185 lines
3.8 KiB
LLVM
; RUN: llc -mtriple=arm-eabihf -mattr=+vfp2 %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=VFP2
|
|
|
|
; RUN: llc -mtriple=arm-eabihf -mattr=+vfp3 %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=VFP3
|
|
|
|
; RUN: llc -mtriple=arm-eabihf -mattr=+neon %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=NEON
|
|
|
|
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=A8
|
|
|
|
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 -regalloc=basic %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=A8
|
|
|
|
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 --denormal-fp-math=preserve-sign %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=A8U
|
|
|
|
; RUN: llc -mtriple=arm-darwin -mcpu=cortex-a8 %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=A8U-DARWIN
|
|
|
|
define float @t1(float %acc, float %a, float %b) nounwind {
|
|
entry:
|
|
; VFP2-LABEL: t1:
|
|
; VFP2: vnmla.f32
|
|
|
|
; VFP3-LABEL: t1:
|
|
; VFP3: vnmla.f32
|
|
|
|
; NEON-LABEL: t1:
|
|
; NEON: vnmla.f32
|
|
|
|
; A8U-LABEL: t1:
|
|
; A8U: vmov.i32 d{{[0-9]+}}, #0x80000000
|
|
; A8U: vsub.f32 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}
|
|
; A8U: vsub.f32 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}
|
|
|
|
; A8U-DARWIN-LABEL: t1:
|
|
; A8U-DARWIN: vnmul.f32 s{{[0-9]}}, s{{[0-9]}}, s{{[0-9]}}
|
|
; A8U-DARWIN: vsub.f32 d{{[0-9]}}, d{{[0-9]}}, d{{[0-9]}}
|
|
|
|
; A8-LABEL: t1:
|
|
; A8: vnmul.f32 s{{[0-9]}}, s{{[0-9]}}, s{{[0-9]}}
|
|
; A8: vsub.f32 s{{[0-9]}}, s{{[0-9]}}, s{{[0-9]}}
|
|
%0 = fmul float %a, %b
|
|
%1 = fsub float -0.0, %0
|
|
%2 = fsub float %1, %acc
|
|
ret float %2
|
|
}
|
|
|
|
define float @t2(float %acc, float %a, float %b) nounwind {
|
|
entry:
|
|
; VFP2-LABEL: t2:
|
|
; VFP2: vnmla.f32
|
|
|
|
; VFP3-LABEL: t2:
|
|
; VFP3: vnmla.f32
|
|
|
|
; NEON-LABEL: t2:
|
|
; NEON: vnmla.f32
|
|
|
|
; A8U-LABEL: t2:
|
|
; A8U: vmov.i32 d{{[0-9]+}}, #0x80000000
|
|
; A8U: vsub.f32 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}
|
|
; A8U: vsub.f32 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}
|
|
|
|
; A8U-DARWIN-LABEL: t2:
|
|
; A8U-DARWIN: vnmul.f32 s{{[01234]}}, s{{[01234]}}, s{{[01234]}}
|
|
; A8U-DARWIN: vsub.f32 d{{[0-9]}}, d{{[0-9]}}, d{{[0-9]}}
|
|
|
|
; A8-LABEL: t2:
|
|
; A8: vnmul.f32 s{{[01234]}}, s{{[01234]}}, s{{[01234]}}
|
|
; A8: vsub.f32 s{{[0-9]}}, s{{[0-9]}}, s{{[0-9]}}
|
|
%0 = fmul float %a, %b
|
|
%1 = fmul float -1.0, %0
|
|
%2 = fsub float %1, %acc
|
|
ret float %2
|
|
}
|
|
|
|
define double @t3(double %acc, double %a, double %b) nounwind {
|
|
entry:
|
|
; VFP2-LABEL: t3:
|
|
; VFP2: vnmla.f64
|
|
|
|
; VFP3-LABEL: t3:
|
|
; VFP3: vnmla.f64
|
|
|
|
; NEON-LABEL: t3:
|
|
; NEON: vnmla.f64
|
|
|
|
; A8U-LABEL: t3:
|
|
; A8U: vsub.f64 d
|
|
; A8U: vsub.f64 d
|
|
|
|
; A8U-DARWIN-LABEL: t3:
|
|
; A8U-DARWIN: vnmul.f64 d
|
|
; A8U-DARWIN: vsub.f64 d
|
|
|
|
; A8-LABEL: t3:
|
|
; A8: vnmul.f64 d
|
|
; A8: vsub.f64 d
|
|
%0 = fmul double %a, %b
|
|
%1 = fsub double -0.0, %0
|
|
%2 = fsub double %1, %acc
|
|
ret double %2
|
|
}
|
|
|
|
define double @t4(double %acc, double %a, double %b) nounwind {
|
|
entry:
|
|
; VFP2-LABEL: t4:
|
|
; VFP2: vnmla.f64
|
|
|
|
; VFP3-LABEL: t4:
|
|
; VFP3: vnmla.f64
|
|
|
|
; NEON-LABEL: t4:
|
|
; NEON: vnmla.f64
|
|
|
|
; A8U-LABEL: t4:
|
|
; A8U: vsub.f64 d
|
|
; A8U: vsub.f64 d
|
|
|
|
; A8U-DARWIN-LABEL: t4:
|
|
; A8U-DARWIN: vnmul.f64 d
|
|
; A8U-DARWIN: vsub.f64 d
|
|
|
|
; A8-LABEL: t4:
|
|
; A8: vnmul.f64 d
|
|
; A8: vsub.f64 d
|
|
%0 = fmul double %a, %b
|
|
%1 = fmul double -1.0, %0
|
|
%2 = fsub double %1, %acc
|
|
ret double %2
|
|
}
|
|
|
|
define double @t5(double %acc, double %a, double %b) nounwind {
|
|
entry:
|
|
; VFP2-LABEL: t5:
|
|
; VFP2: vnmla.f64
|
|
|
|
; VFP3-LABEL: t5:
|
|
; VFP3: vnmla.f64
|
|
|
|
; NEON-LABEL: t5:
|
|
; NEON: vnmla.f64
|
|
|
|
; A8U-LABEL: t5:
|
|
; A8U: vmul.f64 d
|
|
; A8U: vsub.f64 d
|
|
|
|
; A8-LABEL: t5:
|
|
; A8: vmul.f64 d
|
|
; A8: vsub.f64 d
|
|
|
|
%0 = fsub double -0.0, %acc
|
|
%1 = fmul double %a, %b
|
|
%2 = fsub double %0, %1
|
|
ret double %2
|
|
}
|
|
|
|
define float @t6(float %acc, float %a, float %b) nounwind {
|
|
entry:
|
|
; VFP2-LABEL: t6:
|
|
; VFP2: vnmla.f32
|
|
|
|
; VFP3-LABEL: t6:
|
|
; VFP3: vnmla.f32
|
|
|
|
; NEON-LABEL: t6:
|
|
; NEON: vnmla.f32
|
|
|
|
; A8U-LABEL: t6:
|
|
; A8U: vmul.f32 d
|
|
; A8U: vsub.f32 d
|
|
|
|
; A8-LABEL: t6:
|
|
; A8: vmul.f32 s
|
|
; A8: vsub.f32 s
|
|
|
|
%0 = fsub float -0.0, %acc
|
|
%1 = fmul float %a, %b
|
|
%2 = fsub float %0, %1
|
|
ret float %2
|
|
}
|