dawn-cmake/test/tint/bug/tint/1604.wgsl.expected.spvasm
Antonio Maiorano 9b190f57c9 tint: add e2e test for crbug.com/tint/1604
Bug: tint:1604
Change-Id: I7005188a1b3b03934c55e54dc94f548c016166d1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/103983
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-09-28 14:03:49 +00:00

50 lines
1.6 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 21
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %x_block "x_block"
OpMemberName %x_block 0 "inner"
OpName %x "x"
OpName %main "main"
OpDecorate %x_block Block
OpMemberDecorate %x_block 0 Offset 0
OpDecorate %x NonWritable
OpDecorate %x DescriptorSet 0
OpDecorate %x Binding 0
%int = OpTypeInt 32 1
%x_block = OpTypeStruct %int
%_ptr_Uniform_x_block = OpTypePointer Uniform %x_block
%x = OpVariable %_ptr_Uniform_x_block Uniform
%void = OpTypeVoid
%5 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%main = OpFunction %void None %5
%8 = OpLabel
%13 = OpAccessChain %_ptr_Uniform_int %x %uint_0
%14 = OpLoad %int %13
OpSelectionMerge %9 None
OpSwitch %14 %15 0 %16
%16 = OpLabel
OpBranch %17
%17 = OpLabel
OpLoopMerge %18 %19 None
OpBranch %20
%20 = OpLabel
OpReturn
%19 = OpLabel
OpBranch %17
%18 = OpLabel
OpBranch %9
%15 = OpLabel
OpBranch %9
%9 = OpLabel
OpReturn
OpFunctionEnd