ZLUDA/ptx/src/test/spirv_run/cvt_sat_s_u.spvtxt
2020-09-08 21:29:18 +02:00

52 lines
2.0 KiB
Plaintext

OpCapability GenericPointer
OpCapability Linkage
OpCapability Addresses
OpCapability Kernel
OpCapability Int64
OpCapability Int8
%27 = OpExtInstImport "OpenCL.std"
OpMemoryModel Physical64 OpenCL
OpEntryPoint Kernel %1 "cvt_sat_s_u"
%void = OpTypeVoid
%ulong = OpTypeInt 64 0
%30 = OpTypeFunction %void %ulong %ulong
%_ptr_Function_ulong = OpTypePointer Function %ulong
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%_ptr_Generic_uint = OpTypePointer Generic %uint
%1 = OpFunction %void None %30
%9 = OpFunctionParameter %ulong
%10 = OpFunctionParameter %ulong
%25 = OpLabel
%2 = OpVariable %_ptr_Function_ulong Function
%3 = OpVariable %_ptr_Function_ulong Function
%4 = OpVariable %_ptr_Function_ulong Function
%5 = OpVariable %_ptr_Function_ulong Function
%6 = OpVariable %_ptr_Function_uint Function
%7 = OpVariable %_ptr_Function_uint Function
%8 = OpVariable %_ptr_Function_uint Function
OpStore %2 %9
OpStore %3 %10
%12 = OpLoad %ulong %2
%11 = OpCopyObject %ulong %12
OpStore %4 %11
%14 = OpLoad %ulong %3
%13 = OpCopyObject %ulong %14
OpStore %5 %13
%16 = OpLoad %ulong %4
%23 = OpConvertUToPtr %_ptr_Generic_uint %16
%15 = OpLoad %uint %23
OpStore %6 %15
%18 = OpLoad %uint %6
%17 = OpSatConvertSToU %uint %18
OpStore %7 %17
%20 = OpLoad %uint %7
%19 = OpBitcast %uint %20
OpStore %8 %19
%21 = OpLoad %ulong %5
%22 = OpLoad %uint %8
%24 = OpConvertUToPtr %_ptr_Generic_uint %21
OpStore %24 %22
OpReturn
OpFunctionEnd