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
75 lines
3.1 KiB
LLVM
75 lines
3.1 KiB
LLVM
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
|
|
|
|
; Test if llvm.exp10 is lowered to opencl::exp10 with the result correctly
|
|
; reused by the original llvm.exp10 user.
|
|
|
|
|
|
; CHECK-DAG: %[[#ExtInstId:]] = OpExtInstImport "OpenCL.std"
|
|
; CHECK-DAG: %[[#F16Ty:]] = OpTypeFloat 16
|
|
; CHECK-DAG: %[[#F32Ty:]] = OpTypeFloat 32
|
|
; CHECK-DAG: %[[#F64Ty:]] = OpTypeFloat 64
|
|
; CHECK-DAG: %[[#Vec16_16Ty:]] = OpTypeVector %[[#F16Ty]] 16
|
|
; CHECK-DAG: %[[#Vec16_32y:]] = OpTypeVector %[[#F32Ty]] 16
|
|
; CHECK-DAG: %[[#Vec16_64Ty:]] = OpTypeVector %[[#F64Ty]] 16
|
|
|
|
; CHECK-LABEL: Begin function test_exp10_f16_scalar
|
|
; CHECK: %[[#s16_arg:]] = OpFunctionParameter %[[#F16Ty]]
|
|
; CHECK: %[[#s16_ret:]] = OpExtInst %[[#F16Ty]] %[[#ExtInstId]] exp10 %[[#s16_arg]]
|
|
; CHECK: OpReturnValue %[[#s16_ret]]
|
|
; CHECK-LABEL: OpFunctionEnd
|
|
define half @test_exp10_f16_scalar(half %x) {
|
|
%res = call half @llvm.exp10.f16(half %x)
|
|
ret half %res
|
|
}
|
|
|
|
; CHECK-LABEL: Begin function test_exp10_f32_scalar
|
|
; CHECK: %[[#s32_arg:]] = OpFunctionParameter %[[#F32Ty]]
|
|
; CHECK: %[[#s32_ret:]] = OpExtInst %[[#F32Ty]] %[[#ExtInstId]] exp10 %[[#s32_arg]]
|
|
; CHECK: OpReturnValue %[[#s32_ret]]
|
|
; CHECK-LABEL: OpFunctionEnd
|
|
define float @test_exp10_f32_scalar(float %x) {
|
|
%res = call float @llvm.exp10.f32(float %x)
|
|
ret float %res
|
|
}
|
|
|
|
; CHECK-LABEL: Begin function test_exp10_f64_scalar
|
|
; CHECK: %[[#s64_arg:]] = OpFunctionParameter %[[#F64Ty]]
|
|
; CHECK: %[[#s64_ret:]] = OpExtInst %[[#F64Ty]] %[[#ExtInstId]] exp10 %[[#s64_arg]]
|
|
; CHECK: OpReturnValue %[[#s64_ret]]
|
|
; CHECK-LABEL: OpFunctionEnd
|
|
define double @test_exp10_f64_scalar(double %x) {
|
|
%res = call double @llvm.exp10.f64(double %x)
|
|
ret double %res
|
|
}
|
|
|
|
; CHECK-LABEL: Begin function test_exp10_f16_vec16
|
|
; CHECK: %[[#v16_16_arg:]] = OpFunctionParameter %[[#Vec16_16Ty]]
|
|
; CHECK: %[[#v16_16_ret:]] = OpExtInst %[[#Vec16_16Ty]] %[[#ExtInstId]] exp10 %[[#v16_16_arg]]
|
|
; CHECK: OpReturnValue %[[#v16_16_ret]]
|
|
; CHECK-LABEL: OpFunctionEnd
|
|
define <16 x half> @test_exp10_f16_vec16(<16 x half> %x) {
|
|
%res = call <16 x half> @llvm.exp10.v16f16(<16 x half> %x)
|
|
ret <16 x half> %res
|
|
}
|
|
|
|
; CHECK-LABEL: Begin function test_exp10_f32_vec16
|
|
; CHECK: %[[#v16_32_arg:]] = OpFunctionParameter %[[#Vec16_32y]]
|
|
; CHECK: %[[#v16_32_ret:]] = OpExtInst %[[#Vec16_32y]] %[[#ExtInstId]] exp10 %[[#v16_32_arg]]
|
|
; CHECK: OpReturnValue %[[#v16_32_ret]]
|
|
; CHECK-LABEL: OpFunctionEnd
|
|
define <16 x float> @test_exp10_f32_vec16(<16 x float> %x) {
|
|
%res = call <16 x float> @llvm.exp10.v16f32(<16 x float> %x)
|
|
ret <16 x float> %res
|
|
}
|
|
|
|
; CHECK-LABEL: Begin function test_exp10_f64_vec16
|
|
; CHECK: %[[#v16_64_arg:]] = OpFunctionParameter %[[#Vec16_64Ty]]
|
|
; CHECK: %[[#v16_64_ret:]] = OpExtInst %[[#Vec16_64Ty]] %[[#ExtInstId]] exp10 %[[#v16_64_arg]]
|
|
; CHECK: OpReturnValue %[[#v16_64_ret]]
|
|
; CHECK-LABEL: OpFunctionEnd
|
|
define <16 x double> @test_exp10_f64_vec16(<16 x double> %x) {
|
|
%res = call <16 x double> @llvm.exp10.v16f64(<16 x double> %x)
|
|
ret <16 x double> %res
|
|
}
|