dawn-cmake/test/tint/bug/tint/1563.wgsl.expected.spvasm
Ben Clayton 51cc480b69 test/tint: add test case for tint:1563
Demonstrates that this is not an issue.

Fixed: tint:1563
Change-Id: I5a33e6805cf0a5c52a6306f6d7e5949cee5636a5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105641
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-10-13 12:55:52 +00:00

42 lines
1.5 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 25
; Schema: 0
OpCapability Shader
%15 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %unused_entry_point "unused_entry_point"
OpName %foo "foo"
OpName %v "v"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%5 = OpTypeFunction %float
%int = OpTypeInt 32 1
%int_99 = OpConstant %int 99
%v4float = OpTypeVector %float 4
%12 = OpConstantNull %v4float
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%_ptr_Function_v4float = OpTypePointer Function %v4float
%_ptr_Function_float = OpTypePointer Function %float
%unused_entry_point = OpFunction %void None %1
%4 = OpLabel
OpReturn
OpFunctionEnd
%foo = OpFunction %float None %5
%8 = OpLabel
%v = OpVariable %_ptr_Function_v4float Function %12
%16 = OpBitcast %uint %int_99
%13 = OpExtInst %uint %15 UMin %16 %uint_3
%18 = OpVectorExtractDynamic %float %12 %13
%22 = OpBitcast %uint %int_99
%21 = OpExtInst %uint %15 UMin %22 %uint_3
%24 = OpAccessChain %_ptr_Function_float %v %21
OpStore %24 %18
OpReturnValue %18
OpFunctionEnd