dawn-cmake/test/unittest/reader/spirv/SpvParserTest_Normalize_Vector3.spvasm.expected.spvasm
David Neto d1a026ecd0 Add end-to-end corpus from Tint SPIR-V Reader
Add the unit tests samples from src/reader/spirv when:
- they are valid for Vulkan 1.0 (plus some common extensions)
- they should translate to valid WGSL

Bug: tint:1043
Change-Id: I40a01990dbc40aff5cf7ace0b1aabfd0e437f638
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60000
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: David Neto <dneto@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
2021-07-30 16:03:06 +00:00

54 lines
2.1 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 39
; Schema: 0
OpCapability Shader
%35 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main_1 "main_1"
OpName %main "main"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_10 = OpConstant %uint 10
%uint_15 = OpConstant %uint 15
%uint_20 = OpConstant %uint 20
%int = OpTypeInt 32 1
%int_30 = OpConstant %int 30
%int_35 = OpConstant %int 35
%int_40 = OpConstant %int 40
%float = OpTypeFloat 32
%float_50 = OpConstant %float 50
%float_60 = OpConstant %float 60
%float_70 = OpConstant %float 70
%v2uint = OpTypeVector %uint 2
%18 = OpConstantComposite %v2uint %uint_10 %uint_20
%19 = OpConstantComposite %v2uint %uint_20 %uint_10
%20 = OpConstantComposite %v2uint %uint_15 %uint_15
%v2int = OpTypeVector %int 2
%22 = OpConstantComposite %v2int %int_30 %int_40
%23 = OpConstantComposite %v2int %int_40 %int_30
%24 = OpConstantComposite %v2int %int_35 %int_35
%v2float = OpTypeVector %float 2
%26 = OpConstantComposite %v2float %float_50 %float_60
%27 = OpConstantComposite %v2float %float_60 %float_50
%28 = OpConstantComposite %v2float %float_70 %float_70
%v3float = OpTypeVector %float 3
%30 = OpConstantComposite %v3float %float_50 %float_60 %float_70
%31 = OpConstantComposite %v3float %float_60 %float_70 %float_50
%v4float = OpTypeVector %float 4
%33 = OpConstantComposite %v4float %float_50 %float_50 %float_50 %float_50
%main_1 = OpFunction %void None %1
%4 = OpLabel
%34 = OpExtInst %v3float %35 Normalize %30
OpReturn
OpFunctionEnd
%main = OpFunction %void None %1
%37 = OpLabel
%38 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd