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
131 lines
2.8 KiB
LLVM
131 lines
2.8 KiB
LLVM
; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefixes=CHECK,X86
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefixes=CHECK,X64
|
|
|
|
define i129 @fptosi_float(float %a) nounwind {
|
|
; CHECK-LABEL: fptosi_float:
|
|
; CHECK-NOT: call
|
|
%res = fptosi float %a to i129
|
|
ret i129 %res
|
|
}
|
|
|
|
define i129 @fptosi_double(double %a) nounwind {
|
|
; CHECK-LABEL: fptosi_double:
|
|
; CHECK-NOT: call
|
|
%res = fptosi double %a to i129
|
|
ret i129 %res
|
|
}
|
|
|
|
define i129 @fptosi_fp128(fp128 %a) nounwind {
|
|
; CHECK-LABEL: fptosi_fp128:
|
|
; CHECK-NOT: call
|
|
%res = fptosi fp128 %a to i129
|
|
ret i129 %res
|
|
}
|
|
|
|
define i129 @fptoui_float(float %a) nounwind {
|
|
; CHECK-LABEL: fptoui_float:
|
|
; CHECK-NOT: call
|
|
%res = fptoui float %a to i129
|
|
ret i129 %res
|
|
}
|
|
|
|
define i129 @fptoui_double(double %a) nounwind {
|
|
; CHECK-LABEL: fptoui_double:
|
|
; CHECK-NOT: call
|
|
%res = fptoui double %a to i129
|
|
ret i129 %res
|
|
}
|
|
|
|
define i129 @fptoui_fp128(fp128 %a) nounwind {
|
|
; CHECK-LABEL: fptoui_fp128:
|
|
; CHECK-NOT: call
|
|
%res = fptoui fp128 %a to i129
|
|
ret i129 %res
|
|
}
|
|
|
|
define float @sitofp_float(i129 %a) nounwind {
|
|
; CHECK-LABEL: sitofp_float:
|
|
; CHECK-NOT: call
|
|
%res = sitofp i129 %a to float
|
|
ret float %res
|
|
}
|
|
|
|
define double @sitofp_double(i129 %a) nounwind {
|
|
; CHECK-LABEL: sitofp_double:
|
|
; CHECK-NOT: call
|
|
%res = sitofp i129 %a to double
|
|
ret double %res
|
|
}
|
|
|
|
define fp128 @sitofp_fp128(i129 %a) nounwind {
|
|
; CHECK-LABEL: sitofp_fp128:
|
|
; CHECK-NOT: call
|
|
%res = sitofp i129 %a to fp128
|
|
ret fp128 %res
|
|
}
|
|
|
|
define float @uitofp_float(i129 %a) nounwind {
|
|
; CHECK-LABEL: uitofp_float:
|
|
; CHECK-NOT: call
|
|
%res = uitofp i129 %a to float
|
|
ret float %res
|
|
}
|
|
|
|
define double @uitofp_double(i129 %a) nounwind {
|
|
; CHECK-LABEL: uitofp_double:
|
|
; CHECK-NOT: call
|
|
%res = uitofp i129 %a to double
|
|
ret double %res
|
|
}
|
|
|
|
define fp128 @uitofp_fp128(i129 %a) nounwind {
|
|
; CHECK-LABEL: uitofp_fp128:
|
|
; CHECK-NOT: call
|
|
%res = uitofp i129 %a to fp128
|
|
ret fp128 %res
|
|
}
|
|
|
|
; higher sizes
|
|
define i257 @fptosi257_double(double %a) nounwind {
|
|
; CHECK-LABEL: fptosi257_double:
|
|
; CHECK-NOT: call
|
|
%res = fptosi double %a to i257
|
|
ret i257 %res
|
|
}
|
|
|
|
; half tests
|
|
define i257 @fptosi_half(half %a) nounwind {
|
|
; X86-LABEL: fptosi_half:
|
|
; X86: __extendhfsf2
|
|
;
|
|
; X64-LABEL: fptosi_half:
|
|
; X64: __extendhfsf2
|
|
%res = fptosi half %a to i257
|
|
ret i257 %res
|
|
}
|
|
|
|
define half @uitofp_half(i257 %a) nounwind {
|
|
; X86-LABEL: uitofp_half:
|
|
; X86: __truncsfhf2
|
|
;
|
|
; X64-LABEL: uitofp_half:
|
|
; X64: __truncsfhf2
|
|
%res = uitofp i257 %a to half
|
|
ret half %res
|
|
}
|
|
|
|
; x86_fp80 tests
|
|
define i257 @fptoui_x86_fp80(x86_fp80 %a) nounwind {
|
|
; CHECK-LABEL: fptoui_x86_fp80:
|
|
; CHECK: __extendxftf2
|
|
%res = fptoui x86_fp80 %a to i257
|
|
ret i257 %res
|
|
}
|
|
|
|
define x86_fp80 @sitofp_x86_fp80(i257 %a) nounwind {
|
|
; CHECK-LABEL: sitofp_x86_fp80:
|
|
; CHECK: __trunctfxf2
|
|
%res = sitofp i257 %a to x86_fp80
|
|
ret x86_fp80 %res
|
|
}
|