aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/popc.spvtxt
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2024-09-03 19:11:25 +0200
committerAndrzej Janik <[email protected]>2024-09-03 19:11:25 +0200
commitaa98ab9e03c37094d745429a8114ee071676f7a7 (patch)
treedc882a65f550c941fe20f2e5f269e08e0d4c7551 /ptx/src/test/spirv_run/popc.spvtxt
parent3f31069e1bcd68bee2c0761dc2e817b9fc65579d (diff)
downloadZLUDA-aa98ab9e03c37094d745429a8114ee071676f7a7.tar.gz
ZLUDA-aa98ab9e03c37094d745429a8114ee071676f7a7.zip
Fix all remaining problems
Diffstat (limited to 'ptx/src/test/spirv_run/popc.spvtxt')
-rw-r--r--ptx/src/test/spirv_run/popc.spvtxt19
1 files changed, 12 insertions, 7 deletions
diff --git a/ptx/src/test/spirv_run/popc.spvtxt b/ptx/src/test/spirv_run/popc.spvtxt
index 845add7..c41e792 100644
--- a/ptx/src/test/spirv_run/popc.spvtxt
+++ b/ptx/src/test/spirv_run/popc.spvtxt
@@ -7,20 +7,24 @@
OpCapability Int64
OpCapability Float16
OpCapability Float64
- %21 = OpExtInstImport "OpenCL.std"
+ OpCapability DenormFlushToZero
+ OpExtension "SPV_KHR_float_controls"
+ OpExtension "SPV_KHR_no_integer_wrap_decoration"
+ %22 = OpExtInstImport "OpenCL.std"
OpMemoryModel Physical64 OpenCL
OpEntryPoint Kernel %1 "popc"
+ OpExecutionMode %1 ContractionOff
%void = OpTypeVoid
%ulong = OpTypeInt 64 0
- %24 = OpTypeFunction %void %ulong %ulong
+ %25 = 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 %24
+ %1 = OpFunction %void None %25
%7 = OpFunctionParameter %ulong
%8 = OpFunctionParameter %ulong
- %19 = OpLabel
+ %20 = OpLabel
%2 = OpVariable %_ptr_Function_ulong Function
%3 = OpVariable %_ptr_Function_ulong Function
%4 = OpVariable %_ptr_Function_ulong Function
@@ -37,11 +41,12 @@
%11 = OpLoad %uint %17 Aligned 4
OpStore %6 %11
%14 = OpLoad %uint %6
- %13 = OpBitCount %uint %14
+ %18 = OpBitCount %uint %14
+ %13 = OpCopyObject %uint %18
OpStore %6 %13
%15 = OpLoad %ulong %5
%16 = OpLoad %uint %6
- %18 = OpConvertUToPtr %_ptr_Generic_uint %15
- OpStore %18 %16 Aligned 4
+ %19 = OpConvertUToPtr %_ptr_Generic_uint %15
+ OpStore %19 %16 Aligned 4
OpReturn
OpFunctionEnd