aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/shared_unify_extern.spvtxt
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/src/test/spirv_run/shared_unify_extern.spvtxt')
-rw-r--r--ptx/src/test/spirv_run/shared_unify_extern.spvtxt62
1 files changed, 62 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/shared_unify_extern.spvtxt b/ptx/src/test/spirv_run/shared_unify_extern.spvtxt
new file mode 100644
index 0000000..9b62045
--- /dev/null
+++ b/ptx/src/test/spirv_run/shared_unify_extern.spvtxt
@@ -0,0 +1,62 @@
+ OpCapability GenericPointer
+ OpCapability Linkage
+ OpCapability Addresses
+ OpCapability Kernel
+ OpCapability Int8
+ OpCapability Int16
+ OpCapability Int64
+ OpCapability Float16
+ OpCapability Float64
+ %30 = OpExtInstImport "OpenCL.std"
+ OpMemoryModel Physical64 OpenCL
+ OpEntryPoint Kernel %2 "shared_ptr_take_address" %1
+ OpExecutionMode %2 ContractionOff
+ OpDecorate %1 Alignment 4
+ OpDecorate %1 LinkageAttributes "shared_mem" Import
+ %void = OpTypeVoid
+ %uchar = OpTypeInt 8 0
+%_ptr_Workgroup_uchar = OpTypePointer Workgroup %uchar
+ %1 = OpVariable %_ptr_Workgroup_uchar Workgroup
+ %ulong = OpTypeInt 64 0
+ %35 = OpTypeFunction %void %ulong %ulong
+%_ptr_Function_ulong = OpTypePointer Function %ulong
+%_ptr_CrossWorkgroup_ulong = OpTypePointer CrossWorkgroup %ulong
+%_ptr_Workgroup_ulong = OpTypePointer Workgroup %ulong
+ %2 = OpFunction %void None %35
+ %10 = OpFunctionParameter %ulong
+ %11 = OpFunctionParameter %ulong
+ %28 = OpLabel
+ %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
+ %8 = OpVariable %_ptr_Function_ulong Function
+ %9 = OpVariable %_ptr_Function_ulong Function
+ OpStore %3 %10
+ OpStore %4 %11
+ %12 = OpLoad %ulong %3 Aligned 8
+ OpStore %5 %12
+ %13 = OpLoad %ulong %4 Aligned 8
+ OpStore %6 %13
+ %23 = OpConvertPtrToU %ulong %1
+ %14 = OpCopyObject %ulong %23
+ OpStore %7 %14
+ %16 = OpLoad %ulong %5
+ %24 = OpConvertUToPtr %_ptr_CrossWorkgroup_ulong %16
+ %15 = OpLoad %ulong %24 Aligned 8
+ OpStore %8 %15
+ %17 = OpLoad %ulong %7
+ %18 = OpLoad %ulong %8
+ %25 = OpConvertUToPtr %_ptr_Workgroup_ulong %17
+ OpStore %25 %18 Aligned 8
+ %20 = OpLoad %ulong %7
+ %26 = OpConvertUToPtr %_ptr_Workgroup_ulong %20
+ %19 = OpLoad %ulong %26 Aligned 8
+ OpStore %9 %19
+ %21 = OpLoad %ulong %6
+ %22 = OpLoad %ulong %9
+ %27 = OpConvertUToPtr %_ptr_CrossWorkgroup_ulong %21
+ OpStore %27 %22 Aligned 8
+ OpReturn
+ OpFunctionEnd