dawn-cmake/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.spvasm

385 lines
18 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 199
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %sb_block "sb_block"
OpMemberName %sb_block 0 "inner"
OpName %S "S"
OpMemberName %S 0 "scalar_f32"
OpMemberName %S 1 "scalar_i32"
OpMemberName %S 2 "scalar_u32"
OpMemberName %S 3 "scalar_f16"
OpMemberName %S 4 "vec2_f32"
OpMemberName %S 5 "vec2_i32"
OpMemberName %S 6 "vec2_u32"
OpMemberName %S 7 "vec2_f16"
OpMemberName %S 8 "vec3_f32"
OpMemberName %S 9 "vec3_i32"
OpMemberName %S 10 "vec3_u32"
OpMemberName %S 11 "vec3_f16"
OpMemberName %S 12 "vec4_f32"
OpMemberName %S 13 "vec4_i32"
OpMemberName %S 14 "vec4_u32"
OpMemberName %S 15 "vec4_f16"
OpMemberName %S 16 "mat2x2_f32"
OpMemberName %S 17 "mat2x3_f32"
OpMemberName %S 18 "mat2x4_f32"
OpMemberName %S 19 "mat3x2_f32"
OpMemberName %S 20 "mat3x3_f32"
OpMemberName %S 21 "mat3x4_f32"
OpMemberName %S 22 "mat4x2_f32"
OpMemberName %S 23 "mat4x3_f32"
OpMemberName %S 24 "mat4x4_f32"
OpMemberName %S 25 "mat2x2_f16"
OpMemberName %S 26 "mat2x3_f16"
OpMemberName %S 27 "mat2x4_f16"
OpMemberName %S 28 "mat3x2_f16"
OpMemberName %S 29 "mat3x3_f16"
OpMemberName %S 30 "mat3x4_f16"
OpMemberName %S 31 "mat4x2_f16"
OpMemberName %S 32 "mat4x3_f16"
OpMemberName %S 33 "mat4x4_f16"
OpMemberName %S 34 "arr2_vec3_f32"
OpMemberName %S 35 "arr2_mat4x2_f16"
OpMemberName %S 36 "struct_inner"
OpName %Inner "Inner"
OpMemberName %Inner 0 "scalar_i32"
OpMemberName %Inner 1 "scalar_f32"
OpMemberName %Inner 2 "scalar_f16"
OpMemberName %S 37 "array_struct_inner"
OpName %sb "sb"
OpName %main "main"
OpDecorate %sb_block Block
OpMemberDecorate %sb_block 0 Offset 0
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 4
OpMemberDecorate %S 2 Offset 8
OpMemberDecorate %S 3 Offset 12
OpMemberDecorate %S 4 Offset 16
OpMemberDecorate %S 5 Offset 24
OpMemberDecorate %S 6 Offset 32
OpMemberDecorate %S 7 Offset 40
OpMemberDecorate %S 8 Offset 48
OpMemberDecorate %S 9 Offset 64
OpMemberDecorate %S 10 Offset 80
OpMemberDecorate %S 11 Offset 96
OpMemberDecorate %S 12 Offset 112
OpMemberDecorate %S 13 Offset 128
OpMemberDecorate %S 14 Offset 144
OpMemberDecorate %S 15 Offset 160
OpMemberDecorate %S 16 Offset 168
OpMemberDecorate %S 16 ColMajor
OpMemberDecorate %S 16 MatrixStride 8
OpMemberDecorate %S 17 Offset 192
OpMemberDecorate %S 17 ColMajor
OpMemberDecorate %S 17 MatrixStride 16
OpMemberDecorate %S 18 Offset 224
OpMemberDecorate %S 18 ColMajor
OpMemberDecorate %S 18 MatrixStride 16
OpMemberDecorate %S 19 Offset 256
OpMemberDecorate %S 19 ColMajor
OpMemberDecorate %S 19 MatrixStride 8
OpMemberDecorate %S 20 Offset 288
OpMemberDecorate %S 20 ColMajor
OpMemberDecorate %S 20 MatrixStride 16
OpMemberDecorate %S 21 Offset 336
OpMemberDecorate %S 21 ColMajor
OpMemberDecorate %S 21 MatrixStride 16
OpMemberDecorate %S 22 Offset 384
OpMemberDecorate %S 22 ColMajor
OpMemberDecorate %S 22 MatrixStride 8
OpMemberDecorate %S 23 Offset 416
OpMemberDecorate %S 23 ColMajor
OpMemberDecorate %S 23 MatrixStride 16
OpMemberDecorate %S 24 Offset 480
OpMemberDecorate %S 24 ColMajor
OpMemberDecorate %S 24 MatrixStride 16
OpMemberDecorate %S 25 Offset 544
OpMemberDecorate %S 25 ColMajor
OpMemberDecorate %S 25 MatrixStride 4
OpMemberDecorate %S 26 Offset 552
OpMemberDecorate %S 26 ColMajor
OpMemberDecorate %S 26 MatrixStride 8
OpMemberDecorate %S 27 Offset 568
OpMemberDecorate %S 27 ColMajor
OpMemberDecorate %S 27 MatrixStride 8
OpMemberDecorate %S 28 Offset 584
OpMemberDecorate %S 28 ColMajor
OpMemberDecorate %S 28 MatrixStride 4
OpMemberDecorate %S 29 Offset 600
OpMemberDecorate %S 29 ColMajor
OpMemberDecorate %S 29 MatrixStride 8
OpMemberDecorate %S 30 Offset 624
OpMemberDecorate %S 30 ColMajor
OpMemberDecorate %S 30 MatrixStride 8
OpMemberDecorate %S 31 Offset 648
OpMemberDecorate %S 31 ColMajor
OpMemberDecorate %S 31 MatrixStride 4
OpMemberDecorate %S 32 Offset 664
OpMemberDecorate %S 32 ColMajor
OpMemberDecorate %S 32 MatrixStride 8
OpMemberDecorate %S 33 Offset 696
OpMemberDecorate %S 33 ColMajor
OpMemberDecorate %S 33 MatrixStride 8
OpMemberDecorate %S 34 Offset 736
OpDecorate %_arr_v3float_uint_2 ArrayStride 16
OpMemberDecorate %S 35 Offset 768
OpMemberDecorate %S 35 ColMajor
OpMemberDecorate %S 35 MatrixStride 4
OpDecorate %_arr_mat4v2half_uint_2 ArrayStride 16
OpMemberDecorate %S 36 Offset 800
OpMemberDecorate %Inner 0 Offset 0
OpMemberDecorate %Inner 1 Offset 4
OpMemberDecorate %Inner 2 Offset 8
OpMemberDecorate %S 37 Offset 812
OpDecorate %_arr_Inner_uint_4 ArrayStride 12
OpDecorate %sb Binding 0
OpDecorate %sb DescriptorSet 0
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%half = OpTypeFloat 16
%v2float = OpTypeVector %float 2
%v2int = OpTypeVector %int 2
%v2uint = OpTypeVector %uint 2
%v2half = OpTypeVector %half 2
%v3float = OpTypeVector %float 3
%v3int = OpTypeVector %int 3
%v3uint = OpTypeVector %uint 3
%v3half = OpTypeVector %half 3
%v4float = OpTypeVector %float 4
%v4int = OpTypeVector %int 4
%v4uint = OpTypeVector %uint 4
%v4half = OpTypeVector %half 4
%mat2v2float = OpTypeMatrix %v2float 2
%mat2v3float = OpTypeMatrix %v3float 2
%mat2v4float = OpTypeMatrix %v4float 2
%mat3v2float = OpTypeMatrix %v2float 3
%mat3v3float = OpTypeMatrix %v3float 3
%mat3v4float = OpTypeMatrix %v4float 3
%mat4v2float = OpTypeMatrix %v2float 4
%mat4v3float = OpTypeMatrix %v3float 4
%mat4v4float = OpTypeMatrix %v4float 4
%mat2v2half = OpTypeMatrix %v2half 2
%mat2v3half = OpTypeMatrix %v3half 2
%mat2v4half = OpTypeMatrix %v4half 2
%mat3v2half = OpTypeMatrix %v2half 3
%mat3v3half = OpTypeMatrix %v3half 3
%mat3v4half = OpTypeMatrix %v4half 3
%mat4v2half = OpTypeMatrix %v2half 4
%mat4v3half = OpTypeMatrix %v3half 4
%mat4v4half = OpTypeMatrix %v4half 4
%uint_2 = OpConstant %uint 2
%_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2
%_arr_mat4v2half_uint_2 = OpTypeArray %mat4v2half %uint_2
%Inner = OpTypeStruct %int %float %half
%uint_4 = OpConstant %uint 4
%_arr_Inner_uint_4 = OpTypeArray %Inner %uint_4
%S = OpTypeStruct %float %int %uint %half %v2float %v2int %v2uint %v2half %v3float %v3int %v3uint %v3half %v4float %v4int %v4uint %v4half %mat2v2float %mat2v3float %mat2v4float %mat3v2float %mat3v3float %mat3v4float %mat4v2float %mat4v3float %mat4v4float %mat2v2half %mat2v3half %mat2v4half %mat3v2half %mat3v3half %mat3v4half %mat4v2half %mat4v3half %mat4v4half %_arr_v3float_uint_2 %_arr_mat4v2half_uint_2 %Inner %_arr_Inner_uint_4
%sb_block = OpTypeStruct %S
%_ptr_StorageBuffer_sb_block = OpTypePointer StorageBuffer %sb_block
%sb = OpVariable %_ptr_StorageBuffer_sb_block StorageBuffer
%void = OpTypeVoid
%45 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%52 = OpConstantNull %float
%uint_1 = OpConstant %uint 1
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%56 = OpConstantNull %int
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%59 = OpConstantNull %uint
%uint_3 = OpConstant %uint 3
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%63 = OpConstantNull %half
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
%66 = OpConstantNull %v2float
%uint_5 = OpConstant %uint 5
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
%70 = OpConstantNull %v2int
%uint_6 = OpConstant %uint 6
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
%74 = OpConstantNull %v2uint
%uint_7 = OpConstant %uint 7
%_ptr_StorageBuffer_v2half = OpTypePointer StorageBuffer %v2half
%78 = OpConstantNull %v2half
%uint_8 = OpConstant %uint 8
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%82 = OpConstantNull %v3float
%uint_9 = OpConstant %uint 9
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
%86 = OpConstantNull %v3int
%uint_10 = OpConstant %uint 10
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
%90 = OpConstantNull %v3uint
%uint_11 = OpConstant %uint 11
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%94 = OpConstantNull %v3half
%uint_12 = OpConstant %uint 12
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
%98 = OpConstantNull %v4float
%uint_13 = OpConstant %uint 13
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
%102 = OpConstantNull %v4int
%uint_14 = OpConstant %uint 14
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
%106 = OpConstantNull %v4uint
%uint_15 = OpConstant %uint 15
%_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half
%110 = OpConstantNull %v4half
%uint_16 = OpConstant %uint 16
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
%114 = OpConstantNull %mat2v2float
%uint_17 = OpConstant %uint 17
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
%118 = OpConstantNull %mat2v3float
%uint_18 = OpConstant %uint 18
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
%122 = OpConstantNull %mat2v4float
%uint_19 = OpConstant %uint 19
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
%126 = OpConstantNull %mat3v2float
%uint_20 = OpConstant %uint 20
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
%130 = OpConstantNull %mat3v3float
%uint_21 = OpConstant %uint 21
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
%134 = OpConstantNull %mat3v4float
%uint_22 = OpConstant %uint 22
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
%138 = OpConstantNull %mat4v2float
%uint_23 = OpConstant %uint 23
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
%142 = OpConstantNull %mat4v3float
%uint_24 = OpConstant %uint 24
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
%146 = OpConstantNull %mat4v4float
%uint_25 = OpConstant %uint 25
%_ptr_StorageBuffer_mat2v2half = OpTypePointer StorageBuffer %mat2v2half
%150 = OpConstantNull %mat2v2half
%uint_26 = OpConstant %uint 26
%_ptr_StorageBuffer_mat2v3half = OpTypePointer StorageBuffer %mat2v3half
%154 = OpConstantNull %mat2v3half
%uint_27 = OpConstant %uint 27
%_ptr_StorageBuffer_mat2v4half = OpTypePointer StorageBuffer %mat2v4half
%158 = OpConstantNull %mat2v4half
%uint_28 = OpConstant %uint 28
%_ptr_StorageBuffer_mat3v2half = OpTypePointer StorageBuffer %mat3v2half
%162 = OpConstantNull %mat3v2half
%uint_29 = OpConstant %uint 29
%_ptr_StorageBuffer_mat3v3half = OpTypePointer StorageBuffer %mat3v3half
%166 = OpConstantNull %mat3v3half
%uint_30 = OpConstant %uint 30
%_ptr_StorageBuffer_mat3v4half = OpTypePointer StorageBuffer %mat3v4half
%170 = OpConstantNull %mat3v4half
%uint_31 = OpConstant %uint 31
%_ptr_StorageBuffer_mat4v2half = OpTypePointer StorageBuffer %mat4v2half
%174 = OpConstantNull %mat4v2half
%uint_32 = OpConstant %uint 32
%_ptr_StorageBuffer_mat4v3half = OpTypePointer StorageBuffer %mat4v3half
%178 = OpConstantNull %mat4v3half
%uint_33 = OpConstant %uint 33
%_ptr_StorageBuffer_mat4v4half = OpTypePointer StorageBuffer %mat4v4half
%182 = OpConstantNull %mat4v4half
%uint_34 = OpConstant %uint 34
%_ptr_StorageBuffer__arr_v3float_uint_2 = OpTypePointer StorageBuffer %_arr_v3float_uint_2
%186 = OpConstantNull %_arr_v3float_uint_2
%uint_35 = OpConstant %uint 35
%_ptr_StorageBuffer__arr_mat4v2half_uint_2 = OpTypePointer StorageBuffer %_arr_mat4v2half_uint_2
%190 = OpConstantNull %_arr_mat4v2half_uint_2
%uint_36 = OpConstant %uint 36
%_ptr_StorageBuffer_Inner = OpTypePointer StorageBuffer %Inner
%194 = OpConstantNull %Inner
%uint_37 = OpConstant %uint 37
%_ptr_StorageBuffer__arr_Inner_uint_4 = OpTypePointer StorageBuffer %_arr_Inner_uint_4
%198 = OpConstantNull %_arr_Inner_uint_4
%main = OpFunction %void None %45
%48 = OpLabel
%51 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
OpStore %51 %52
%55 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
OpStore %55 %56
%58 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
OpStore %58 %59
%62 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_3
OpStore %62 %63
%65 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_4
OpStore %65 %66
%69 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_5
OpStore %69 %70
%73 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_6
OpStore %73 %74
%77 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %uint_7
OpStore %77 %78
%81 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_8
OpStore %81 %82
%85 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_9
OpStore %85 %86
%89 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_10
OpStore %89 %90
%93 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_11
OpStore %93 %94
%97 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_12
OpStore %97 %98
%101 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_13
OpStore %101 %102
%105 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_14
OpStore %105 %106
%109 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %uint_15
OpStore %109 %110
%113 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_16
OpStore %113 %114
%117 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %uint_17
OpStore %117 %118
%121 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_18
OpStore %121 %122
%125 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_19
OpStore %125 %126
%129 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %uint_20
OpStore %129 %130
%133 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_21
OpStore %133 %134
%137 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_22
OpStore %137 %138
%141 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %uint_23
OpStore %141 %142
%145 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_24
OpStore %145 %146
%149 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %uint_25
OpStore %149 %150
%153 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %sb %uint_0 %uint_26
OpStore %153 %154
%157 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %uint_27
OpStore %157 %158
%161 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %uint_28
OpStore %161 %162
%165 = OpAccessChain %_ptr_StorageBuffer_mat3v3half %sb %uint_0 %uint_29
OpStore %165 %166
%169 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %uint_30
OpStore %169 %170
%173 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %uint_31
OpStore %173 %174
%177 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %sb %uint_0 %uint_32
OpStore %177 %178
%181 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %uint_33
OpStore %181 %182
%185 = OpAccessChain %_ptr_StorageBuffer__arr_v3float_uint_2 %sb %uint_0 %uint_34
OpStore %185 %186
%189 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %uint_35
OpStore %189 %190
%193 = OpAccessChain %_ptr_StorageBuffer_Inner %sb %uint_0 %uint_36
OpStore %193 %194
%197 = OpAccessChain %_ptr_StorageBuffer__arr_Inner_uint_4 %sb %uint_0 %uint_37
OpStore %197 %198
OpReturn
OpFunctionEnd