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
56 lines
1.6 KiB
LLVM
56 lines
1.6 KiB
LLVM
; RUN: llc -mtriple=mips -mcpu=mips32r5 -mattr=+fp64,+msa,+nooddspreg < %s | FileCheck %s
|
|
|
|
; Test that the register allocator honours +nooddspreg and does not pick an odd
|
|
; single precision subregister of an MSA register.
|
|
|
|
@f1 = external global float
|
|
|
|
@f2 = external global float
|
|
|
|
@v3 = external global <4 x float>
|
|
|
|
@d1 = external global double
|
|
|
|
define void @test() {
|
|
; CHECK-LABEL: test:
|
|
entry:
|
|
; CHECK-NOT: lwc1 $f{{[13579]+}}
|
|
; CHECK: lwc1 $f{{[02468]+}}
|
|
%0 = load float, ptr @f1
|
|
%1 = insertelement <4 x float> undef, float %0, i32 0
|
|
%2 = insertelement <4 x float> %1, float %0, i32 1
|
|
%3 = insertelement <4 x float> %2, float %0, i32 2
|
|
%4 = insertelement <4 x float> %3, float %0, i32 3
|
|
|
|
; CHECK-NOT: lwc1 $f{{[13579]+}}
|
|
; CHECK: lwc1 $f{{[02468]+}}
|
|
%5 = load float, ptr @f2
|
|
%6 = insertelement <4 x float> undef, float %5, i32 0
|
|
%7 = insertelement <4 x float> %6, float %5, i32 1
|
|
%8 = insertelement <4 x float> %7, float %5, i32 2
|
|
%9 = insertelement <4 x float> %8, float %5, i32 3
|
|
|
|
%10 = fadd <4 x float> %4, %9
|
|
store <4 x float> %10, ptr @v3
|
|
ret void
|
|
}
|
|
|
|
; Test that the register allocator hnours +noodspreg and does not pick an odd
|
|
; single precision register for a load to perform a conversion to a double.
|
|
|
|
define void @test2() {
|
|
; CHECK-LABEL: test2:
|
|
entry:
|
|
; CHECK-NOT: lwc1 $f{{[13579]+}}
|
|
; CHECK: lwc1 $f{{[02468]+}}
|
|
%0 = load float, ptr @f1
|
|
%1 = fpext float %0 to double
|
|
; CHECK-NOT: lwc1 $f{{[13579]+}}
|
|
; CHECK: lwc1 $f{{[02468]+}}
|
|
%2 = load float, ptr @f2
|
|
%3 = fpext float %2 to double
|
|
%4 = fadd double %1, %3
|
|
store double%4, ptr @d1
|
|
ret void
|
|
}
|