diff options
Diffstat (limited to 'test_conformance/spirv_new/spirv_asm/vector_half8_extract.spvasm32')
-rw-r--r-- | test_conformance/spirv_new/spirv_asm/vector_half8_extract.spvasm32 | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test_conformance/spirv_new/spirv_asm/vector_half8_extract.spvasm32 b/test_conformance/spirv_new/spirv_asm/vector_half8_extract.spvasm32 new file mode 100644 index 00000000..985b5262 --- /dev/null +++ b/test_conformance/spirv_new/spirv_asm/vector_half8_extract.spvasm32 @@ -0,0 +1,42 @@ +; SPIR-V +; Version: 1.0 +; Generator: Khronos SPIR-V Tools Assembler; 0 +; Bound: 22 +; Schema: 0 + OpCapability Addresses + OpCapability Linkage + OpCapability Kernel + OpCapability Vector16 + OpCapability Float16 + OpMemoryModel Physical32 OpenCL + OpEntryPoint Kernel %1 "vector_half8_extract" %gl_GlobalInvocationID + OpName %in "in" + OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId + OpDecorate %gl_GlobalInvocationID Constant + OpDecorate %in FuncParamAttr NoCapture + OpDecorate %4 FuncParamAttr NoCapture + OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import + %uint = OpTypeInt 32 0 + %v3uint = OpTypeVector %uint 3 +%_ptr_Input_v3uint = OpTypePointer Input %v3uint + %void = OpTypeVoid + %half = OpTypeFloat 16 + %v8half = OpTypeVector %half 4 +%_ptr_CrossWorkgroup_half = OpTypePointer CrossWorkgroup %half +%_ptr_CrossWorkgroup_v8half = OpTypePointer CrossWorkgroup %v8half + %13 = OpTypeFunction %void %_ptr_CrossWorkgroup_v8half %_ptr_CrossWorkgroup_half %uint +%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input + %1 = OpFunction %void None %13 + %in = OpFunctionParameter %_ptr_CrossWorkgroup_v8half + %4 = OpFunctionParameter %_ptr_CrossWorkgroup_half + %14 = OpFunctionParameter %uint + %15 = OpLabel + %16 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0 + %17 = OpCompositeExtract %uint %16 0 + %18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v8half %in %17 + %19 = OpLoad %v8half %18 + %20 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_half %4 %17 + %21 = OpVectorExtractDynamic %half %19 %14 + OpStore %20 %21 + OpReturn + OpFunctionEnd |