test: Remove many expected files
For these tests, we only really care that we can successfully consume
them and generate valid output for each backend. Having the expected
files in the tree generates significant churn for any change to how we
generate backend code, which makes it hard to inspect diffs.
Change-Id: Ic98c248081144c0fb1791f1303eaf6d459548e3d
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/62720
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
diff --git a/test/test.wgsl.expected.hlsl b/test/test.wgsl.expected.hlsl
deleted file mode 100644
index cd85e1a..0000000
--- a/test/test.wgsl.expected.hlsl
+++ /dev/null
@@ -1,11 +0,0 @@
-[numthreads(1, 1, 1)]
-void unused_entry_point() {
- return;
-}
-
-void f() {
- {
- for(; ; ) {
- }
- }
-}
diff --git a/test/test.wgsl.expected.msl b/test/test.wgsl.expected.msl
deleted file mode 100644
index e716521..0000000
--- a/test/test.wgsl.expected.msl
+++ /dev/null
@@ -1,8 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void f() {
- for(; ; ) {
- }
-}
-
diff --git a/test/test.wgsl.expected.spvasm b/test/test.wgsl.expected.spvasm
deleted file mode 100644
index 4cbeee3..0000000
--- a/test/test.wgsl.expected.spvasm
+++ /dev/null
@@ -1,30 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 11
-; Schema: 0
- OpCapability Shader
- 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 %f "f"
- %void = OpTypeVoid
- %1 = OpTypeFunction %void
-%unused_entry_point = OpFunction %void None %1
- %4 = OpLabel
- OpReturn
- OpFunctionEnd
- %f = OpFunction %void None %1
- %6 = OpLabel
- OpBranch %7
- %7 = OpLabel
- OpLoopMerge %8 %9 None
- OpBranch %10
- %10 = OpLabel
- OpBranch %9
- %9 = OpLabel
- OpBranch %7
- %8 = OpLabel
- OpReturn
- OpFunctionEnd
diff --git a/test/test.wgsl.expected.wgsl b/test/test.wgsl.expected.wgsl
deleted file mode 100644
index 9f110c8..0000000
--- a/test/test.wgsl.expected.wgsl
+++ /dev/null
@@ -1,4 +0,0 @@
-fn f() {
- for(; ; ) {
- }
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index ac09841..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,30 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const float4 x_99 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index b389a5b..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- float4 const x_99 = tint_symbol_1.read(uint2(vi12), 0);
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 917bf89..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %int_0 = OpConstant %int 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageFetch %v4float %47 %28 Lod %int_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index c8535c1..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec4<f32> = textureLoad(x_20, vi12, 0);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
deleted file mode 100644
index 1725be2..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,30 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<uint4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const uint4 x_99 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
deleted file mode 100644
index b53ddd8..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<uint, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- uint4 const x_99 = tint_symbol_1.read(uint2(vi12), 0);
- return;
-}
-
-fragment void tint_symbol(texture2d<uint, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
deleted file mode 100644
index 51a3a49..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %uint = OpTypeInt 32 0
- %6 = OpTypeImage %uint 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float = OpTypeFloat 32
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %17 = OpConstantComposite %v2float %float_1 %float_2
- %18 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %21 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %24 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %29 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %32 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %35 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %int_0 = OpConstant %int 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageFetch %v4uint %47 %29 Lod %int_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
deleted file mode 100644
index fe8fbb1..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<u32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec4<u32> = textureLoad(x_20, vi12, 0);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
deleted file mode 100644
index 176bcdd..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,30 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<int4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const int4 x_99 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
deleted file mode 100644
index 9b762e1..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<int, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int4 const x_99 = tint_symbol_1.read(uint2(vi12), 0);
- return;
-}
-
-fragment void tint_symbol(texture2d<int, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
deleted file mode 100644
index 2ed8afb..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %int = OpTypeInt 32 1
- %6 = OpTypeImage %int 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float = OpTypeFloat 32
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %17 = OpConstantComposite %v2float %float_1 %float_2
- %18 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %21 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %24 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %int_0 = OpConstant %int 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageFetch %v4int %47 %28 Lod %int_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
deleted file mode 100644
index 149a246..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<i32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec4<i32> = textureLoad(x_20, vi12, 0);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
deleted file mode 100644
index d3c24fe..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,31 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const float4 x_99 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
deleted file mode 100644
index 2f5f0ee..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
+++ /dev/null
@@ -1,31 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- float4 const x_99 = tint_symbol_1.read(uint2(vi12));
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
deleted file mode 100644
index 754bebf..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 2 Rgba32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageRead %v4float %47 %28
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
deleted file mode 100644
index 412c09e..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,33 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d<rgba32float, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec4<f32> = textureLoad(x_20, vi12);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl
deleted file mode 100644
index 8955379..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl
+++ /dev/null
@@ -1,31 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture2D<uint4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const uint4 x_99 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl
deleted file mode 100644
index 4af0fd0..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl
+++ /dev/null
@@ -1,31 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<uint, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- uint4 const x_99 = tint_symbol_1.read(uint2(vi12));
- return;
-}
-
-fragment void tint_symbol(texture2d<uint, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm
deleted file mode 100644
index 8d9735a..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %uint = OpTypeInt 32 0
- %6 = OpTypeImage %uint 2D 0 0 0 2 Rgba32ui
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float = OpTypeFloat 32
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %17 = OpConstantComposite %v2float %float_1 %float_2
- %18 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %21 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %24 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %29 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %32 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %35 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageRead %v4uint %47 %29
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl
deleted file mode 100644
index 502c9b1..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl
+++ /dev/null
@@ -1,33 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d<rgba32uint, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec4<u32> = textureLoad(x_20, vi12);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl
deleted file mode 100644
index 2383277..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl
+++ /dev/null
@@ -1,31 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture2D<int4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const int4 x_99 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl
deleted file mode 100644
index 6708165..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl
+++ /dev/null
@@ -1,31 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<int, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int4 const x_99 = tint_symbol_1.read(uint2(vi12));
- return;
-}
-
-fragment void tint_symbol(texture2d<int, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm
deleted file mode 100644
index 59796e2..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %int = OpTypeInt 32 1
- %6 = OpTypeImage %int 2D 0 0 0 2 Rgba32i
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float = OpTypeFloat 32
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %17 = OpConstantComposite %v2float %float_1 %float_2
- %18 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %21 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %24 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageRead %v4int %47 %28
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl
deleted file mode 100644
index b2035a7..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl
+++ /dev/null
@@ -1,33 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d<rgba32sint, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec4<i32> = textureLoad(x_20, vi12);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.hlsl
deleted file mode 100644
index 932c9d9..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.hlsl
+++ /dev/null
@@ -1,30 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const float4 x_99 = x_20.Sample(x_10, vf12);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.msl
deleted file mode 100644
index ec6c455..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- float4 const x_99 = tint_symbol_1.sample(tint_symbol_2, vf12);
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.spvasm
deleted file mode 100644
index b9b07e0..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.spvasm
+++ /dev/null
@@ -1,77 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 54
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %49 = OpTypeSampledImage %6
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %3 %x_10
- %48 = OpLoad %6 %x_20
- %50 = OpSampledImage %49 %48 %47
- %46 = OpImageSampleImplicitLod %v4float %50 %16
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %52 = OpLabel
- %53 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.wgsl
deleted file mode 100644
index 472823f..0000000
--- a/test/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec4<f32> = textureSample(x_20, x_10, vf12);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
deleted file mode 100644
index 1824125..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Load(int4(int3(int2(vu123.xy), int(vu123.z)), 0));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
deleted file mode 100644
index d331808..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_array<float, access::sample> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.read(uint2(int2(vu123.xy)), int(vu123.z), 0);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
deleted file mode 100644
index 26448f3..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,86 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 62
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int_0 = OpConstant %int 0
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %51 = OpVectorShuffle %v2uint %34 %34 0 1
- %50 = OpBitcast %v2int %51
- %52 = OpCompositeExtract %int %50 0
- %53 = OpCompositeExtract %int %50 1
- %55 = OpCompositeExtract %uint %34 2
- %54 = OpBitcast %int %55
- %56 = OpCompositeConstruct %v3int %52 %53 %54
- %48 = OpImageFetch %v4float %49 %56 Lod %int_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %60 = OpLabel
- %61 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
deleted file mode 100644
index 50eaee4..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d_array<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureLoad(x_20, vec2<i32>(vu123.xy), i32(vu123.z), 0);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
deleted file mode 100644
index 151c2c1..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,28 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture2DArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_71 = x_20.Load(int4(int3(int2(vu123.xy), int(vu123.z)), 0));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
deleted file mode 100644
index ac7b571..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
+++ /dev/null
@@ -1,28 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_array<float, access::read> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_71 = tint_symbol_1.read(uint2(int2(vu123.xy)), int(vu123.z));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d_array<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
deleted file mode 100644
index e8183eb..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,87 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 61
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 1 0 2 R32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %51 = OpVectorShuffle %v2uint %34 %34 0 1
- %50 = OpBitcast %v2int %51
- %52 = OpCompositeExtract %int %50 0
- %53 = OpCompositeExtract %int %50 1
- %55 = OpCompositeExtract %uint %34 2
- %54 = OpBitcast %int %55
- %56 = OpCompositeConstruct %v3int %52 %53 %54
- %48 = OpImageRead %v4float %49 %56
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %59 = OpLabel
- %60 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
deleted file mode 100644
index 73814bb..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,30 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d_array<r32float, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_71 : vec4<f32> = textureLoad(x_20, vec2<i32>(vu123.xy), i32(vu123.z));
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl
deleted file mode 100644
index 0b62a41..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-RWTexture2DArray<float4> x_20 : register(u1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- x_20[int3(int2(vu123.xy), int(vu123.z))] = vf1234;
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl
deleted file mode 100644
index 9c67b74..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_array<float, access::write> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- tint_symbol_1.write(vf1234, uint2(int2(vu123.xy)), int(vu123.z));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d_array<float, access::write> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm
deleted file mode 100644
index 998442e..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,86 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 61
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonReadable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 1 0 2 R32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %51 = OpVectorShuffle %v2uint %34 %34 0 1
- %50 = OpBitcast %v2int %51
- %52 = OpCompositeExtract %int %50 0
- %53 = OpCompositeExtract %int %50 1
- %55 = OpCompositeExtract %uint %34 2
- %54 = OpBitcast %int %55
- %56 = OpCompositeConstruct %v3int %52 %53 %54
- OpImageWrite %49 %56 %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %59 = OpLabel
- %60 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl
deleted file mode 100644
index 39db0b1..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d_array<r32float, write>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- textureStore(x_20, vec2<i32>(vu123.xy), i32(vu123.z), vf1234);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
deleted file mode 100644
index 6357492..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture1D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Load(int2(int(u1), 0));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
deleted file mode 100644
index 6cf7258..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture1d<float, access::sample> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.read(uint(int(u1)), 0);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture1d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
deleted file mode 100644
index 1848be4..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,81 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 56
-; Schema: 0
- OpCapability Shader
- OpCapability Sampled1D
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 1D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int_0 = OpConstant %int 0
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %50 = OpBitcast %int %uint_1
- %48 = OpImageFetch %v4float %49 %50 Lod %int_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %54 = OpLabel
- %55 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
deleted file mode 100644
index 0b67cff..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_1d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureLoad(x_20, i32(u1), 0);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
deleted file mode 100644
index 00b6261..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,28 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture1D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_71 = x_20.Load(int2(int(u1), 0));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
deleted file mode 100644
index c04d539..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
+++ /dev/null
@@ -1,28 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture1d<float, access::read> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_71 = tint_symbol_1.read(uint(int(u1)));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture1d<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
deleted file mode 100644
index b47cc8e..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,82 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 55
-; Schema: 0
- OpCapability Shader
- OpCapability Image1D
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 1D 0 0 0 2 R32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %50 = OpBitcast %int %uint_1
- %48 = OpImageRead %v4float %49 %50
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %53 = OpLabel
- %54 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
deleted file mode 100644
index a236ae0..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,30 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_1d<r32float, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_71 : vec4<f32> = textureLoad(x_20, i32(u1));
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl
deleted file mode 100644
index 1a33a73..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-RWTexture1D<float4> x_20 : register(u1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- x_20[int(u1)] = vf1234;
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl
deleted file mode 100644
index 5e9c742..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture1d<float, access::write> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- tint_symbol_1.write(vf1234, uint(int(u1)));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture1d<float, access::write> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm
deleted file mode 100644
index 4e465fa..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,81 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 55
-; Schema: 0
- OpCapability Shader
- OpCapability Image1D
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonReadable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 1D 0 0 0 2 R32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %50 = OpBitcast %int %uint_1
- OpImageWrite %49 %50 %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %53 = OpLabel
- %54 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl
deleted file mode 100644
index e4de802..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_1d<r32float, write>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- textureStore(x_20, i32(u1), vf1234);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.hlsl
deleted file mode 100644
index c9b7e1b..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Load(int3(int2(vu12), 0));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.msl
deleted file mode 100644
index 655b96b..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.read(uint2(int2(vu12)), 0);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.spvasm
deleted file mode 100644
index 76c637eb..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,80 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 56
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int_0 = OpConstant %int 0
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %50 = OpBitcast %v2int %31
- %48 = OpImageFetch %v4float %49 %50 Lod %int_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %54 = OpLabel
- %55 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.wgsl
deleted file mode 100644
index dba1319..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureLoad(x_20, vec2<i32>(vu12), 0);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.hlsl
deleted file mode 100644
index 4ead2a6..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.hlsl
+++ /dev/null
@@ -1,28 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_71 = x_20.Load(int3(int2(vu12), 0));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.msl
deleted file mode 100644
index a9ede45..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.msl
+++ /dev/null
@@ -1,28 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::read> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_71 = tint_symbol_1.read(uint2(int2(vu12)));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.spvasm
deleted file mode 100644
index eee2570..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.spvasm
+++ /dev/null
@@ -1,81 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 55
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 2 R32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %50 = OpBitcast %v2int %31
- %48 = OpImageRead %v4float %49 %50
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %53 = OpLabel
- %54 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.wgsl
deleted file mode 100644
index fbe4e1a..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.wgsl
+++ /dev/null
@@ -1,30 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d<r32float, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_71 : vec4<f32> = textureLoad(x_20, vec2<i32>(vu12));
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.hlsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.hlsl
deleted file mode 100644
index 5c83a3f..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-RWTexture2D<float4> x_20 : register(u1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- x_20[int2(vu12)] = vf1234;
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.msl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.msl
deleted file mode 100644
index 146a085..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::write> tint_symbol_1) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- tint_symbol_1.write(vf1234, uint2(int2(vu12)));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::write> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.spvasm b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.spvasm
deleted file mode 100644
index 263b5c4..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.spvasm
+++ /dev/null
@@ -1,80 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 55
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonReadable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 2 R32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %6 %x_20
- %50 = OpBitcast %v2int %31
- OpImageWrite %49 %50 %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %53 = OpLabel
- %54 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.wgsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.wgsl
deleted file mode 100644
index ca42d80..0000000
--- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d<r32float, write>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- textureStore(x_20, vec2<i32>(vu12), vf1234);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
deleted file mode 100644
index 5d99a18..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture1D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, f1);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
deleted file mode 100644
index cd357fb..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture1d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, f1);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture1d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
deleted file mode 100644
index 15138de..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,82 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 57
-; Schema: 0
- OpCapability Shader
- OpCapability Sampled1D
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 1D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %48 = OpImageSampleImplicitLod %v4float %52 %float_1
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %55 = OpLabel
- %56 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
deleted file mode 100644
index 193ebee..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_1d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, f1);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
deleted file mode 100644
index c90be53..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture1D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf12.x);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
deleted file mode 100644
index 150f027..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture1d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf12.x);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture1d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
deleted file mode 100644
index 3b16a16..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,83 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 58
-; Schema: 0
- OpCapability Shader
- OpCapability Sampled1D
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 1D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpCompositeExtract %float %41 0
- %48 = OpImageSampleImplicitLod %v4float %52 %53
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %56 = OpLabel
- %57 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
deleted file mode 100644
index ac4b620..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_1d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf12.x);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl
deleted file mode 100644
index 5d62d42..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture1D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf123.x);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl
deleted file mode 100644
index 7dd0d49..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture1d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf123.x);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture1d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm
deleted file mode 100644
index 40a76be..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,83 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 58
-; Schema: 0
- OpCapability Shader
- OpCapability Sampled1D
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 1D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpCompositeExtract %float %44 0
- %48 = OpImageSampleImplicitLod %v4float %52 %53
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %56 = OpLabel
- %57 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl
deleted file mode 100644
index c58533f..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_1d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf123.x);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.hlsl
deleted file mode 100644
index 83a5703..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture1D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf1234.x);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.msl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.msl
deleted file mode 100644
index 8107821..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture1d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf1234.x);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture1d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.spvasm
deleted file mode 100644
index f6a1b00..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,83 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 58
-; Schema: 0
- OpCapability Shader
- OpCapability Sampled1D
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 1D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpCompositeExtract %float %47 0
- %48 = OpImageSampleImplicitLod %v4float %52 %53
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %56 = OpLabel
- %57 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.wgsl
deleted file mode 100644
index ed286d5..0000000
--- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_1d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf1234.x);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
deleted file mode 100644
index 0b1e681..0000000
--- a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, float3(vf123.xy, float(int(vf123.z))));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl b/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
deleted file mode 100644
index d690dbf..0000000
--- a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_array<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf123.xy, int(vf123.z));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d_array<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
deleted file mode 100644
index 7645a19..0000000
--- a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,88 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 64
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpVectorShuffle %v2float %44 %44 0 1
- %54 = OpCompositeExtract %float %53 0
- %55 = OpCompositeExtract %float %53 1
- %58 = OpCompositeExtract %float %44 2
- %57 = OpConvertFToS %int %58
- %56 = OpConvertSToF %float %57
- %59 = OpCompositeConstruct %v3float %54 %55 %56
- %48 = OpImageSampleImplicitLod %v4float %52 %59
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %62 = OpLabel
- %63 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
deleted file mode 100644
index a5f904a..0000000
--- a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d_array<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf123.xy, i32(vf123.z));
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
deleted file mode 100644
index 054600e..0000000
--- a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, float3(vf1234.xy, float(int(vf1234.z))));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl b/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
deleted file mode 100644
index e319e91..0000000
--- a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_array<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf1234.xy, int(vf1234.z));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d_array<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
deleted file mode 100644
index 4d5a9cb..0000000
--- a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,88 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 64
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpVectorShuffle %v2float %47 %47 0 1
- %54 = OpCompositeExtract %float %53 0
- %55 = OpCompositeExtract %float %53 1
- %58 = OpCompositeExtract %float %47 2
- %57 = OpConvertFToS %int %58
- %56 = OpConvertSToF %float %57
- %59 = OpCompositeConstruct %v3float %54 %55 %56
- %48 = OpImageSampleImplicitLod %v4float %52 %59
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %62 = OpLabel
- %63 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
deleted file mode 100644
index 5cb51a3..0000000
--- a/test/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d_array<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf1234.xy, i32(vf1234.z));
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
deleted file mode 100644
index e80450b..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf12);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
deleted file mode 100644
index aa26663..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf12);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
deleted file mode 100644
index d065038..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,81 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 57
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %48 = OpImageSampleImplicitLod %v4float %52 %41
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %55 = OpLabel
- %56 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
deleted file mode 100644
index bb63d93..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf12);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
deleted file mode 100644
index ccd77f9..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf123.xy);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
deleted file mode 100644
index d4a73e2..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf123.xy);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
deleted file mode 100644
index 4164842..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,82 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 58
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpVectorShuffle %v2float %44 %44 0 1
- %48 = OpImageSampleImplicitLod %v4float %52 %53
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %56 = OpLabel
- %57 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
deleted file mode 100644
index bc7bd7b..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf123.xy);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl
deleted file mode 100644
index f00cd55..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf1234.xy);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl
deleted file mode 100644
index 25175ab..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf1234.xy);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm
deleted file mode 100644
index f290163..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,82 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 58
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpVectorShuffle %v2float %47 %47 0 1
- %48 = OpImageSampleImplicitLod %v4float %52 %53
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %56 = OpLabel
- %57 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl
deleted file mode 100644
index d514b6d..0000000
--- a/test/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf1234.xy);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
deleted file mode 100644
index 86fbb4f..0000000
--- a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture3D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf123);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl b/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
deleted file mode 100644
index 4c7f1ac..0000000
--- a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture3d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf123);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture3d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
deleted file mode 100644
index 2fe350a..0000000
--- a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,81 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 57
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 3D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %48 = OpImageSampleImplicitLod %v4float %52 %44
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %55 = OpLabel
- %56 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
deleted file mode 100644
index 525e451..0000000
--- a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_3d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf123);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
deleted file mode 100644
index b51bc16..0000000
--- a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture3D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf1234.xyz);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl b/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
deleted file mode 100644
index eb44299..0000000
--- a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture3d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf1234.xyz);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texture3d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
deleted file mode 100644
index 245318a..0000000
--- a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,82 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 58
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 3D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpVectorShuffle %v3float %47 %47 0 1 2
- %48 = OpImageSampleImplicitLod %v4float %52 %53
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %56 = OpLabel
- %57 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
deleted file mode 100644
index 309ec34..0000000
--- a/test/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_3d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf1234.xyz);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
deleted file mode 100644
index cf2e325..0000000
--- a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCubeArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, float4(vf1234.xyz, float(int(vf1234.w))));
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl b/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
deleted file mode 100644
index 357c811..0000000
--- a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texturecube_array<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf1234.xyz, int(vf1234.w));
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texturecube_array<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
deleted file mode 100644
index 5da605c..0000000
--- a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,90 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 65
-; Schema: 0
- OpCapability Shader
- OpCapability SampledCubeArray
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 0 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpVectorShuffle %v3float %47 %47 0 1 2
- %54 = OpCompositeExtract %float %53 0
- %55 = OpCompositeExtract %float %53 1
- %56 = OpCompositeExtract %float %53 2
- %59 = OpCompositeExtract %float %47 3
- %58 = OpConvertFToS %int %59
- %57 = OpConvertSToF %float %58
- %60 = OpCompositeConstruct %v4float %54 %55 %56 %57
- %48 = OpImageSampleImplicitLod %v4float %52 %60
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %63 = OpLabel
- %64 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
deleted file mode 100644
index ab52711..0000000
--- a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_cube_array<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf1234.xyz, i32(vf1234.w));
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
deleted file mode 100644
index f180cc3..0000000
--- a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCube<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf123);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl b/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
deleted file mode 100644
index 2b86564..0000000
--- a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texturecube<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf123);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texturecube<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
deleted file mode 100644
index f087d4b..0000000
--- a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,81 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 57
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %48 = OpImageSampleImplicitLod %v4float %52 %44
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %55 = OpLabel
- %56 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
deleted file mode 100644
index a850027..0000000
--- a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_cube<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf123);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
deleted file mode 100644
index 3eff801..0000000
--- a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,27 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCube<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- float float_var = 0.0f;
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const float4 x_73 = x_20.Sample(x_10, vf1234.xyz);
- const uint x_1000 = 0u;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl b/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
deleted file mode 100644
index 1cc31d7..0000000
--- a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texturecube<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float float_var = 0.0f;
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- float4 const x_73 = tint_symbol_1.sample(tint_symbol_2, vf1234.xyz);
- uint const x_1000 = 0u;
- return;
-}
-
-fragment void tint_symbol(texturecube<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
deleted file mode 100644
index 73ebb70..0000000
--- a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,82 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 58
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %float_var "float_var"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
-%_ptr_Function_float = OpTypePointer Function %float
- %15 = OpConstantNull %float
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %20 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %23 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %26 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %31 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %34 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %37 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %41 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %44 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %51 = OpTypeSampledImage %6
- %uint_0 = OpConstant %uint 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %float_var = OpVariable %_ptr_Function_float Function %15
- %49 = OpLoad %3 %x_10
- %50 = OpLoad %6 %x_20
- %52 = OpSampledImage %51 %50 %49
- %53 = OpVectorShuffle %v3float %47 %47 0 1 2
- %48 = OpImageSampleImplicitLod %v4float %52 %53
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %56 = OpLabel
- %57 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
deleted file mode 100644
index 08cbbd3..0000000
--- a/test/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,29 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_cube<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- var float_var : f32;
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let x_73 : vec4<f32> = textureSample(x_20, x_10, vf1234.xyz);
- let x_1000 : u32 = 0u;
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 94c1196..0000000
--- a/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2DMS<float4> x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = float4(x_20.Load(int3(vi12, 0), i1).x, 0.0f, 0.0f, 0.0f);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 5925ccb..0000000
--- a/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d_ms<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = float4(tint_symbol_1.read(uint2(vi12), i1), 0.0f, 0.0f, 0.0f);
- return;
-}
-
-fragment void tint_symbol(depth2d_ms<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index a49c62c..0000000
--- a/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,67 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 50
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 1 0 1 1 Unknown
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %float_0 = OpConstant %float 0
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %44 = OpLoad %3 %x_20
- %43 = OpImageFetch %v4float %44 %23 Sample %int_1
- %42 = OpCompositeExtract %float %43 0
- %46 = OpCompositeConstruct %v4float %42 %float_0 %float_0 %float_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %48 = OpLabel
- %49 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index 1f17b47..0000000
--- a/test/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,24 +0,0 @@
-[[group(2), binding(1)]] var x_20 : texture_depth_multisampled_2d;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = vec4<f32>(textureLoad(x_20, vi12, i1), 0.0, 0.0, 0.0);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 276e56d..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2D x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = float4(x_20.Load(int3(vi12, 0)).x, 0.0f, 0.0f, 0.0f);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index fe06360..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = float4(tint_symbol_1.read(uint2(vi12), 0), 0.0f, 0.0f, 0.0f);
- return;
-}
-
-fragment void tint_symbol(depth2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 2da4858..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,68 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 1 0 0 1 Unknown
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %int_0 = OpConstant %int 0
- %float_0 = OpConstant %float 0
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %44 = OpLoad %3 %x_20
- %43 = OpImageFetch %v4float %44 %23 Lod %int_0
- %42 = OpCompositeExtract %float %43 0
- %47 = OpCompositeConstruct %v4float %42 %float_0 %float_0 %float_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index fc8398c..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,24 +0,0 @@
-[[group(2), binding(1)]] var x_20 : texture_depth_2d;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = vec4<f32>(textureLoad(x_20, vi12, 0), 0.0, 0.0, 0.0);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 5552bb5..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2DMS<float4> x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = x_20.Load(vi12, int(u1));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 6345a99..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_ms<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = tint_symbol_1.read(uint2(vi12), int(u1));
- return;
-}
-
-fragment void tint_symbol(texture2d_ms<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 11b9e37..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,65 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 48
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 0 0 1 1 Unknown
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %43 = OpLoad %3 %x_20
- %44 = OpBitcast %int %uint_1
- %42 = OpImageFetch %v4float %43 %23 Sample %44
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %46 = OpLabel
- %47 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index e90b685..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,24 +0,0 @@
-[[group(2), binding(1)]] var x_20 : texture_multisampled_2d<f32>;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = textureLoad(x_20, vi12, i32(u1));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 12d9a7e..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2DMS<float4> x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = x_20.Load(vi12, i1);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index f8bde24..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_ms<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = tint_symbol_1.read(uint2(vi12), i1);
- return;
-}
-
-fragment void tint_symbol(texture2d_ms<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 14513e2..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,64 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 47
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 0 0 1 1 Unknown
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %43 = OpLoad %3 %x_20
- %42 = OpImageFetch %v4float %43 %23 Sample %int_1
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %45 = OpLabel
- %46 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index 099e81d..0000000
--- a/test/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,24 +0,0 @@
-[[group(2), binding(1)]] var x_20 : texture_multisampled_2d<f32>;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = textureLoad(x_20, vi12, i1);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 7accfe0..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2D<float4> x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 4859037..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = tint_symbol_1.read(uint2(vi12), 0);
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index d8c9513..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,65 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 48
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %int_0 = OpConstant %int 0
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %43 = OpLoad %3 %x_20
- %42 = OpImageFetch %v4float %43 %23 Lod %int_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %46 = OpLabel
- %47 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index 4510f15..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,24 +0,0 @@
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = textureLoad(x_20, vi12, 0);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.hlsl
deleted file mode 100644
index 226a19f..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2D<float4> x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = x_20.Load(int3(vi12, 3));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.msl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.msl
deleted file mode 100644
index 9584010..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.msl
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = tint_symbol_1.read(uint2(vi12), 3);
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.spvasm
deleted file mode 100644
index c1bde58..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,64 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 47
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %43 = OpLoad %3 %x_20
- %42 = OpImageFetch %v4float %43 %23 Lod %int_3
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %45 = OpLabel
- %46 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.wgsl
deleted file mode 100644
index d4a286c..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,24 +0,0 @@
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = textureLoad(x_20, vi12, 3);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.hlsl
deleted file mode 100644
index 276e56d..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2D x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = float4(x_20.Load(int3(vi12, 0)).x, 0.0f, 0.0f, 0.0f);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.msl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.msl
deleted file mode 100644
index fe06360..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.msl
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = float4(tint_symbol_1.read(uint2(vi12), 0), 0.0f, 0.0f, 0.0f);
- return;
-}
-
-fragment void tint_symbol(depth2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.spvasm
deleted file mode 100644
index 2da4858..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,68 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 1 0 0 1 Unknown
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %int_0 = OpConstant %int 0
- %float_0 = OpConstant %float 0
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %44 = OpLoad %3 %x_20
- %43 = OpImageFetch %v4float %44 %23 Lod %int_0
- %42 = OpCompositeExtract %float %43 0
- %47 = OpCompositeConstruct %v4float %42 %float_0 %float_0 %float_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.wgsl
deleted file mode 100644
index fc8398c..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,24 +0,0 @@
-[[group(2), binding(1)]] var x_20 : texture_depth_2d;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = vec4<f32>(textureLoad(x_20, vi12, 0), 0.0, 0.0, 0.0);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.hlsl
deleted file mode 100644
index 7ebeb96..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2D x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = float4(x_20.Load(int3(vi12, 3)).x, 0.0f, 0.0f, 0.0f);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.msl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.msl
deleted file mode 100644
index d0545ae..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.msl
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = float4(tint_symbol_1.read(uint2(vi12), 3), 0.0f, 0.0f, 0.0f);
- return;
-}
-
-fragment void tint_symbol(depth2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.spvasm
deleted file mode 100644
index 3f8a1c8..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,67 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 50
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 1 0 0 1 Unknown
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %float_0 = OpConstant %float 0
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %44 = OpLoad %3 %x_20
- %43 = OpImageFetch %v4float %44 %23 Lod %int_3
- %42 = OpCompositeExtract %float %43 0
- %46 = OpCompositeConstruct %v4float %42 %float_0 %float_0 %float_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %48 = OpLabel
- %49 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.wgsl
deleted file mode 100644
index 5f61e27..0000000
--- a/test/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,24 +0,0 @@
-[[group(2), binding(1)]] var x_20 : texture_depth_2d;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = vec4<f32>(textureLoad(x_20, vi12, 3), 0.0, 0.0, 0.0);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index a1c275b..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int x_99 = tint_tmp.z;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index dad08ff..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index f4b288f..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index 1dfacd6..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
deleted file mode 100644
index c89ba14..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- const int x_99 = tint_tmp.w;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
deleted file mode 100644
index b88bd6a..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_array<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(texture2d_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
deleted file mode 100644
index 5dd28cb..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
deleted file mode 100644
index 0f64f8d..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d_array<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
deleted file mode 100644
index 4b93bd2..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture3D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- const int x_99 = tint_tmp.w;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
deleted file mode 100644
index a5495ab..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture3d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(texture3d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
deleted file mode 100644
index d42a8e9..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 3D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
deleted file mode 100644
index b9f0bf4..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_3d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
deleted file mode 100644
index b6bc8de..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCube<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int x_99 = tint_tmp.z;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
deleted file mode 100644
index 2dee0b0..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texturecube<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(texturecube<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
deleted file mode 100644
index 258238e..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
deleted file mode 100644
index 9cd5760..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_cube<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl
deleted file mode 100644
index e992e81..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCubeArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- const int x_99 = tint_tmp.w;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl
deleted file mode 100644
index 3c4c504..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texturecube_array<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(texturecube_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm
deleted file mode 100644
index e3f3f68..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability SampledCubeArray
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 0 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl
deleted file mode 100644
index 99c8bf4..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_cube_array<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl
deleted file mode 100644
index 485be37..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int x_99 = tint_tmp.z;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl
deleted file mode 100644
index 2239f9f..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(depth2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm
deleted file mode 100644
index 66f82b0..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 1 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl
deleted file mode 100644
index a059785..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_2d;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.hlsl
deleted file mode 100644
index 56fc13f..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DArray x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- const int x_99 = tint_tmp.w;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.msl
deleted file mode 100644
index ba7e2ba..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d_array<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(depth2d_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.spvasm
deleted file mode 100644
index 23d006c..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 1 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.wgsl
deleted file mode 100644
index f6d61ae..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_2d_array;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.hlsl
deleted file mode 100644
index 39b656f..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCube x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int x_99 = tint_tmp.z;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.msl
deleted file mode 100644
index 2ca52ca..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depthcube<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(depthcube<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.spvasm
deleted file mode 100644
index d9342e6..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 1 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.wgsl
deleted file mode 100644
index 19ff8ec..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_cube;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.hlsl
deleted file mode 100644
index 27c1534..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCubeArray x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- const int x_99 = tint_tmp.w;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.msl
deleted file mode 100644
index 6152c24..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depthcube_array<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_mip_levels());
- return;
-}
-
-fragment void tint_symbol(depthcube_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.spvasm
deleted file mode 100644
index a8d0d58..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability SampledCubeArray
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 1 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQueryLevels %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.wgsl
deleted file mode 100644
index 618b4f6..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_cube_array;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumLevels(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 7442848..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const uint x_99 = uint(tint_tmp.z);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 73e2dc3..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- uint const x_99 = uint(int(tint_symbol_1.get_num_mip_levels()));
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 92079d3..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQueryLevels %int %48
- %46 = OpBitcast %uint %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index cde8eeb..0000000
--- a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : u32 = u32(textureNumLevels(x_20));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 17c6a11..0000000
--- a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DMS<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int x_99 = tint_tmp.z;
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 968f404..0000000
--- a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_ms<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int const x_99 = int(tint_symbol_1.get_num_samples());
- return;
-}
-
-fragment void tint_symbol(texture2d_ms<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 7cbddbb..0000000
--- a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 1 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %47 = OpLoad %6 %x_20
- %46 = OpImageQuerySamples %int %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %49 = OpLabel
- %50 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index c2207de..0000000
--- a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_multisampled_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : i32 = textureNumSamples(x_20);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index d0fc2f3..0000000
--- a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DMS<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const uint x_99 = uint(tint_tmp.z);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 5b2ed4d..0000000
--- a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_ms<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- uint const x_99 = uint(int(tint_symbol_1.get_num_samples()));
- return;
-}
-
-fragment void tint_symbol(texture2d_ms<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 67ed2b5..0000000
--- a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 1 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySamples %int %48
- %46 = OpBitcast %uint %47
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index 03f824f..0000000
--- a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_multisampled_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : u32 = u32(textureNumSamples(x_20));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 737b06b..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,34 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- int3 tint_tmp_1;
- x_20.GetDimensions(tint_tmp_1.x, tint_tmp_1.y, tint_tmp_1.z);
- const int3 x_99 = int3(tint_tmp.xy, tint_tmp_1.z);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index f663818..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_array<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int3 const x_99 = int3(int2(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1)), int(tint_symbol_1.get_array_size()));
- return;
-}
-
-fragment void tint_symbol(texture2d_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index f1cc99f..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,83 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 59
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %int_0 = OpConstant %int 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v3int %48 %int_1
- %46 = OpVectorShuffle %v2int %47 %47 0 1
- %49 = OpCompositeExtract %int %46 0
- %50 = OpCompositeExtract %int %46 1
- %53 = OpLoad %6 %x_20
- %52 = OpImageQuerySizeLod %v3int %53 %int_0
- %51 = OpCompositeExtract %int %52 2
- %55 = OpCompositeConstruct %v3int %49 %50 %51
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %57 = OpLabel
- %58 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index 7b57d9a..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d_array<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec3<i32> = vec3<i32>(textureDimensions(x_20, i1), textureNumLayers(x_20));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
deleted file mode 100644
index 7b21f26..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,34 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCubeArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- int3 tint_tmp_1;
- x_20.GetDimensions(tint_tmp_1.x, tint_tmp_1.y, tint_tmp_1.z);
- const int3 x_99 = int3(tint_tmp.xy.xy, tint_tmp_1.z);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
deleted file mode 100644
index f75acda..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texturecube_array<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int3 const x_99 = int3(int2(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1)).xy, int(tint_symbol_1.get_array_size()));
- return;
-}
-
-fragment void tint_symbol(texturecube_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
deleted file mode 100644
index e3febe5..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,85 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 60
-; Schema: 0
- OpCapability Shader
- OpCapability SampledCubeArray
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 0 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %int_0 = OpConstant %int 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v3int %48 %int_1
- %46 = OpVectorShuffle %v2int %47 %47 0 1
- %49 = OpVectorShuffle %v2int %46 %46 0 1
- %50 = OpCompositeExtract %int %49 0
- %51 = OpCompositeExtract %int %49 1
- %54 = OpLoad %6 %x_20
- %53 = OpImageQuerySizeLod %v3int %54 %int_0
- %52 = OpCompositeExtract %int %53 2
- %56 = OpCompositeConstruct %v3int %50 %51 %52
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %58 = OpLabel
- %59 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
deleted file mode 100644
index 497b830..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_cube_array<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec3<i32> = vec3<i32>(textureDimensions(x_20, i1).xy, textureNumLayers(x_20));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
deleted file mode 100644
index 3192658..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,34 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DArray x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- int3 tint_tmp_1;
- x_20.GetDimensions(tint_tmp_1.x, tint_tmp_1.y, tint_tmp_1.z);
- const int3 x_99 = int3(tint_tmp.xy, tint_tmp_1.z);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
deleted file mode 100644
index 5717a17..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d_array<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int3 const x_99 = int3(int2(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1)), int(tint_symbol_1.get_array_size()));
- return;
-}
-
-fragment void tint_symbol(depth2d_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
deleted file mode 100644
index feffb2f..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,83 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 59
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 1 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %int_0 = OpConstant %int 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v3int %48 %int_1
- %46 = OpVectorShuffle %v2int %47 %47 0 1
- %49 = OpCompositeExtract %int %46 0
- %50 = OpCompositeExtract %int %46 1
- %53 = OpLoad %6 %x_20
- %52 = OpImageQuerySizeLod %v3int %53 %int_0
- %51 = OpCompositeExtract %int %52 2
- %55 = OpCompositeConstruct %v3int %49 %50 %51
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %57 = OpLabel
- %58 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
deleted file mode 100644
index 362eee8..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_2d_array;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec3<i32> = vec3<i32>(textureDimensions(x_20, i1), textureNumLayers(x_20));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
deleted file mode 100644
index 78f2dd8..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,34 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCubeArray x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- int3 tint_tmp_1;
- x_20.GetDimensions(tint_tmp_1.x, tint_tmp_1.y, tint_tmp_1.z);
- const int3 x_99 = int3(tint_tmp.xy.xy, tint_tmp_1.z);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
deleted file mode 100644
index 83fc391..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depthcube_array<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int3 const x_99 = int3(int2(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1)).xy, int(tint_symbol_1.get_array_size()));
- return;
-}
-
-fragment void tint_symbol(depthcube_array<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
deleted file mode 100644
index cc25919..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,85 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 60
-; Schema: 0
- OpCapability Shader
- OpCapability SampledCubeArray
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 1 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %int_0 = OpConstant %int 0
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v3int %48 %int_1
- %46 = OpVectorShuffle %v2int %47 %47 0 1
- %49 = OpVectorShuffle %v2int %46 %46 0 1
- %50 = OpCompositeExtract %int %49 0
- %51 = OpCompositeExtract %int %49 1
- %54 = OpLoad %6 %x_20
- %53 = OpImageQuerySizeLod %v3int %54 %int_0
- %52 = OpCompositeExtract %int %53 2
- %56 = OpCompositeConstruct %v3int %50 %51 %52
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %58 = OpLabel
- %59 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
deleted file mode 100644
index 84671ed..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_cube_array;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec3<i32> = vec3<i32>(textureDimensions(x_20, i1).xy, textureNumLayers(x_20));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
deleted file mode 100644
index 615507a..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int2 x_99 = int2(tint_tmp.xy);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
deleted file mode 100644
index 0facef9..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int2 const x_99 = int2(int2(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1)));
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
deleted file mode 100644
index 3c1a645..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v2int %48 %int_1
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
deleted file mode 100644
index 01f8917..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec2<i32> = vec2<i32>(textureDimensions(x_20, i1));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
deleted file mode 100644
index a36cb04..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture3D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int4 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
- const int3 x_99 = int3(tint_tmp.xyz);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
deleted file mode 100644
index ea128c4..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture3d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int3 const x_99 = int3(int3(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1), tint_symbol_1.get_depth(i1)));
- return;
-}
-
-fragment void tint_symbol(texture3d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
deleted file mode 100644
index 375680d..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 3D 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v3int %48 %int_1
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
deleted file mode 100644
index cc23ec1..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_3d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec3<i32> = vec3<i32>(textureDimensions(x_20, i1));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
deleted file mode 100644
index 416f283..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCube<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int2 x_99 = int2(tint_tmp.xy.xy);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
deleted file mode 100644
index 67332d0..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texturecube<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int2 const x_99 = int2(int2(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1)).xy);
- return;
-}
-
-fragment void tint_symbol(texturecube<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
deleted file mode 100644
index 44bbb99..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 53
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 0 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v2int %48 %int_1
- %49 = OpVectorShuffle %v2int %47 %47 0 1
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %51 = OpLabel
- %52 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
deleted file mode 100644
index 0aac2b1..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_cube<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec2<i32> = vec2<i32>(textureDimensions(x_20, i1).xy);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl
deleted file mode 100644
index 0272d4e..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2D x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int2 x_99 = int2(tint_tmp.xy);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl
deleted file mode 100644
index 5d81362..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int2 const x_99 = int2(int2(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1)));
- return;
-}
-
-fragment void tint_symbol(depth2d<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm
deleted file mode 100644
index dcb0fa8..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 1 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v2int %48 %int_1
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl
deleted file mode 100644
index 57e9d2f..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_2d;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec2<i32> = vec2<i32>(textureDimensions(x_20, i1));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl
deleted file mode 100644
index 45f9b9b..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-TextureCube x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(i1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int2 x_99 = int2(tint_tmp.xy.xy);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl
deleted file mode 100644
index e5c95fe..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depthcube<float, access::sample> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int2 const x_99 = int2(int2(tint_symbol_1.get_width(i1), tint_symbol_1.get_height(i1)).xy);
- return;
-}
-
-fragment void tint_symbol(depthcube<float, access::sample> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm
deleted file mode 100644
index cd2eb75..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.spvasm
+++ /dev/null
@@ -1,76 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 53
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float Cube 1 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySizeLod %v2int %48 %int_1
- %49 = OpVectorShuffle %v2int %47 %47 0 1
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %51 = OpLabel
- %52 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl
deleted file mode 100644
index 7234972..0000000
--- a/test/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_cube;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec2<i32> = vec2<i32>(textureDimensions(x_20, i1).xy);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 7ec5278..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,36 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture2DArray<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
- int3 tint_tmp_1;
- x_20.GetDimensions(tint_tmp_1.x, tint_tmp_1.y, tint_tmp_1.z);
- const int3 x_99 = int3(tint_tmp.xy, tint_tmp_1.z);
- const float4 x_98 = x_20.Load(int4(int3(vi123.xy, vi123.z), 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 856424c..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,32 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_array<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int3 const x_99 = int3(int2(tint_symbol_1.get_width(), tint_symbol_1.get_height()), int(tint_symbol_1.get_array_size()));
- float4 const x_98 = tint_symbol_1.read(uint2(vi123.xy), vi123.z);
- return;
-}
-
-fragment void tint_symbol(texture2d_array<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 0503340..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,91 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 65
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 1 0 2 Rgba32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySize %v3int %48
- %46 = OpVectorShuffle %v2int %47 %47 0 1
- %49 = OpCompositeExtract %int %46 0
- %50 = OpCompositeExtract %int %46 1
- %53 = OpLoad %6 %x_20
- %52 = OpImageQuerySize %v3int %53
- %51 = OpCompositeExtract %int %52 2
- %54 = OpCompositeConstruct %v3int %49 %50 %51
- %56 = OpLoad %6 %x_20
- %57 = OpVectorShuffle %v2int %31 %31 0 1
- %58 = OpCompositeExtract %int %57 0
- %59 = OpCompositeExtract %int %57 1
- %60 = OpCompositeExtract %int %31 2
- %61 = OpCompositeConstruct %v3int %58 %59 %60
- %55 = OpImageRead %v4float %56 %61
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %63 = OpLabel
- %64 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index bbdc71f..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,34 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d_array<rgba32float, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec3<i32> = vec3<i32>(textureDimensions(x_20), textureNumLayers(x_20));
- let x_98 : vec4<f32> = textureLoad(x_20, vi123.xy, vi123.z);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
deleted file mode 100644
index 00208b9..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,34 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture2D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int2 tint_tmp;
- x_20.GetDimensions(tint_tmp.x, tint_tmp.y);
- const int2 x_99 = int2(tint_tmp);
- const float4 x_98 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
deleted file mode 100644
index 752567f..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
+++ /dev/null
@@ -1,32 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int2 const x_99 = int2(int2(tint_symbol_1.get_width(), tint_symbol_1.get_height()));
- float4 const x_98 = tint_symbol_1.read(uint2(vi12));
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
deleted file mode 100644
index b156c3e..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,79 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 54
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 0 2 Rgba32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySize %v2int %48
- %50 = OpLoad %6 %x_20
- %49 = OpImageRead %v4float %50 %28
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %52 = OpLabel
- %53 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
deleted file mode 100644
index 66757c0..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,34 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_2d<rgba32float, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec2<i32> = vec2<i32>(textureDimensions(x_20));
- let x_98 : vec4<f32> = textureLoad(x_20, vi12);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
deleted file mode 100644
index 8583b1b..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,34 +0,0 @@
-warning: use of deprecated intrinsic
-SamplerState x_10 : register(s0, space0);
-Texture3D<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int3 x_99 = int3(tint_tmp);
- const float4 x_98 = x_20.Load(int4(vi123, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
deleted file mode 100644
index 2de5b2c..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
+++ /dev/null
@@ -1,32 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture3d<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int3 const x_99 = int3(int3(tint_symbol_1.get_width(), tint_symbol_1.get_height(), tint_symbol_1.get_depth()));
- float4 const x_98 = tint_symbol_1.read(uint3(vi123));
- return;
-}
-
-fragment void tint_symbol(texture3d<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
deleted file mode 100644
index 6595822..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,79 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 54
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 3D 0 0 0 2 Rgba32f
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySize %v3int %48
- %50 = OpLoad %6 %x_20
- %49 = OpImageRead %v4float %50 %31
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %52 = OpLabel
- %53 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
deleted file mode 100644
index 022852a..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,34 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_storage_3d<rgba32float, read>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec3<i32> = vec3<i32>(textureDimensions(x_20));
- let x_98 : vec4<f32> = textureLoad(x_20, vi123);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
deleted file mode 100644
index 34d7716..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,32 +0,0 @@
-SamplerState x_10 : register(s0, space0);
-Texture2DMS<float4> x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- int3 tint_tmp;
- x_20.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
- const int2 x_99 = int2(tint_tmp.xy);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
deleted file mode 100644
index 65e3deb..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d_ms<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- int2 const x_99 = int2(int2(tint_symbol_1.get_width(), tint_symbol_1.get_height()));
- return;
-}
-
-fragment void tint_symbol(texture2d_ms<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
deleted file mode 100644
index a6fe6f9..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,75 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 52
-; Schema: 0
- OpCapability Shader
- OpCapability ImageQuery
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 0 0 1 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
- %x_30 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %9 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %16 = OpConstantComposite %v2float %float_1 %float_2
- %17 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %23 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %28 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %31 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %34 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %39 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %42 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %45 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %main_1 = OpFunction %void None %9
- %12 = OpLabel
- %48 = OpLoad %6 %x_20
- %47 = OpImageQuerySize %v2int %48
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %9
- %50 = OpLabel
- %51 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
deleted file mode 100644
index b6eed29..0000000
--- a/test/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler;
-
-[[group(2), binding(1)]] var x_20 : texture_multisampled_2d<f32>;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_99 : vec2<i32> = vec2<i32>(textureDimensions(x_20));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index b6074fd..0000000
--- a/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,25 +0,0 @@
-warning: use of deprecated intrinsic
-Texture2D<float4> x_20 : register(t1, space2);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const int2 offsets2d = int2(3, 4);
- const float4 x_99 = x_20.Load(int3(vi12, 0));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 2f39a14..0000000
--- a/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,27 +0,0 @@
-warning: use of deprecated intrinsic
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(texture2d<float, access::read> tint_symbol_1) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- int2 const offsets2d = int2(3, 4);
- float4 const x_99 = tint_symbol_1.read(uint2(vi12));
- return;
-}
-
-fragment void tint_symbol(texture2d<float, access::read> tint_symbol_2 [[texture(0)]]) {
- main_1(tint_symbol_2);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index 0590182..0000000
--- a/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,66 +0,0 @@
-warning: use of deprecated intrinsic
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 47
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_20 "x_20"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_20 NonWritable
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- %float = OpTypeFloat 32
- %3 = OpTypeImage %float 2D 0 0 0 2 Rgba32f
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_20 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %12 = OpConstantComposite %v2float %float_1 %float_2
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %15 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %18 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %23 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %26 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %29 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %34 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %37 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %40 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %41 = OpConstantComposite %v2int %int_3 %int_4
- %main_1 = OpFunction %void None %5
- %8 = OpLabel
- %43 = OpLoad %3 %x_20
- %42 = OpImageRead %v4float %43 %23
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %45 = OpLabel
- %46 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index ee058ef..0000000
--- a/test/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,25 +0,0 @@
-warning: use of deprecated intrinsic
-[[group(2), binding(1)]] var x_20 : texture_storage_2d<rgba32float, read>;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let offsets2d : vec2<i32> = vec2<i32>(3, 4);
- let x_99 : vec4<f32> = textureLoad(x_20, vi12);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
deleted file mode 100644
index 29f4734..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.hlsl
+++ /dev/null
@@ -1,29 +0,0 @@
-SamplerComparisonState x_10 : register(s0, space0);
-Texture2D x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const float x_79 = x_20.SampleCmpLevelZero(x_10, vf12, 0.200000003f);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
deleted file mode 100644
index 9dafd8b..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- float const x_79 = tint_symbol_1.sample_compare(tint_symbol_2, coords12, 0.200000003f, level(0));
- return;
-}
-
-fragment void tint_symbol(depth2d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
deleted file mode 100644
index dcb7022..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.spvasm
+++ /dev/null
@@ -1,80 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 57
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 1 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
-%_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3
- %x_30 = OpVariable %_ptr_UniformConstant_3_0 UniformConstant
- %void = OpTypeVoid
- %10 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %17 = OpConstantComposite %v2float %float_1 %float_2
- %18 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %21 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %24 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %29 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %32 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %35 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %40 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %43 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %46 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %50 = OpTypeSampledImage %6
-%float_0_200000003 = OpConstant %float 0.200000003
- %float_0 = OpConstant %float 0
- %main_1 = OpFunction %void None %10
- %13 = OpLabel
- %48 = OpLoad %3 %x_10
- %49 = OpLoad %6 %x_20
- %51 = OpSampledImage %50 %49 %48
- %47 = OpImageSampleDrefExplicitLod %float %51 %17 %float_0_200000003 Lod %float_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %10
- %55 = OpLabel
- %56 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
deleted file mode 100644
index dc05282..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler_comparison;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_2d;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_79 : f32 = textureSampleCompareLevel(x_20, x_10, coords12, 0.200000003);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
deleted file mode 100644
index 0db5d67..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.hlsl
+++ /dev/null
@@ -1,30 +0,0 @@
-SamplerComparisonState x_10 : register(s0, space0);
-Texture2DArray x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const float x_79 = x_20.SampleCmpLevelZero(x_10, float3(coords123.xy, float(int(coords123.z))), 0.200000003f);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
deleted file mode 100644
index 63b2ca3..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d_array<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- float const x_79 = tint_symbol_1.sample_compare(tint_symbol_2, coords123.xy, int(coords123.z), 0.200000003f, level(0));
- return;
-}
-
-fragment void tint_symbol(depth2d_array<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
deleted file mode 100644
index c907c32..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.spvasm
+++ /dev/null
@@ -1,87 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 64
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 1 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
-%_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3
- %x_30 = OpVariable %_ptr_UniformConstant_3_0 UniformConstant
- %void = OpTypeVoid
- %10 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %17 = OpConstantComposite %v2float %float_1 %float_2
- %18 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %21 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %24 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %29 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %32 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %35 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %40 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %43 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %46 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %50 = OpTypeSampledImage %6
-%float_0_200000003 = OpConstant %float 0.200000003
- %float_0 = OpConstant %float 0
- %main_1 = OpFunction %void None %10
- %13 = OpLabel
- %48 = OpLoad %3 %x_10
- %49 = OpLoad %6 %x_20
- %51 = OpSampledImage %50 %49 %48
- %52 = OpVectorShuffle %v2float %21 %21 0 1
- %53 = OpCompositeExtract %float %52 0
- %54 = OpCompositeExtract %float %52 1
- %57 = OpCompositeExtract %float %21 2
- %56 = OpConvertFToS %int %57
- %55 = OpConvertSToF %float %56
- %58 = OpCompositeConstruct %v3float %53 %54 %55
- %47 = OpImageSampleDrefExplicitLod %float %51 %58 %float_0_200000003 Lod %float_0
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %10
- %62 = OpLabel
- %63 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
deleted file mode 100644
index 3042bf3..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler_comparison;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_2d_array;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_79 : f32 = textureSampleCompareLevel(x_20, x_10, coords123.xy, i32(coords123.z), 0.200000003);
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
deleted file mode 100644
index aaea7f7..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.hlsl
+++ /dev/null
@@ -1,29 +0,0 @@
-SamplerComparisonState x_10 : register(s0, space0);
-Texture2D x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const float x_79 = x_20.SampleCmpLevelZero(x_10, vf12, 0.200000003f, int2(3, 4));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
deleted file mode 100644
index 4abbaa8..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- float const x_79 = tint_symbol_1.sample_compare(tint_symbol_2, coords12, 0.200000003f, level(0), int2(3, 4));
- return;
-}
-
-fragment void tint_symbol(depth2d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
deleted file mode 100644
index 14b94d7..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.spvasm
+++ /dev/null
@@ -1,81 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 58
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 1 0 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
-%_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3
- %x_30 = OpVariable %_ptr_UniformConstant_3_0 UniformConstant
- %void = OpTypeVoid
- %10 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %17 = OpConstantComposite %v2float %float_1 %float_2
- %18 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %21 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %24 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %29 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %32 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %35 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %40 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %43 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %46 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %50 = OpTypeSampledImage %6
-%float_0_200000003 = OpConstant %float 0.200000003
- %float_0 = OpConstant %float 0
- %54 = OpConstantComposite %v2int %int_3 %int_4
- %main_1 = OpFunction %void None %10
- %13 = OpLabel
- %48 = OpLoad %3 %x_10
- %49 = OpLoad %6 %x_20
- %51 = OpSampledImage %50 %49 %48
- %47 = OpImageSampleDrefExplicitLod %float %51 %17 %float_0_200000003 Lod|ConstOffset %float_0 %54
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %10
- %56 = OpLabel
- %57 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
deleted file mode 100644
index 1fede99..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler_comparison;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_2d;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_79 : f32 = textureSampleCompareLevel(x_20, x_10, coords12, 0.200000003, vec2<i32>(3, 4));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
deleted file mode 100644
index 5231fc8..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.hlsl
+++ /dev/null
@@ -1,30 +0,0 @@
-SamplerComparisonState x_10 : register(s0, space0);
-Texture2DArray x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float3 coords123 = vf123;
- const float4 coords1234 = vf1234;
- const float x_79 = x_20.SampleCmpLevelZero(x_10, float3(coords123.xy, float(int(coords123.z))), 0.200000003f, int2(3, 4));
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
deleted file mode 100644
index 87603be..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depth2d_array<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- float const x_79 = tint_symbol_1.sample_compare(tint_symbol_2, coords123.xy, int(coords123.z), 0.200000003f, level(0), int2(3, 4));
- return;
-}
-
-fragment void tint_symbol(depth2d_array<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
deleted file mode 100644
index 1a27bc0..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.spvasm
+++ /dev/null
@@ -1,88 +0,0 @@
-; SPIR-V
-; Version: 1.3
-; Generator: Google Tint Compiler; 0
-; Bound: 65
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main"
- OpExecutionMode %main OriginUpperLeft
- OpName %x_10 "x_10"
- OpName %x_20 "x_20"
- OpName %x_30 "x_30"
- OpName %main_1 "main_1"
- OpName %main "main"
- OpDecorate %x_10 DescriptorSet 0
- OpDecorate %x_10 Binding 0
- OpDecorate %x_20 DescriptorSet 2
- OpDecorate %x_20 Binding 1
- OpDecorate %x_30 DescriptorSet 0
- OpDecorate %x_30 Binding 1
- %3 = OpTypeSampler
-%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
- %x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
- %float = OpTypeFloat 32
- %6 = OpTypeImage %float 2D 1 1 0 1 Unknown
-%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
- %x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
-%_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3
- %x_30 = OpVariable %_ptr_UniformConstant_3_0 UniformConstant
- %void = OpTypeVoid
- %10 = OpTypeFunction %void
- %float_1 = OpConstant %float 1
- %v2float = OpTypeVector %float 2
- %float_2 = OpConstant %float 2
- %17 = OpConstantComposite %v2float %float_1 %float_2
- %18 = OpConstantComposite %v2float %float_2 %float_1
- %v3float = OpTypeVector %float 3
- %float_3 = OpConstant %float 3
- %21 = OpConstantComposite %v3float %float_1 %float_2 %float_3
- %v4float = OpTypeVector %float 4
- %float_4 = OpConstant %float 4
- %24 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
- %int = OpTypeInt 32 1
- %int_1 = OpConstant %int 1
- %v2int = OpTypeVector %int 2
- %int_2 = OpConstant %int 2
- %29 = OpConstantComposite %v2int %int_1 %int_2
- %v3int = OpTypeVector %int 3
- %int_3 = OpConstant %int 3
- %32 = OpConstantComposite %v3int %int_1 %int_2 %int_3
- %v4int = OpTypeVector %int 4
- %int_4 = OpConstant %int 4
- %35 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
- %uint = OpTypeInt 32 0
- %uint_1 = OpConstant %uint 1
- %v2uint = OpTypeVector %uint 2
- %uint_2 = OpConstant %uint 2
- %40 = OpConstantComposite %v2uint %uint_1 %uint_2
- %v3uint = OpTypeVector %uint 3
- %uint_3 = OpConstant %uint 3
- %43 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
- %v4uint = OpTypeVector %uint 4
- %uint_4 = OpConstant %uint 4
- %46 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
- %50 = OpTypeSampledImage %6
-%float_0_200000003 = OpConstant %float 0.200000003
- %float_0 = OpConstant %float 0
- %61 = OpConstantComposite %v2int %int_3 %int_4
- %main_1 = OpFunction %void None %10
- %13 = OpLabel
- %48 = OpLoad %3 %x_10
- %49 = OpLoad %6 %x_20
- %51 = OpSampledImage %50 %49 %48
- %52 = OpVectorShuffle %v2float %21 %21 0 1
- %53 = OpCompositeExtract %float %52 0
- %54 = OpCompositeExtract %float %52 1
- %57 = OpCompositeExtract %float %21 2
- %56 = OpConvertFToS %int %57
- %55 = OpConvertSToF %float %56
- %58 = OpCompositeConstruct %v3float %53 %54 %55
- %47 = OpImageSampleDrefExplicitLod %float %51 %58 %float_0_200000003 Lod|ConstOffset %float_0 %61
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %10
- %63 = OpLabel
- %64 = OpFunctionCall %void %main_1
- OpReturn
- OpFunctionEnd
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
deleted file mode 100644
index b01094d..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.wgsl
+++ /dev/null
@@ -1,32 +0,0 @@
-[[group(0), binding(0)]] var x_10 : sampler_comparison;
-
-[[group(2), binding(1)]] var x_20 : texture_depth_2d_array;
-
-[[group(0), binding(1)]] var x_30 : sampler;
-
-fn main_1() {
- let f1 : f32 = 1.0;
- let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
- let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
- let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
- let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
- let i1 : i32 = 1;
- let vi12 : vec2<i32> = vec2<i32>(1, 2);
- let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
- let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
- let u1 : u32 = 1u;
- let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
- let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
- let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
- let coords1 : f32 = 1.0;
- let coords12 : vec2<f32> = vf12;
- let coords123 : vec3<f32> = vf123;
- let coords1234 : vec4<f32> = vf1234;
- let x_79 : f32 = textureSampleCompareLevel(x_20, x_10, coords123.xy, i32(coords123.z), 0.200000003, vec2<i32>(3, 4));
- return;
-}
-
-[[stage(fragment)]]
-fn main() {
- main_1();
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl
deleted file mode 100644
index 1d68927..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.hlsl
+++ /dev/null
@@ -1,29 +0,0 @@
-SamplerComparisonState x_10 : register(s0, space0);
-TextureCube x_20 : register(t1, space2);
-SamplerState x_30 : register(s1, space0);
-
-void main_1() {
- const float f1 = 1.0f;
- const float2 vf12 = float2(1.0f, 2.0f);
- const float2 vf21 = float2(2.0f, 1.0f);
- const float3 vf123 = float3(1.0f, 2.0f, 3.0f);
- const float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- const int i1 = 1;
- const int2 vi12 = int2(1, 2);
- const int3 vi123 = int3(1, 2, 3);
- const int4 vi1234 = int4(1, 2, 3, 4);
- const uint u1 = 1u;
- const uint2 vu12 = uint2(1u, 2u);
- const uint3 vu123 = uint3(1u, 2u, 3u);
- const uint4 vu1234 = uint4(1u, 2u, 3u, 4u);
- const float coords1 = 1.0f;
- const float2 coords12 = vf12;
- const float4 coords1234 = vf1234;
- const float x_79 = x_20.SampleCmpLevelZero(x_10, vf123, 0.200000003f);
- return;
-}
-
-void main() {
- main_1();
- return;
-}
diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl
deleted file mode 100644
index d4df875..0000000
--- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <metal_stdlib>
-
-using namespace metal;
-void main_1(depthcube<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
- float const f1 = 1.0f;
- float2 const vf12 = float2(1.0f, 2.0f);
- float2 const vf21 = float2(2.0f, 1.0f);
- float3 const vf123 = float3(1.0f, 2.0f, 3.0f);
- float4 const vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f);
- int const i1 = 1;
- int2 const vi12 = int2(1, 2);
- int3 const vi123 = int3(1, 2, 3);
- int4 const vi1234 = int4(1, 2, 3, 4);
- uint const u1 = 1u;
- uint2 const vu12 = uint2(1u, 2u);
- uint3 const vu123 = uint3(1u, 2u, 3u);
- uint4 const vu1234 = uint4(1u, 2u, 3u, 4u);
- float const coords1 = 1.0f;
- float2 const coords12 = vf12;
- float3 const coords123 = vf123;
- float4 const coords1234 = vf1234;
- float const x_79 = tint_symbol_1.sample_compare(tint_symbol_2, coords123, 0.200000003f, level(0));
- return;
-}
-
-fragment void tint_symbol(depthcube<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
- main_1(tint_symbol_3, tint_symbol_4);
- return;
-}
-