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
59 lines
2.3 KiB
LLVM
59 lines
2.3 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
|
|
; Verify that we get the code sequence needed to avoid double-rounding.
|
|
; Note that only parts of the sequence are checked for here, to allow
|
|
; for minor code generation differences.
|
|
; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-fpcvt < %s | FileCheck %s
|
|
; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-fpcvt -mattr=-isel < %s | FileCheck %s --check-prefix=CHECK-NO-ISEL
|
|
; Also check that with fpexcept.ignore we do not get that extra
|
|
; code sequence. Simply verify that there is no "isel" present.
|
|
|
|
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
|
|
target triple = "powerpc64-unknown-linux-gnu"
|
|
|
|
define float @test(i64 %x) nounwind readnone {
|
|
; Verify that we get the code sequence needed to avoid double-rounding.
|
|
; Note that only parts of the sequence are checked for here, to allow
|
|
; for minor code generation differences.
|
|
; Also check that with fpexcept.ignore we do not get that extra
|
|
; code sequence. Simply verify that there is no "isel" present.
|
|
; CHECK-LABEL: test:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: clrldi 4, 3, 53
|
|
; CHECK-NEXT: sradi 5, 3, 53
|
|
; CHECK-NEXT: addi 4, 4, 2047
|
|
; CHECK-NEXT: addi 5, 5, 1
|
|
; CHECK-NEXT: or 4, 4, 3
|
|
; CHECK-NEXT: cmpldi 5, 1
|
|
; CHECK-NEXT: rldicr 4, 4, 0, 52
|
|
; CHECK-NEXT: iselgt 3, 4, 3
|
|
; CHECK-NEXT: std 3, -8(1)
|
|
; CHECK-NEXT: lfd 0, -8(1)
|
|
; CHECK-NEXT: xscvsxddp 0, 0
|
|
; CHECK-NEXT: frsp 1, 0
|
|
; CHECK-NEXT: blr
|
|
;
|
|
; CHECK-NO-ISEL-LABEL: test:
|
|
; CHECK-NO-ISEL: # %bb.0: # %entry
|
|
; CHECK-NO-ISEL-NEXT: sradi 4, 3, 53
|
|
; CHECK-NO-ISEL-NEXT: addi 4, 4, 1
|
|
; CHECK-NO-ISEL-NEXT: cmpldi 4, 1
|
|
; CHECK-NO-ISEL-NEXT: bc 4, 1, .LBB0_2
|
|
; CHECK-NO-ISEL-NEXT: # %bb.1:
|
|
; CHECK-NO-ISEL-NEXT: clrldi 4, 3, 53
|
|
; CHECK-NO-ISEL-NEXT: addi 4, 4, 2047
|
|
; CHECK-NO-ISEL-NEXT: or 3, 4, 3
|
|
; CHECK-NO-ISEL-NEXT: rldicr 3, 3, 0, 52
|
|
; CHECK-NO-ISEL-NEXT: .LBB0_2: # %entry
|
|
; CHECK-NO-ISEL-NEXT: std 3, -8(1)
|
|
; CHECK-NO-ISEL-NEXT: lfd 0, -8(1)
|
|
; CHECK-NO-ISEL-NEXT: xscvsxddp 0, 0
|
|
; CHECK-NO-ISEL-NEXT: frsp 1, 0
|
|
; CHECK-NO-ISEL-NEXT: blr
|
|
|
|
entry:
|
|
%conv = sitofp i64 %x to float
|
|
ret float %conv
|
|
}
|
|
|
|
; TODO: Add sitofp afn test.
|