aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/and.spvtxt
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-06-25 01:08:45 +0200
committerAndrzej Janik <[email protected]>2021-06-25 01:08:45 +0200
commit9a568e2969abbb28e614991fca69f364f9e2354e (patch)
tree8debbbae4e9e10dfea1d47aa490844423907de0b /ptx/src/test/spirv_run/and.spvtxt
parent951c7558ccb2f8b14b31295faac7994c3ebdc4b5 (diff)
downloadZLUDA-9a568e2969abbb28e614991fca69f364f9e2354e.tar.gz
ZLUDA-9a568e2969abbb28e614991fca69f364f9e2354e.zip
Update tests
Diffstat (limited to 'ptx/src/test/spirv_run/and.spvtxt')
-rw-r--r--ptx/src/test/spirv_run/and.spvtxt10
1 files changed, 7 insertions, 3 deletions
diff --git a/ptx/src/test/spirv_run/and.spvtxt b/ptx/src/test/spirv_run/and.spvtxt
index a378602..f66639a 100644
--- a/ptx/src/test/spirv_run/and.spvtxt
+++ b/ptx/src/test/spirv_run/and.spvtxt
@@ -18,6 +18,8 @@
%_ptr_Function_uint = OpTypePointer Function %uint
%_ptr_Generic_uint = OpTypePointer Generic %uint
%ulong_4 = OpConstant %ulong 4
+ %uchar = OpTypeInt 8 0
+%_ptr_Generic_uchar = OpTypePointer Generic %uchar
%1 = OpFunction %void None %34
%8 = OpFunctionParameter %ulong
%9 = OpFunctionParameter %ulong
@@ -39,9 +41,11 @@
%12 = OpLoad %uint %23 Aligned 4
OpStore %6 %12
%15 = OpLoad %ulong %4
- %22 = OpIAdd %ulong %15 %ulong_4
- %24 = OpConvertUToPtr %_ptr_Generic_uint %22
- %14 = OpLoad %uint %24 Aligned 4
+ %24 = OpConvertUToPtr %_ptr_Generic_uint %15
+ %41 = OpBitcast %_ptr_Generic_uchar %24
+ %42 = OpInBoundsPtrAccessChain %_ptr_Generic_uchar %41 %ulong_4
+ %22 = OpBitcast %_ptr_Generic_uint %42
+ %14 = OpLoad %uint %22 Aligned 4
OpStore %7 %14
%17 = OpLoad %uint %6
%18 = OpLoad %uint %7