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
84 lines
1.7 KiB
LLVM
84 lines
1.7 KiB
LLVM
; Test conversion of floating-point values to unsigned integers.
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z196 | FileCheck %s
|
|
|
|
; Test f16->i32.
|
|
define i32 @f0(half %f) {
|
|
; CHECK-LABEL: f0:
|
|
; CHECK: brasl %r14, __extendhfsf2@PLT
|
|
; CHECK-NEXT: clfebr %r2, 5, %f0, 0
|
|
; CHECK: br %r14
|
|
%conv = fptoui half %f to i32
|
|
ret i32 %conv
|
|
}
|
|
|
|
; Test f32->i32.
|
|
define i32 @f1(float %f) {
|
|
; CHECK-LABEL: f1:
|
|
; CHECK: clfebr %r2, 5, %f0, 0
|
|
; CHECK: br %r14
|
|
%conv = fptoui float %f to i32
|
|
ret i32 %conv
|
|
}
|
|
|
|
; Test f64->i32.
|
|
define i32 @f2(double %f) {
|
|
; CHECK-LABEL: f2:
|
|
; CHECK: clfdbr %r2, 5, %f0, 0
|
|
; CHECK: br %r14
|
|
%conv = fptoui double %f to i32
|
|
ret i32 %conv
|
|
}
|
|
|
|
; Test f128->i32.
|
|
define i32 @f3(ptr %src) {
|
|
; CHECK-LABEL: f3:
|
|
; CHECK-DAG: ld %f0, 0(%r2)
|
|
; CHECK-DAG: ld %f2, 8(%r2)
|
|
; CHECK: clfxbr %r2, 5, %f0, 0
|
|
; CHECK: br %r14
|
|
%f = load fp128, ptr %src
|
|
%conv = fptoui fp128 %f to i32
|
|
ret i32 %conv
|
|
}
|
|
|
|
; Test f16->i64.
|
|
define i64 @f4(half %f) {
|
|
; CHECK-LABEL: f4:
|
|
; CHECK: brasl %r14, __extendhfsf2@PLT
|
|
; CHECK-NEXT: clgebr %r2, 5, %f0, 0
|
|
; CHECK: br %r14
|
|
%conv = fptoui half %f to i64
|
|
ret i64 %conv
|
|
}
|
|
|
|
; Test f32->i64.
|
|
define i64 @f5(float %f) {
|
|
; CHECK-LABEL: f5:
|
|
; CHECK: clgebr %r2, 5, %f0, 0
|
|
; CHECK: br %r14
|
|
%conv = fptoui float %f to i64
|
|
ret i64 %conv
|
|
}
|
|
|
|
; Test f64->i64.
|
|
define i64 @f6(double %f) {
|
|
; CHECK-LABEL: f6:
|
|
; CHECK: clgdbr %r2, 5, %f0, 0
|
|
; CHECK: br %r14
|
|
%conv = fptoui double %f to i64
|
|
ret i64 %conv
|
|
}
|
|
|
|
; Test f128->i64.
|
|
define i64 @f7(ptr %src) {
|
|
; CHECK-LABEL: f7:
|
|
; CHECK-DAG: ld %f0, 0(%r2)
|
|
; CHECK-DAG: ld %f2, 8(%r2)
|
|
; CHECK: clgxbr %r2, 5, %f0, 0
|
|
; CHECK: br %r14
|
|
%f = load fp128, ptr %src
|
|
%conv = fptoui fp128 %f to i64
|
|
ret i64 %conv
|
|
}
|