aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/reg_local.spvtxt
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2020-09-20 15:44:52 +0200
committerAndrzej Janik <[email protected]>2020-09-20 15:44:52 +0200
commitdcaea507ba84e375d57c4ed051477439423ae8ef (patch)
tree01f06d36bd3fb0fe61516824d61dff3556b3af5f /ptx/src/test/spirv_run/reg_local.spvtxt
parent17f2d09cc74a8744e96519ae04afbde7dde65705 (diff)
downloadZLUDA-dcaea507ba84e375d57c4ed051477439423ae8ef.tar.gz
ZLUDA-dcaea507ba84e375d57c4ed051477439423ae8ef.zip
Add more tests
Diffstat (limited to 'ptx/src/test/spirv_run/reg_local.spvtxt')
-rw-r--r--ptx/src/test/spirv_run/reg_local.spvtxt46
1 files changed, 46 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/reg_local.spvtxt b/ptx/src/test/spirv_run/reg_local.spvtxt
new file mode 100644
index 0000000..6810fec
--- /dev/null
+++ b/ptx/src/test/spirv_run/reg_local.spvtxt
@@ -0,0 +1,46 @@
+ OpCapability GenericPointer
+ OpCapability Linkage
+ OpCapability Addresses
+ OpCapability Kernel
+ OpCapability Int64
+ OpCapability Int8
+ %25 = OpExtInstImport "OpenCL.std"
+ OpMemoryModel Physical64 OpenCL
+ OpEntryPoint Kernel %1 "add"
+ %void = OpTypeVoid
+ %ulong = OpTypeInt 64 0
+ %28 = OpTypeFunction %void %ulong %ulong
+%_ptr_Function_ulong = OpTypePointer Function %ulong
+%_ptr_Generic_ulong = OpTypePointer Generic %ulong
+ %ulong_1 = OpConstant %ulong 1
+ %1 = OpFunction %void None %28
+ %8 = OpFunctionParameter %ulong
+ %9 = OpFunctionParameter %ulong
+ %23 = 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_ulong Function
+ %7 = OpVariable %_ptr_Function_ulong Function
+ OpStore %2 %8
+ OpStore %3 %9
+ %11 = OpLoad %ulong %2
+ %10 = OpCopyObject %ulong %11
+ OpStore %4 %10
+ %13 = OpLoad %ulong %3
+ %12 = OpCopyObject %ulong %13
+ OpStore %5 %12
+ %15 = OpLoad %ulong %4
+ %21 = OpConvertUToPtr %_ptr_Generic_ulong %15
+ %14 = OpLoad %ulong %21
+ OpStore %6 %14
+ %17 = OpLoad %ulong %6
+ %16 = OpIAdd %ulong %17 %ulong_1
+ OpStore %7 %16
+ %18 = OpLoad %ulong %5
+ %19 = OpLoad %ulong %7
+ %22 = OpConvertUToPtr %_ptr_Generic_ulong %18
+ OpStore %22 %19
+ OpReturn
+ OpFunctionEnd