aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/mul_lo.spvtxt
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2020-07-20 00:01:03 +0200
committerAndrzej Janik <[email protected]>2020-07-20 00:01:03 +0200
commit872d69c714e647bab9192d6ae5105fe2638b4f77 (patch)
treefd2522a931b0f92615c34714814c7081d0639c8b /ptx/src/test/spirv_run/mul_lo.spvtxt
parent3d6991e0ca808f05025ee84574642efcdd7ed696 (diff)
downloadZLUDA-872d69c714e647bab9192d6ae5105fe2638b4f77.tar.gz
ZLUDA-872d69c714e647bab9192d6ae5105fe2638b4f77.zip
Implement constants in translation middle-end
Diffstat (limited to 'ptx/src/test/spirv_run/mul_lo.spvtxt')
-rw-r--r--ptx/src/test/spirv_run/mul_lo.spvtxt26
1 files changed, 26 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/mul_lo.spvtxt b/ptx/src/test/spirv_run/mul_lo.spvtxt
new file mode 100644
index 0000000..66e7bc1
--- /dev/null
+++ b/ptx/src/test/spirv_run/mul_lo.spvtxt
@@ -0,0 +1,26 @@
+OpCapability GenericPointer
+OpCapability Linkage
+OpCapability Addresses
+OpCapability Kernel
+OpCapability Int64
+OpCapability Int8
+%1 = OpExtInstImport "OpenCL.std"
+OpMemoryModel Physical64 OpenCL
+OpEntryPoint Kernel %5 "mul_lo"
+%2 = OpTypeVoid
+%3 = OpTypeInt 64 0
+%4 = OpTypeFunction %2 %3 %3
+%19 = OpTypePointer Generic %3
+%5 = OpFunction %2 None %4
+%6 = OpFunctionParameter %3
+%7 = OpFunctionParameter %3
+%18 = OpLabel
+%13 = OpCopyObject %3 %6
+%14 = OpCopyObject %3 %7
+%15 = OpConvertUToPtr %19 %13
+%16 = OpLoad %3 %15
+%100 = OpCopyObject %3 %16
+%17 = OpConvertUToPtr %19 %14
+OpStore %17 %100
+OpReturn
+OpFunctionEnd