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
38 lines
1.8 KiB
LLVM
38 lines
1.8 KiB
LLVM
; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
|
|
|
|
; CHECK-SPIRV-NOT: OpDecorate %[[#]] FPFastMathMode
|
|
; CHECK-SPIRV-DAG: OpDecorate %[[#r2:]] FPFastMathMode {{NotNaN(\||$)}}
|
|
; CHECK-SPIRV-DAG: OpDecorate %[[#r3:]] FPFastMathMode {{NotInf(\||$)}}
|
|
; CHECK-SPIRV-DAG: OpDecorate %[[#r4:]] FPFastMathMode {{NSZ(\||$)}}
|
|
; CHECK-SPIRV-DAG: OpDecorate %[[#r5:]] FPFastMathMode {{AllowRecip(\||$)}}
|
|
; CHECK-SPIRV-DAG: OpDecorate %[[#r6:]] FPFastMathMode {{NotNaN\|NotInf\|NSZ\|AllowRecip\|Fast(\||$)}}
|
|
; CHECK-SPIRV-DAG: OpDecorate %[[#r7:]] FPFastMathMode {{NotNaN\|NotInf(\||$)}}
|
|
; CHECK-SPIRV: %[[#float:]] = OpTypeFloat 32
|
|
; CHECK-SPIRV: %[[#r1:]] = OpFMul %[[#float]]
|
|
; CHECK-SPIRV: %[[#r2]] = OpFMul %[[#float]]
|
|
; CHECK-SPIRV: %[[#r3]] = OpFMul %[[#float]]
|
|
; CHECK-SPIRV: %[[#r4]] = OpFMul %[[#float]]
|
|
; CHECK-SPIRV: %[[#r5]] = OpFMul %[[#float]]
|
|
; CHECK-SPIRV: %[[#r6]] = OpFMul %[[#float]]
|
|
; CHECK-SPIRV: %[[#r7]] = OpFMul %[[#float]]
|
|
|
|
define spir_kernel void @testFMul(float %a, float %b, ptr addrspace(1) %out) local_unnamed_addr {
|
|
entry:
|
|
%r1 = fmul float %a, %b
|
|
store volatile float %r1, ptr addrspace(1) %out
|
|
%r2 = fmul nnan float %a, %b
|
|
store volatile float %r2, ptr addrspace(1) %out
|
|
%r3 = fmul ninf float %a, %b
|
|
store volatile float %r3, ptr addrspace(1) %out
|
|
%r4 = fmul nsz float %a, %b
|
|
store volatile float %r4, ptr addrspace(1) %out
|
|
%r5 = fmul arcp float %a, %b
|
|
store volatile float %r5, ptr addrspace(1) %out
|
|
%r6 = fmul fast float %a, %b
|
|
store volatile float %r6, ptr addrspace(1) %out
|
|
%r7 = fmul nnan ninf float %a, %b
|
|
store volatile float %r7, ptr addrspace(1) %out
|
|
ret void
|
|
}
|