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
63 lines
1.4 KiB
LLVM
63 lines
1.4 KiB
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s --check-prefix=ASSEM-DISASS
|
|
; RUN: opt < %s -O3 -S | FileCheck %s --check-prefix=OPT
|
|
; RUN: verify-uselistorder %s
|
|
; Basic smoke tests for bfloat type.
|
|
|
|
define bfloat @check_bfloat(bfloat %A) {
|
|
; ASSEM-DISASS: ret bfloat %A
|
|
ret bfloat %A
|
|
}
|
|
|
|
define bfloat @check_bfloat_literal() {
|
|
; ASSEM-DISASS: ret bfloat 2.924930e-09
|
|
ret bfloat 0xR3149
|
|
}
|
|
|
|
define <4 x bfloat> @check_fixed_vector() {
|
|
; ASSEM-DISASS: ret <4 x bfloat> %tmp
|
|
%tmp = fadd <4 x bfloat> undef, undef
|
|
ret <4 x bfloat> %tmp
|
|
}
|
|
|
|
define <vscale x 4 x bfloat> @check_vector() {
|
|
; ASSEM-DISASS: ret <vscale x 4 x bfloat> %tmp
|
|
%tmp = fadd <vscale x 4 x bfloat> undef, undef
|
|
ret <vscale x 4 x bfloat> %tmp
|
|
}
|
|
|
|
define bfloat @check_bfloat_constprop() {
|
|
%tmp = fadd bfloat 0xR40C0, 0xR40C0
|
|
; OPT: 1.200000e+01
|
|
ret bfloat %tmp
|
|
}
|
|
|
|
define float @check_bfloat_convert() {
|
|
%tmp = fpext bfloat 0xR4C8D to float
|
|
; OPT: f0x4C8D0000
|
|
ret float %tmp
|
|
}
|
|
|
|
; ASSEM-DISASS-LABEL @snan_bfloat
|
|
define bfloat @snan_bfloat() {
|
|
; ASSEM-DISASS: ret bfloat +snan(0x1)
|
|
ret bfloat 0xR7F81
|
|
}
|
|
|
|
; ASSEM-DISASS-LABEL @qnan_bfloat
|
|
define bfloat @qnan_bfloat() {
|
|
; ASSEM-DISASS: ret bfloat +qnan
|
|
ret bfloat 0xR7FC0
|
|
}
|
|
|
|
; ASSEM-DISASS-LABEL @pos_inf_bfloat
|
|
define bfloat @pos_inf_bfloat() {
|
|
; ASSEM-DISASS: ret bfloat +inf
|
|
ret bfloat 0xR7F80
|
|
}
|
|
|
|
; ASSEM-DISASS-LABEL @neg_inf_bfloat
|
|
define bfloat @neg_inf_bfloat() {
|
|
; ASSEM-DISASS: ret bfloat -inf
|
|
ret bfloat 0xRFF80
|
|
}
|