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
53 lines
2.2 KiB
LLVM
53 lines
2.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: llc -mtriple=riscv64 -mattr=+d,+m < %s | FileCheck %s
|
|
|
|
; What the original PR (#169460) tried to solve can only be revealed when a specific
|
|
; set of FMA DAG combiner patterns were skipped due to hitting some recursion limits.
|
|
; And this test is written in a way to hit that limit.
|
|
|
|
define double @fnmadd_non_trivial(ptr %p0, ptr %p1, ptr %dst, double %mul425) {
|
|
; CHECK-LABEL: fnmadd_non_trivial:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: li a3, -2047
|
|
; CHECK-NEXT: slli a3, a3, 51
|
|
; CHECK-NEXT: fmv.d.x fa5, a3
|
|
; CHECK-NEXT: lui a3, 8201
|
|
; CHECK-NEXT: slli a3, a3, 37
|
|
; CHECK-NEXT: fmv.d.x fa4, a3
|
|
; CHECK-NEXT: li a3, -1025
|
|
; CHECK-NEXT: slli a3, a3, 52
|
|
; CHECK-NEXT: fmv.d.x fa3, a3
|
|
; CHECK-NEXT: lui a3, %hi(.LCPI0_0)
|
|
; CHECK-NEXT: fmv.d.x fa2, zero
|
|
; CHECK-NEXT: ld a3, %lo(.LCPI0_0)(a3)
|
|
; CHECK-NEXT: fnmsub.d fa1, fa0, fa4, fa5
|
|
; CHECK-NEXT: fmadd.d fa4, fa0, fa4, fa5
|
|
; CHECK-NEXT: fmul.d fa5, fa0, fa5
|
|
; CHECK-NEXT: fmadd.d fa1, fa1, fa2, fa3
|
|
; CHECK-NEXT: fmadd.d fa4, fa4, fa2, fa3
|
|
; CHECK-NEXT: sd a3, 0(a2)
|
|
; CHECK-NEXT: fsd fa5, 0(a0)
|
|
; CHECK-NEXT: fnmadd.d fa5, fa1, fa2, fa0
|
|
; CHECK-NEXT: fnmadd.d fa0, fa0, fa2, fa4
|
|
; CHECK-NEXT: fsd fa5, 0(a1)
|
|
; CHECK-NEXT: ret
|
|
store double 0x3FEE666666666666, ptr %dst, align 8
|
|
%mul413 = fmul double %mul425, -3.000000e+00
|
|
store double %mul413, ptr %p0, align 8
|
|
%mul428 = fmul contract double %mul425, 4.500000e+00
|
|
%add429 = fadd nsz contract double %mul428, 3.000000e+00
|
|
%mul430 = fmul contract double %add429, 0.000000e+00
|
|
%sub432 = fadd nsz contract double %mul430, 1.000000e+00
|
|
%mul433 = fmul contract double %sub432, 0.000000e+00
|
|
%1 = fsub nsz contract double %mul433, %mul425
|
|
store double %1, ptr %p1, align 8
|
|
%mul441 = fmul contract double %mul425, 0.000000e+00
|
|
%add443 = fsub double 0.000000e+00, %mul425
|
|
%mul446 = fmul contract double %add443, 4.500000e+00
|
|
%add447 = fadd nsz contract double %mul446, 3.000000e+00
|
|
%mul448 = fmul contract double %add447, 0.000000e+00
|
|
%sub450 = fadd nsz contract double %mul448, 1.000000e+00
|
|
%2 = fsub nsz contract double %sub450, %mul441
|
|
ret double %2
|
|
}
|