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
1.8 KiB
LLVM
53 lines
1.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=mips64el-mti-linux-gnu -mattr=+single-float < %s | FileCheck %s
|
|
; This test casts a 32-bit float to a 64-bit int. This would cause a crash due
|
|
; to LLVM incorrectly lowering the float on single-float platforms.
|
|
|
|
define void @foo(ptr %in, ptr %out) {
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: daddiu $sp, $sp, -16
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
|
; CHECK-NEXT: sd $5, 0($sp)
|
|
; CHECK-NEXT: sd $4, 8($sp)
|
|
; CHECK-NEXT: lwc1 $f0, 0($4)
|
|
; CHECK-NEXT: mfc1 $1, $f0
|
|
; CHECK-NEXT: lui $2, 32640
|
|
; CHECK-NEXT: and $2, $1, $2
|
|
; CHECK-NEXT: srl $2, $2, 23
|
|
; CHECK-NEXT: lui $3, 127
|
|
; CHECK-NEXT: ori $3, $3, 65535
|
|
; CHECK-NEXT: addiu $4, $zero, 150
|
|
; CHECK-NEXT: subu $4, $4, $2
|
|
; CHECK-NEXT: and $3, $1, $3
|
|
; CHECK-NEXT: lui $6, 128
|
|
; CHECK-NEXT: or $3, $3, $6
|
|
; CHECK-NEXT: dsll $3, $3, 32
|
|
; CHECK-NEXT: dsrl $3, $3, 32
|
|
; CHECK-NEXT: dsrlv $4, $3, $4
|
|
; CHECK-NEXT: addiu $6, $2, -150
|
|
; CHECK-NEXT: dsllv $3, $3, $6
|
|
; CHECK-NEXT: addiu $2, $2, -127
|
|
; CHECK-NEXT: slti $6, $2, 24
|
|
; CHECK-NEXT: movz $4, $3, $6
|
|
; CHECK-NEXT: sra $1, $1, 31
|
|
; CHECK-NEXT: xor $3, $4, $1
|
|
; CHECK-NEXT: dsubu $1, $3, $1
|
|
; CHECK-NEXT: slti $2, $2, 0
|
|
; CHECK-NEXT: movn $1, $zero, $2
|
|
; CHECK-NEXT: sd $1, 0($5)
|
|
; CHECK-NEXT: jr $ra
|
|
; CHECK-NEXT: daddiu $sp, $sp, 16
|
|
entry:
|
|
%in.addr = alloca ptr, align 8
|
|
%out.addr = alloca ptr, align 8
|
|
store ptr %in, ptr %in.addr, align 8
|
|
store ptr %out, ptr %out.addr, align 8
|
|
%0 = load ptr, ptr %in.addr, align 8
|
|
%1 = load float, ptr %0, align 4
|
|
%conv = fptosi float %1 to i64
|
|
%2 = load ptr, ptr %out.addr, align 8
|
|
store i64 %conv, ptr %2, align 8
|
|
ret void
|
|
}
|