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
77 lines
2.8 KiB
LLVM
77 lines
2.8 KiB
LLVM
; RUN: split-file %s %t
|
|
; RUN: not llc < %t/float8e4m3.ll -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s --check-prefix=E4M3
|
|
; RUN: not llc < %t/float8e3m4.ll -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s --check-prefix=E3M4
|
|
; RUN: not llc < %t/float8e5m2fnuz.ll -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s --check-prefix=E5M2FNUZ
|
|
; RUN: not llc < %t/float8e4m3fnuz.ll -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s --check-prefix=E4M3FNUZ
|
|
; RUN: not llc < %t/float8e4m3b11fnuz.ll -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s --check-prefix=E4M3B11FNUZ
|
|
; RUN: not llc < %t/float8e8m0fnu.ll -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s --check-prefix=E8M0FNU
|
|
|
|
; Test that llvm.convert.from.arbitrary.fp emits an error for formats that pass
|
|
; verifier validation but are not yet implemented in SelectionDAGBuilder.
|
|
|
|
;--- float8e4m3.ll
|
|
; E4M3: error: convert_from_arbitrary_fp: not implemented format 'Float8E4M3'
|
|
|
|
declare float @llvm.convert.from.arbitrary.fp.f32.i8(i8, metadata)
|
|
|
|
define float @from_f8e4m3(i8 %v) {
|
|
%r = call float @llvm.convert.from.arbitrary.fp.f32.i8(
|
|
i8 %v, metadata !"Float8E4M3")
|
|
ret float %r
|
|
}
|
|
|
|
;--- float8e3m4.ll
|
|
; E3M4: error: convert_from_arbitrary_fp: not implemented format 'Float8E3M4'
|
|
|
|
declare float @llvm.convert.from.arbitrary.fp.f32.i8(i8, metadata)
|
|
|
|
define float @from_f8e3m4(i8 %v) {
|
|
%r = call float @llvm.convert.from.arbitrary.fp.f32.i8(
|
|
i8 %v, metadata !"Float8E3M4")
|
|
ret float %r
|
|
}
|
|
|
|
;--- float8e5m2fnuz.ll
|
|
; E5M2FNUZ: error: convert_from_arbitrary_fp: not implemented format 'Float8E5M2FNUZ'
|
|
|
|
declare float @llvm.convert.from.arbitrary.fp.f32.i8(i8, metadata)
|
|
|
|
define float @from_f8e5m2fnuz(i8 %v) {
|
|
%r = call float @llvm.convert.from.arbitrary.fp.f32.i8(
|
|
i8 %v, metadata !"Float8E5M2FNUZ")
|
|
ret float %r
|
|
}
|
|
|
|
;--- float8e4m3fnuz.ll
|
|
; E4M3FNUZ: error: convert_from_arbitrary_fp: not implemented format 'Float8E4M3FNUZ'
|
|
|
|
declare float @llvm.convert.from.arbitrary.fp.f32.i8(i8, metadata)
|
|
|
|
define float @from_f8e4m3fnuz(i8 %v) {
|
|
%r = call float @llvm.convert.from.arbitrary.fp.f32.i8(
|
|
i8 %v, metadata !"Float8E4M3FNUZ")
|
|
ret float %r
|
|
}
|
|
|
|
;--- float8e4m3b11fnuz.ll
|
|
; E4M3B11FNUZ: error: convert_from_arbitrary_fp: not implemented format 'Float8E4M3B11FNUZ'
|
|
|
|
declare float @llvm.convert.from.arbitrary.fp.f32.i8(i8, metadata)
|
|
|
|
define float @from_f8e4m3b11fnuz(i8 %v) {
|
|
%r = call float @llvm.convert.from.arbitrary.fp.f32.i8(
|
|
i8 %v, metadata !"Float8E4M3B11FNUZ")
|
|
ret float %r
|
|
}
|
|
|
|
;--- float8e8m0fnu.ll
|
|
; E8M0FNU: error: convert_from_arbitrary_fp: not implemented format 'Float8E8M0FNU'
|
|
|
|
declare float @llvm.convert.from.arbitrary.fp.f32.i8(i8, metadata)
|
|
|
|
define float @from_f8e8m0fnu(i8 %v) {
|
|
%r = call float @llvm.convert.from.arbitrary.fp.f32.i8(
|
|
i8 %v, metadata !"Float8E8M0FNU")
|
|
ret float %r
|
|
}
|