dawn-cmake/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_ScalarSpecConstant_UsedInFunction.spvasm
dan sinclair e214a130dd Run substitute_overrides for all tests.
This CL updates all of the integration tests to run the substitute_override
transform where needed. The test runner is updated to match comments in
the spvasm files as well as the wgsl files.

Bug: tint:1155
Change-Id: I8187d426970d056d744e530ed6447e4ec69db5f4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101661
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-09-09 16:04:39 +00:00

29 lines
672 B
Plaintext

; flags: --transform substitute_override
;
; Test: SpvModuleScopeVarParserTest_ScalarSpecConstant_UsedInFunction.spvasm
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 101
; Schema: 0
OpCapability Shader
OpMemoryModel Logical Simple
OpEntryPoint Fragment %2 "main"
OpExecutionMode %2 OriginUpperLeft
OpName %myconst "myconst"
%void = OpTypeVoid
%5 = OpTypeFunction %void
%float = OpTypeFloat 32
%myconst = OpSpecConstant %float 2.5
%7 = OpTypeFunction %float
%100 = OpFunction %float None %7
%8 = OpLabel
%1 = OpFAdd %float %myconst %myconst
OpReturnValue %1
OpFunctionEnd
%2 = OpFunction %void None %5
%9 = OpLabel
OpReturn
OpFunctionEnd