diff options
author | Andrzej Janik <[email protected]> | 2020-07-20 00:01:03 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2020-07-20 00:01:03 +0200 |
commit | 872d69c714e647bab9192d6ae5105fe2638b4f77 (patch) | |
tree | fd2522a931b0f92615c34714814c7081d0639c8b /ptx/src/test/spirv_run/mul_lo.spvtxt | |
parent | 3d6991e0ca808f05025ee84574642efcdd7ed696 (diff) | |
download | ZLUDA-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.spvtxt | 26 |
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
|