aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/and.spvtxt
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-06-25 01:20:38 +0200
committerAndrzej Janik <[email protected]>2021-06-25 01:20:38 +0200
commit8ef6c3d8b600e8757ae723a55cdf9012473ac1bf (patch)
treeb83d5eb48a5d020b2d06ab0d595d234c3c966aad /ptx/src/test/spirv_run/and.spvtxt
parente018de83aec5e25ea13aa11aa5317d6ad35250b1 (diff)
parent2e8716bf0debf5edfecd616204d0fd2864dc2f4c (diff)
downloadZLUDA-8ef6c3d8b600e8757ae723a55cdf9012473ac1bf.tar.gz
ZLUDA-8ef6c3d8b600e8757ae723a55cdf9012473ac1bf.zip
Merge branch 'one_type_type2'
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