Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/Mips/2013-11-18-fp64-const0.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

67 lines
2.6 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=mips-- -mattr=-fp64 | FileCheck %s -check-prefix=CHECK-FP32
; RUN: llc < %s -mtriple=mips-- -mcpu=mips32r2 -mattr=+fp64 | FileCheck %s -check-prefix=CHECK-FP64
; This test case is a simplified version of an llvm-stress generated test with
; seed=3718491962.
; It originally failed on MIPS32 with FP64 with the following error:
; LLVM ERROR: ran out of registers during register allocation
; This was caused by impossible register class restrictions caused by the use
; of BuildPairF64 instead of BuildPairF64_64.
; FIXME: A redundant mthc1 is currently emitted.
define void @autogen_SD3718491962(double %a0) {
; CHECK-FP32-LABEL: autogen_SD3718491962:
; CHECK-FP32: # %bb.0: # %BB
; CHECK-FP32-NEXT: lui $1, %hi($CPI0_0)
; CHECK-FP32-NEXT: ldc1 $f0, %lo($CPI0_0)($1)
; CHECK-FP32-NEXT: mtc1 $zero, $f2
; CHECK-FP32-NEXT: mtc1 $zero, $f3
; CHECK-FP32-NEXT: $BB0_1: # %CF88
; CHECK-FP32-NEXT: # =>This Inner Loop Header: Depth=1
; CHECK-FP32-NEXT: c.ueq.d $f12, $f0
; CHECK-FP32-NEXT: addiu $1, $zero, 1
; CHECK-FP32-NEXT: movf $1, $zero, $fcc0
; CHECK-FP32-NEXT: c.olt.d $f12, $f2
; CHECK-FP32-NEXT: addiu $2, $zero, 1
; CHECK-FP32-NEXT: movt $2, $zero, $fcc0
; CHECK-FP32-NEXT: and $1, $2, $1
; CHECK-FP32-NEXT: bnez $1, $BB0_1
; CHECK-FP32-NEXT: nop
; CHECK-FP32-NEXT: # %bb.2: # %CF85
; CHECK-FP32-NEXT: jr $ra
; CHECK-FP32-NEXT: nop
;
; CHECK-FP64-LABEL: autogen_SD3718491962:
; CHECK-FP64: # %bb.0: # %BB
; CHECK-FP64-NEXT: lui $1, %hi($CPI0_0)
; CHECK-FP64-NEXT: ldc1 $f0, %lo($CPI0_0)($1)
; CHECK-FP64-NEXT: mtc1 $zero, $f1
; CHECK-FP64-NEXT: mthc1 $zero, $f1
; CHECK-FP64-NEXT: $BB0_1: # %CF88
; CHECK-FP64-NEXT: # =>This Inner Loop Header: Depth=1
; CHECK-FP64-NEXT: c.ueq.d $f12, $f0
; CHECK-FP64-NEXT: addiu $1, $zero, 1
; CHECK-FP64-NEXT: movf $1, $zero, $fcc0
; CHECK-FP64-NEXT: c.olt.d $f12, $f1
; CHECK-FP64-NEXT: addiu $2, $zero, 1
; CHECK-FP64-NEXT: movt $2, $zero, $fcc0
; CHECK-FP64-NEXT: and $1, $2, $1
; CHECK-FP64-NEXT: bnez $1, $BB0_1
; CHECK-FP64-NEXT: nop
; CHECK-FP64-NEXT: # %bb.2: # %CF85
; CHECK-FP64-NEXT: jr $ra
; CHECK-FP64-NEXT: nop
BB:
%Cmp = fcmp ule double 0.000000e+00, %a0
%Cmp11 = fcmp ueq double 0xFDBD965CF1BB7FDA, %a0
br label %CF88
CF88: ; preds = %CF86
%Sl18 = select i1 %Cmp, i1 %Cmp11, i1 %Cmp
br i1 %Sl18, label %CF88, label %CF85
CF85: ; preds = %CF88
ret void
}