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
95 lines
4.1 KiB
LLVM
95 lines
4.1 KiB
LLVM
; ModuleID = '/nfs/site/home/aelizuno/tmp/conversions.bc'
|
|
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
|
|
target triple = "spir64-unknown-unknown"
|
|
|
|
; RUN: llvm-as %s -o %t.bc
|
|
; RUN: llvm-spirv %t.bc -o %t.spv
|
|
; RUN: spirv-val %t.spv
|
|
; RUN: llvm-spirv -r %t.spv -o %t.bc
|
|
; RUN: llvm-dis < %t.bc | FileCheck %s
|
|
; RUN: %if spirv-backend %{ llc -O0 -mtriple=spirv64-unknown-unknown -filetype=obj %s -o %t.llc.spv %}
|
|
; RUN: %if spirv-backend %{ llvm-spirv -r %t.llc.spv -o %t.llc.rev.bc %}
|
|
; RUN: %if spirv-backend %{ llvm-dis %t.llc.rev.bc -o %t.llc.rev.ll %}
|
|
; RUN: %if spirv-backend %{ FileCheck %s < %t.llc.rev.ll %}
|
|
|
|
; Check vector conversions w\o decorations are translated back to calls
|
|
; to OCL built-ins.
|
|
|
|
; CHECK: call spir_func <8 x i16> @_Z14convert_short8Dv8_c(<8 x i8>
|
|
; CHECK: call spir_func <8 x i32> @_Z12convert_int8Dv8_t(<8 x i16>
|
|
; CHECK: call spir_func <8 x i8> @_Z13convert_char8Dv8_i(<8 x i32>
|
|
; CHECK: call spir_func <8 x double> @_Z15convert_double8Dv8_c(<8 x i8>
|
|
; CHECK: call spir_func <8 x float> @_Z14convert_float8Dv8_d(<8 x double>
|
|
; CHECK: call spir_func <8 x double> @_Z15convert_double8Dv8_f(<8 x float>
|
|
; CHECK: call spir_func <8 x i32> @_Z13convert_uint8Dv8_d(<8 x double>
|
|
; CHECK: call spir_func <8 x float> @_Z14convert_float8Dv8_j(<8 x i32>
|
|
; CHECK: call spir_func <8 x i32> @_Z12convert_int8Dv8_f(<8 x float>
|
|
|
|
; Function Attrs: nounwind
|
|
define spir_kernel void @test_default_conversions(ptr addrspace(1) captures(none) %out, <8 x i8> %in) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !5 !kernel_arg_type_qual !4 {
|
|
%1 = tail call spir_func <8 x i16> @_Z15convert_ushort8Dv8_c(<8 x i8> %in) #1
|
|
%2 = tail call spir_func <8 x i32> @_Z12convert_int8Dv8_t(<8 x i16> %1) #1
|
|
%3 = tail call spir_func <8 x i8> @_Z13convert_char8Dv8_i(<8 x i32> %2) #1
|
|
%4 = tail call spir_func <8 x double> @_Z15convert_double8Dv8_c(<8 x i8> %3) #1
|
|
%5 = tail call spir_func <8 x float> @_Z14convert_float8Dv8_d(<8 x double> %4) #1
|
|
%6 = tail call spir_func <8 x double> @_Z15convert_double8Dv8_f(<8 x float> %5) #1
|
|
%7 = tail call spir_func <8 x i32> @_Z13convert_uint8Dv8_d(<8 x double> %6) #1
|
|
%8 = tail call spir_func <8 x float> @_Z14convert_float8Dv8_j(<8 x i32> %7) #1
|
|
%9 = tail call spir_func <8 x i32> @_Z12convert_int8Dv8_f(<8 x float> %8) #1
|
|
%10 = tail call spir_func <8 x double> @_Z15convert_double8Dv8_i(<8 x i32> %9) #1
|
|
store <8 x double> %10, ptr addrspace(1) %out, align 64, !tbaa !9
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x i16> @_Z15convert_ushort8Dv8_c(<8 x i8>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x i32> @_Z12convert_int8Dv8_t(<8 x i16>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x i8> @_Z13convert_char8Dv8_i(<8 x i32>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x double> @_Z15convert_double8Dv8_c(<8 x i8>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x float> @_Z14convert_float8Dv8_d(<8 x double>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x double> @_Z15convert_double8Dv8_f(<8 x float>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x i32> @_Z13convert_uint8Dv8_d(<8 x double>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x float> @_Z14convert_float8Dv8_j(<8 x i32>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x i32> @_Z12convert_int8Dv8_f(<8 x float>) #1
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare spir_func <8 x double> @_Z15convert_double8Dv8_i(<8 x i32>) #1
|
|
|
|
attributes #0 = { nounwind }
|
|
attributes #1 = { nounwind readnone }
|
|
|
|
!opencl.enable.FP_CONTRACT = !{}
|
|
!opencl.spir.version = !{!6}
|
|
!opencl.ocl.version = !{!6}
|
|
!opencl.used.extensions = !{!7}
|
|
!opencl.used.optional.core.features = !{!8}
|
|
!opencl.compiler.options = !{!7}
|
|
|
|
!1 = !{i32 1, i32 0}
|
|
!2 = !{!"none", !"none"}
|
|
!3 = !{!"double8*", !"char8"}
|
|
!4 = !{!"", !""}
|
|
!5 = !{!"double8*", !"char8"}
|
|
!6 = !{i32 1, i32 2}
|
|
!7 = !{}
|
|
!8 = !{!"cl_doubles"}
|
|
!9 = !{!10, !10, i64 0}
|
|
!10 = !{!"omnipotent char", !11}
|
|
!11 = !{!"Simple C/C++ TBAA"}
|