[spirv] Generate IR expectations.

This CL generates the expectations for the SPIR-V IR backend.

Bug: 354711610
Change-Id: I70b32c31e9c99637f20abc3299874cec49cb1d0e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/201274
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/statements/decrement/array_element.wgsl.expected.ir.spvasm b/test/tint/statements/decrement/array_element.wgsl.expected.ir.spvasm
new file mode 100644
index 0000000..5f44d08
--- /dev/null
+++ b/test/tint/statements/decrement/array_element.wgsl.expected.ir.spvasm
@@ -0,0 +1,42 @@
+; SPIR-V
+; Version: 1.3
+; Generator: Google Tint Compiler; 1
+; Bound: 20
+; Schema: 0
+               OpCapability Shader
+               OpMemoryModel Logical GLSL450
+               OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
+               OpExecutionMode %unused_entry_point LocalSize 1 1 1
+               OpMemberName %tint_symbol_1 0 "tint_symbol"
+               OpName %tint_symbol_1 "tint_symbol_1"
+               OpName %main "main"
+               OpName %unused_entry_point "unused_entry_point"
+               OpDecorate %_runtimearr_uint ArrayStride 4
+               OpMemberDecorate %tint_symbol_1 0 Offset 0
+               OpDecorate %tint_symbol_1 Block
+               OpDecorate %1 DescriptorSet 0
+               OpDecorate %1 Binding 0
+       %uint = OpTypeInt 32 0
+%_runtimearr_uint = OpTypeRuntimeArray %uint
+%tint_symbol_1 = OpTypeStruct %_runtimearr_uint
+%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
+          %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
+       %void = OpTypeVoid
+          %8 = OpTypeFunction %void
+%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
+     %uint_0 = OpConstant %uint 0
+        %int = OpTypeInt 32 1
+      %int_1 = OpConstant %int 1
+     %uint_1 = OpConstant %uint 1
+       %main = OpFunction %void None %8
+          %9 = OpLabel
+         %10 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 %int_1
+         %15 = OpLoad %uint %10
+         %16 = OpISub %uint %15 %uint_1
+               OpStore %10 %16
+               OpReturn
+               OpFunctionEnd
+%unused_entry_point = OpFunction %void None %8
+         %19 = OpLabel
+               OpReturn
+               OpFunctionEnd