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
72 lines
2.0 KiB
LLVM
72 lines
2.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -ppc-asm-full-reg-names | FileCheck %s
|
|
|
|
define double @test1(double %a, double %b, double %c, double %d) {
|
|
; CHECK-LABEL: test1:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fmul f0, f3, f4
|
|
; CHECK-NEXT: fmul f1, f1, f2
|
|
; CHECK-NEXT: fadd f1, f1, f0
|
|
; CHECK-NEXT: blr
|
|
%tmp2 = fsub double -0.000000e+00, %c
|
|
%tmp4 = fmul double %tmp2, %d
|
|
%tmp7 = fmul double %a, %b
|
|
%tmp9 = fsub double %tmp7, %tmp4
|
|
ret double %tmp9
|
|
}
|
|
|
|
declare float @llvm.fmuladd.f32(float, float, float) #4
|
|
|
|
define float @fma_fneg_fneg(float %x, float %y, float %z) {
|
|
; CHECK-LABEL: fma_fneg_fneg:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fmadds f1, f1, f2, f3
|
|
; CHECK-NEXT: blr
|
|
%negx = fneg float %x
|
|
%negy = fneg float %y
|
|
%r = call float @llvm.fmuladd.f32(float %negx, float %negy, float %z)
|
|
ret float %r
|
|
}
|
|
|
|
define float @fma_fneg_fsub(float %x, float %y0, float %y1, float %z) {
|
|
; CHECK-LABEL: fma_fneg_fsub:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fsubs f0, f3, f2
|
|
; CHECK-NEXT: fmadds f1, f1, f0, f4
|
|
; CHECK-NEXT: blr
|
|
%negx = fneg float %x
|
|
%negy = fsub nsz float %y0, %y1
|
|
%r = call float @llvm.fmuladd.f32(float %negx, float %negy, float %z)
|
|
ret float %r
|
|
}
|
|
|
|
; Verify that we didn't hit assertion for this case.
|
|
define double @fneg_no_ice(float %x) {
|
|
; CHECK-LABEL: fneg_no_ice:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lis r3, .LCPI3_0@ha
|
|
; CHECK-NEXT: lfs f0, .LCPI3_0@l(r3)
|
|
; CHECK-NEXT: fsubs f0, f0, f1
|
|
; CHECK-NEXT: fmul f1, f0, f0
|
|
; CHECK-NEXT: fmul f1, f0, f1
|
|
; CHECK-NEXT: blr
|
|
%y = fsub fast float 1.0, %x
|
|
%e = fpext float %y to double
|
|
%e2 = fmul double %e, %e
|
|
%e3 = fmul double %e, %e2
|
|
ret double %e3
|
|
}
|
|
|
|
define double @fneg_fmul_const(double %x) {
|
|
; CHECK-LABEL: fneg_fmul_const:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: lis r3, .LCPI4_0@ha
|
|
; CHECK-NEXT: lfd f0, .LCPI4_0@l(r3)
|
|
; CHECK-NEXT: fmul f1, f1, f0
|
|
; CHECK-NEXT: blr
|
|
entry:
|
|
%f = fmul double %x, 1.2345
|
|
%s = fneg double %f
|
|
ret double %s
|
|
}
|