[ir][msl] Generate expectation files.
Add SKIP expectation files for the MSL IR printer.
Bug: tint:1967
Change-Id: Ia0597244328d580fef391a094c46f131751bc01f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/162040
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.ir.msl
new file mode 100644
index 0000000..243d25c
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.ir.msl
@@ -0,0 +1,40 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
+ %prevent_dce:ptr<storage, vec2<f16>, read_write> = var @binding_point(2, 0)
+}
+
+%acos_004aff = func():void -> %b2 {
+ %b2 = block {
+ %res:ptr<function, vec2<f16>, read_write> = var, vec2<f16>(0.25048828125h)
+ %4:vec2<f16> = load %res
+ store %prevent_dce, %4
+ ret
+ }
+}
+%vertex_main = @vertex func():vec4<f32> [@position] -> %b3 {
+ %b3 = block {
+ %6:void = call %acos_004aff
+ ret vec4<f32>(0.0f)
+ }
+}
+%fragment_main = @fragment func():void -> %b4 {
+ %b4 = block {
+ %8:void = call %acos_004aff
+ ret
+ }
+}
+%compute_main = @compute @workgroup_size(1, 1, 1) func():void -> %b5 {
+ %b5 = block {
+ %10:void = call %acos_004aff
+ ret
+ }
+}
+
+unhandled variable address space
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/069188.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/069188.wgsl.expected.ir.msl
new file mode 100644
index 0000000..792ab03
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/069188.wgsl.expected.ir.msl
@@ -0,0 +1,9 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:247 internal compiler error: Switch() matched no cases. Type: tint::core::ir::UserCall
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/15d35b.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/15d35b.wgsl.expected.ir.msl
new file mode 100644
index 0000000..792ab03
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/15d35b.wgsl.expected.ir.msl
@@ -0,0 +1,9 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:247 internal compiler error: Switch() matched no cases. Type: tint::core::ir::UserCall
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.ir.msl
new file mode 100644
index 0000000..41b93a5
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.ir.msl
@@ -0,0 +1,40 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
+ %prevent_dce:ptr<storage, vec4<f16>, read_write> = var @binding_point(2, 0)
+}
+
+%acos_203628 = func():void -> %b2 {
+ %b2 = block {
+ %res:ptr<function, vec4<f16>, read_write> = var, vec4<f16>(0.25048828125h)
+ %4:vec4<f16> = load %res
+ store %prevent_dce, %4
+ ret
+ }
+}
+%vertex_main = @vertex func():vec4<f32> [@position] -> %b3 {
+ %b3 = block {
+ %6:void = call %acos_203628
+ ret vec4<f32>(0.0f)
+ }
+}
+%fragment_main = @fragment func():void -> %b4 {
+ %b4 = block {
+ %8:void = call %acos_203628
+ ret
+ }
+}
+%compute_main = @compute @workgroup_size(1, 1, 1) func():void -> %b5 {
+ %b5 = block {
+ %10:void = call %acos_203628
+ ret
+ }
+}
+
+unhandled variable address space
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.ir.msl
new file mode 100644
index 0000000..d47451e
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.ir.msl
@@ -0,0 +1,40 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
+ %prevent_dce:ptr<storage, f16, read_write> = var @binding_point(2, 0)
+}
+
+%acos_303e3d = func():void -> %b2 {
+ %b2 = block {
+ %res:ptr<function, f16, read_write> = var, 0.25048828125h
+ %4:f16 = load %res
+ store %prevent_dce, %4
+ ret
+ }
+}
+%vertex_main = @vertex func():vec4<f32> [@position] -> %b3 {
+ %b3 = block {
+ %6:void = call %acos_303e3d
+ ret vec4<f32>(0.0f)
+ }
+}
+%fragment_main = @fragment func():void -> %b4 {
+ %b4 = block {
+ %8:void = call %acos_303e3d
+ ret
+ }
+}
+%compute_main = @compute @workgroup_size(1, 1, 1) func():void -> %b5 {
+ %b5 = block {
+ %10:void = call %acos_303e3d
+ ret
+ }
+}
+
+unhandled variable address space
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.ir.msl
new file mode 100644
index 0000000..1d290b9
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.ir.msl
@@ -0,0 +1,40 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
+ %prevent_dce:ptr<storage, f32, read_write> = var @binding_point(2, 0)
+}
+
+%acos_489247 = func():void -> %b2 {
+ %b2 = block {
+ %res:ptr<function, f32, read_write> = var, 0.25f
+ %4:f32 = load %res
+ store %prevent_dce, %4
+ ret
+ }
+}
+%vertex_main = @vertex func():vec4<f32> [@position] -> %b3 {
+ %b3 = block {
+ %6:void = call %acos_489247
+ ret vec4<f32>(0.0f)
+ }
+}
+%fragment_main = @fragment func():void -> %b4 {
+ %b4 = block {
+ %8:void = call %acos_489247
+ ret
+ }
+}
+%compute_main = @compute @workgroup_size(1, 1, 1) func():void -> %b5 {
+ %b5 = block {
+ %10:void = call %acos_489247
+ ret
+ }
+}
+
+unhandled variable address space
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/4dac75.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/4dac75.wgsl.expected.ir.msl
new file mode 100644
index 0000000..792ab03
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/4dac75.wgsl.expected.ir.msl
@@ -0,0 +1,9 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:247 internal compiler error: Switch() matched no cases. Type: tint::core::ir::UserCall
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/5e9ad2.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/5e9ad2.wgsl.expected.ir.msl
new file mode 100644
index 0000000..792ab03
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/5e9ad2.wgsl.expected.ir.msl
@@ -0,0 +1,9 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:247 internal compiler error: Switch() matched no cases. Type: tint::core::ir::UserCall
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.ir.msl
new file mode 100644
index 0000000..09a3cf4
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.ir.msl
@@ -0,0 +1,40 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
+ %prevent_dce:ptr<storage, vec4<f32>, read_write> = var @binding_point(2, 0)
+}
+
+%acos_8e2acf = func():void -> %b2 {
+ %b2 = block {
+ %res:ptr<function, vec4<f32>, read_write> = var, vec4<f32>(0.25f)
+ %4:vec4<f32> = load %res
+ store %prevent_dce, %4
+ ret
+ }
+}
+%vertex_main = @vertex func():vec4<f32> [@position] -> %b3 {
+ %b3 = block {
+ %6:void = call %acos_8e2acf
+ ret vec4<f32>(0.0f)
+ }
+}
+%fragment_main = @fragment func():void -> %b4 {
+ %b4 = block {
+ %8:void = call %acos_8e2acf
+ ret
+ }
+}
+%compute_main = @compute @workgroup_size(1, 1, 1) func():void -> %b5 {
+ %b5 = block {
+ %10:void = call %acos_8e2acf
+ ret
+ }
+}
+
+unhandled variable address space
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.ir.msl
new file mode 100644
index 0000000..fd57b75
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.ir.msl
@@ -0,0 +1,40 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
+ %prevent_dce:ptr<storage, vec3<f32>, read_write> = var @binding_point(2, 0)
+}
+
+%acos_a610c4 = func():void -> %b2 {
+ %b2 = block {
+ %res:ptr<function, vec3<f32>, read_write> = var, vec3<f32>(0.25f)
+ %4:vec3<f32> = load %res
+ store %prevent_dce, %4
+ ret
+ }
+}
+%vertex_main = @vertex func():vec4<f32> [@position] -> %b3 {
+ %b3 = block {
+ %6:void = call %acos_a610c4
+ ret vec4<f32>(0.0f)
+ }
+}
+%fragment_main = @fragment func():void -> %b4 {
+ %b4 = block {
+ %8:void = call %acos_a610c4
+ ret
+ }
+}
+%compute_main = @compute @workgroup_size(1, 1, 1) func():void -> %b5 {
+ %b5 = block {
+ %10:void = call %acos_a610c4
+ ret
+ }
+}
+
+unhandled variable address space
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.ir.msl
new file mode 100644
index 0000000..b1efb0b
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.ir.msl
@@ -0,0 +1,40 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
+ %prevent_dce:ptr<storage, vec2<f32>, read_write> = var @binding_point(2, 0)
+}
+
+%acos_dfc915 = func():void -> %b2 {
+ %b2 = block {
+ %res:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(0.25f)
+ %4:vec2<f32> = load %res
+ store %prevent_dce, %4
+ ret
+ }
+}
+%vertex_main = @vertex func():vec4<f32> [@position] -> %b3 {
+ %b3 = block {
+ %6:void = call %acos_dfc915
+ ret vec4<f32>(0.0f)
+ }
+}
+%fragment_main = @fragment func():void -> %b4 {
+ %b4 = block {
+ %8:void = call %acos_dfc915
+ ret
+ }
+}
+%compute_main = @compute @workgroup_size(1, 1, 1) func():void -> %b5 {
+ %b5 = block {
+ %10:void = call %acos_dfc915
+ ret
+ }
+}
+
+unhandled variable address space
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************
diff --git a/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.ir.msl b/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.ir.msl
new file mode 100644
index 0000000..f97b195
--- /dev/null
+++ b/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.ir.msl
@@ -0,0 +1,40 @@
+SKIP: FAILED
+
+<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
+ %prevent_dce:ptr<storage, vec3<f16>, read_write> = var @binding_point(2, 0)
+}
+
+%acos_f47057 = func():void -> %b2 {
+ %b2 = block {
+ %res:ptr<function, vec3<f16>, read_write> = var, vec3<f16>(0.25048828125h)
+ %4:vec3<f16> = load %res
+ store %prevent_dce, %4
+ ret
+ }
+}
+%vertex_main = @vertex func():vec4<f32> [@position] -> %b3 {
+ %b3 = block {
+ %6:void = call %acos_f47057
+ ret vec4<f32>(0.0f)
+ }
+}
+%fragment_main = @fragment func():void -> %b4 {
+ %b4 = block {
+ %8:void = call %acos_f47057
+ ret
+ }
+}
+%compute_main = @compute @workgroup_size(1, 1, 1) func():void -> %b5 {
+ %b5 = block {
+ %10:void = call %acos_f47057
+ ret
+ }
+}
+
+unhandled variable address space
+********************************************************************
+* The tint shader compiler has encountered an unexpected error. *
+* *
+* Please help us fix this issue by submitting a bug report at *
+* crbug.com/tint with the source program that triggered the bug. *
+********************************************************************