From fb96429725360210331bb23dd050110965a63191 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Tue, 3 Sep 2024 22:25:11 +0000 Subject: [PATCH] [glsl][ir] Add conversion support This Cl adds `Convert` support to the GLSL IR backend. Bug: 42251044 Change-Id: I43c7e470b4d055fecebcff0a3db8edb7643ca314 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/204894 Reviewed-by: James Price Commit-Queue: dan sinclair --- src/tint/lang/glsl/writer/BUILD.bazel | 1 + src/tint/lang/glsl/writer/BUILD.cmake | 1 + src/tint/lang/glsl/writer/BUILD.gn | 1 + src/tint/lang/glsl/writer/convert_test.cc | 56 +++++++++++++++++++ src/tint/lang/glsl/writer/printer/printer.cc | 10 ++++ test/tint/bug/tint/1563.wgsl.expected.ir.glsl | 21 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat2x2/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat2x2/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat2x3/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat2x3/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat2x4/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat2x4/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat3x2/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat3x2/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat3x3/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat3x3/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat3x4/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat3x4/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat4x2/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat4x2/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat4x3/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat4x3/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../mat4x4/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../mat4x4/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../function/bool-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/bool-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/bool-i32.wgsl.expected.ir.glsl | 22 ++++---- .../function/bool-u32.wgsl.expected.ir.glsl | 22 ++++---- .../function/f16-bool.wgsl.expected.ir.glsl | 23 ++++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/i32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/i32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/i32-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/i32-u32.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/u32-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-i32.wgsl.expected.ir.glsl | 22 ++++---- .../scalar/var/bool-f16.wgsl.expected.ir.glsl | 19 +++---- .../scalar/var/bool-f32.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/bool-i32.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/bool-u32.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/f16-bool.wgsl.expected.ir.glsl | 19 +++---- .../scalar/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../scalar/var/f32-bool.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../scalar/var/i32-bool.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/i32-f16.wgsl.expected.ir.glsl | 19 +++---- .../scalar/var/i32-f32.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/i32-u32.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/u32-bool.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/u32-f16.wgsl.expected.ir.glsl | 19 +++---- .../scalar/var/u32-f32.wgsl.expected.ir.glsl | 18 +++--- .../scalar/var/u32-i32.wgsl.expected.ir.glsl | 18 +++--- .../function/bool-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/bool-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/bool-i32.wgsl.expected.ir.glsl | 22 ++++---- .../function/bool-u32.wgsl.expected.ir.glsl | 22 ++++---- .../function/f16-bool.wgsl.expected.ir.glsl | 23 ++++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/i32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/i32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/i32-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/i32-u32.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/u32-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-i32.wgsl.expected.ir.glsl | 22 ++++---- .../vec2/var/bool-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec2/var/bool-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/bool-i32.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/bool-u32.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/f16-bool.wgsl.expected.ir.glsl | 19 +++---- .../vec2/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../vec2/var/f32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec2/var/i32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/i32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec2/var/i32-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/i32-u32.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/u32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/u32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec2/var/u32-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec2/var/u32-i32.wgsl.expected.ir.glsl | 18 +++--- .../function/bool-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/bool-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/bool-i32.wgsl.expected.ir.glsl | 22 ++++---- .../function/bool-u32.wgsl.expected.ir.glsl | 22 ++++---- .../function/f16-bool.wgsl.expected.ir.glsl | 23 ++++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/i32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/i32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/i32-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/i32-u32.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/u32-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-i32.wgsl.expected.ir.glsl | 22 ++++---- .../vec3/var/bool-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec3/var/bool-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/bool-i32.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/bool-u32.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/f16-bool.wgsl.expected.ir.glsl | 19 +++---- .../vec3/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../vec3/var/f32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec3/var/i32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/i32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec3/var/i32-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/i32-u32.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/u32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/u32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec3/var/u32-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec3/var/u32-i32.wgsl.expected.ir.glsl | 18 +++--- .../function/bool-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/bool-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/bool-i32.wgsl.expected.ir.glsl | 22 ++++---- .../function/bool-u32.wgsl.expected.ir.glsl | 22 ++++---- .../function/f16-bool.wgsl.expected.ir.glsl | 23 ++++---- .../function/f16-f32.wgsl.expected.ir.glsl | 23 ++++---- .../function/f32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/f32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/i32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/i32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/i32-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/i32-u32.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-bool.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-f16.wgsl.expected.ir.glsl | 23 ++++---- .../function/u32-f32.wgsl.expected.ir.glsl | 22 ++++---- .../function/u32-i32.wgsl.expected.ir.glsl | 22 ++++---- .../vec4/var/bool-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec4/var/bool-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/bool-i32.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/bool-u32.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/f16-bool.wgsl.expected.ir.glsl | 19 +++---- .../vec4/var/f16-f32.wgsl.expected.ir.glsl | 19 +++---- .../vec4/var/f32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/f32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec4/var/i32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/i32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec4/var/i32-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/i32-u32.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/u32-bool.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/u32-f16.wgsl.expected.ir.glsl | 19 +++---- .../vec4/var/u32-f32.wgsl.expected.ir.glsl | 18 +++--- .../vec4/var/u32-i32.wgsl.expected.ir.glsl | 18 +++--- .../struct_in_array.wgsl.expected.ir.glsl | 21 ++++--- .../vec2_f32_in_mat2x2.wgsl.expected.ir.glsl | 19 +++---- .../vec4_f32_in_mat2x4.wgsl.expected.ir.glsl | 19 +++---- .../struct_in_array.wgsl.expected.ir.glsl | 21 ++++--- .../vec2_f32_in_mat2x2.wgsl.expected.ir.glsl | 19 +++---- .../vec4_f32_in_mat2x4.wgsl.expected.ir.glsl | 19 +++---- .../struct_in_array.wgsl.expected.ir.glsl | 21 ++++--- .../vec2_f32_in_mat2x2.wgsl.expected.ir.glsl | 19 +++---- .../vec4_f32_in_mat2x4.wgsl.expected.ir.glsl | 19 +++---- .../multiple_returns.wgsl.expected.ir.glsl | 54 +++++++++++++++--- .../unicode/identifiers.wgsl.expected.ir.glsl | 19 ++++--- 181 files changed, 1949 insertions(+), 1755 deletions(-) create mode 100644 src/tint/lang/glsl/writer/convert_test.cc diff --git a/src/tint/lang/glsl/writer/BUILD.bazel b/src/tint/lang/glsl/writer/BUILD.bazel index efd5afaf114..01fe256771f 100644 --- a/src/tint/lang/glsl/writer/BUILD.bazel +++ b/src/tint/lang/glsl/writer/BUILD.bazel @@ -94,6 +94,7 @@ cc_library( "call_test.cc", "constant_test.cc", "constructor_test.cc", + "convert_test.cc", "function_test.cc", "if_test.cc", "loop_test.cc", diff --git a/src/tint/lang/glsl/writer/BUILD.cmake b/src/tint/lang/glsl/writer/BUILD.cmake index 32548c9c7f8..706cd9816b7 100644 --- a/src/tint/lang/glsl/writer/BUILD.cmake +++ b/src/tint/lang/glsl/writer/BUILD.cmake @@ -108,6 +108,7 @@ tint_add_target(tint_lang_glsl_writer_test test lang/glsl/writer/call_test.cc lang/glsl/writer/constant_test.cc lang/glsl/writer/constructor_test.cc + lang/glsl/writer/convert_test.cc lang/glsl/writer/function_test.cc lang/glsl/writer/if_test.cc lang/glsl/writer/loop_test.cc diff --git a/src/tint/lang/glsl/writer/BUILD.gn b/src/tint/lang/glsl/writer/BUILD.gn index 4d63f4b0c63..0a982988d35 100644 --- a/src/tint/lang/glsl/writer/BUILD.gn +++ b/src/tint/lang/glsl/writer/BUILD.gn @@ -98,6 +98,7 @@ if (tint_build_unittests) { "call_test.cc", "constant_test.cc", "constructor_test.cc", + "convert_test.cc", "function_test.cc", "if_test.cc", "loop_test.cc", diff --git a/src/tint/lang/glsl/writer/convert_test.cc b/src/tint/lang/glsl/writer/convert_test.cc new file mode 100644 index 00000000000..b3e6df62df7 --- /dev/null +++ b/src/tint/lang/glsl/writer/convert_test.cc @@ -0,0 +1,56 @@ +// Copyright 2024 The Dawn & Tint Authors +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#include "src/tint/lang/glsl/writer/helper_test.h" + +using namespace tint::core::fluent_types; // NOLINT +using namespace tint::core::number_suffixes; // NOLINT + +namespace tint::glsl::writer { +namespace { + +TEST_F(GlslWriterTest, ConvertU32) { + auto* f = b.Function("a", ty.u32()); + b.Append(f->Block(), [&] { + auto* v = b.Var("v", 2_i); + b.Return(f, b.Convert(ty.u32(), v)); + }); + + ASSERT_TRUE(Generate()) << err_ << output_.glsl; + EXPECT_EQ(output_.glsl, GlslHeader() + R"( +uint a() { + int v = 2; + return uint(v); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} +)"); +} + +} // namespace +} // namespace tint::glsl::writer diff --git a/src/tint/lang/glsl/writer/printer/printer.cc b/src/tint/lang/glsl/writer/printer/printer.cc index 54b93578fa0..374ad4c002e 100644 --- a/src/tint/lang/glsl/writer/printer/printer.cc +++ b/src/tint/lang/glsl/writer/printer/printer.cc @@ -37,6 +37,7 @@ #include "src/tint/lang/core/ir/break_if.h" #include "src/tint/lang/core/ir/construct.h" #include "src/tint/lang/core/ir/continue.h" +#include "src/tint/lang/core/ir/convert.h" #include "src/tint/lang/core/ir/core_binary.h" #include "src/tint/lang/core/ir/core_builtin_call.h" #include "src/tint/lang/core/ir/core_unary.h" @@ -802,6 +803,7 @@ class Printer : public tint::TextGenerator { r->Instruction(), // [&](const core::ir::Access* a) { EmitAccess(out, a); }, [&](const core::ir::Construct* c) { EmitConstruct(out, c); }, + [&](const core::ir::Convert* c) { EmitConvert(out, c); }, // [&](const core::ir::CoreBinary* b) { EmitBinary(out, b); }, [&](const core::ir::CoreBuiltinCall* c) { EmitCoreBuiltinCall(out, c); }, [&](const core::ir::CoreUnary* u) { EmitUnary(out, u); }, @@ -820,6 +822,14 @@ class Printer : public tint::TextGenerator { TINT_ICE_ON_NO_MATCH); } + /// Emit a convert instruction + void EmitConvert(StringStream& out, const core::ir::Convert* c) { + EmitType(out, c->Result(0)->Type()); + out << "("; + EmitValue(out, c->Operand(0)); + out << ")"; + } + /// Emit a constructor void EmitConstruct(StringStream& out, const core::ir::Construct* c) { if (c->Args().IsEmpty()) { diff --git a/test/tint/bug/tint/1563.wgsl.expected.ir.glsl b/test/tint/bug/tint/1563.wgsl.expected.ir.glsl index 1e74e7747e7..fb15fc0e0a1 100644 --- a/test/tint/bug/tint/1563.wgsl.expected.ir.glsl +++ b/test/tint/bug/tint/1563.wgsl.expected.ir.glsl @@ -1,11 +1,12 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Access -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float foo() { + int oob = 99; + float b = vec4(0.0f)[min(uint(oob), 3u)]; + vec4 v = vec4(0.0f); + v[min(uint(oob), 3u)] = b; + return b; +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..219b6b3742a 100644 --- a/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat2 m() { + t = (t + 1.0hf); + return f16mat2(f16vec2(1.0hf, 2.0hf), f16vec2(3.0hf, 4.0hf)); +} +void f() { + mat2 v = mat2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..264d5ca65e1 100644 --- a/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat2 m() { + t = (t + 1.0f); + return mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f)); +} +void f() { + f16mat2 v = f16mat2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..7a2f5da6165 100644 --- a/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat2 u = f16mat2(f16vec2(1.0hf, 2.0hf), f16vec2(3.0hf, 4.0hf)); +void f() { + mat2 v = mat2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..77704b8956c 100644 --- a/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat2 u = mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f)); +void f() { + f16mat2 v = f16mat2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..c39c0f8b953 100644 --- a/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat2x3 m() { + t = (t + 1.0hf); + return f16mat2x3(f16vec3(1.0hf, 2.0hf, 3.0hf), f16vec3(4.0hf, 5.0hf, 6.0hf)); +} +void f() { + mat2x3 v = mat2x3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..37a94865bb0 100644 --- a/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat2x3 m() { + t = (t + 1.0f); + return mat2x3(vec3(1.0f, 2.0f, 3.0f), vec3(4.0f, 5.0f, 6.0f)); +} +void f() { + f16mat2x3 v = f16mat2x3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..87dffbfb9ef 100644 --- a/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat2x3 u = f16mat2x3(f16vec3(1.0hf, 2.0hf, 3.0hf), f16vec3(4.0hf, 5.0hf, 6.0hf)); +void f() { + mat2x3 v = mat2x3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..6a1cbab92d3 100644 --- a/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat2x3 u = mat2x3(vec3(1.0f, 2.0f, 3.0f), vec3(4.0f, 5.0f, 6.0f)); +void f() { + f16mat2x3 v = f16mat2x3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..4f007ab5c02 100644 --- a/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat2x4 m() { + t = (t + 1.0hf); + return f16mat2x4(f16vec4(1.0hf, 2.0hf, 3.0hf, 4.0hf), f16vec4(5.0hf, 6.0hf, 7.0hf, 8.0hf)); +} +void f() { + mat2x4 v = mat2x4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..6b890cedb0a 100644 --- a/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat2x4 m() { + t = (t + 1.0f); + return mat2x4(vec4(1.0f, 2.0f, 3.0f, 4.0f), vec4(5.0f, 6.0f, 7.0f, 8.0f)); +} +void f() { + f16mat2x4 v = f16mat2x4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..305ba646f5a 100644 --- a/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat2x4 u = f16mat2x4(f16vec4(1.0hf, 2.0hf, 3.0hf, 4.0hf), f16vec4(5.0hf, 6.0hf, 7.0hf, 8.0hf)); +void f() { + mat2x4 v = mat2x4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..d75f864a473 100644 --- a/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat2x4 u = mat2x4(vec4(1.0f, 2.0f, 3.0f, 4.0f), vec4(5.0f, 6.0f, 7.0f, 8.0f)); +void f() { + f16mat2x4 v = f16mat2x4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..70a99df3c63 100644 --- a/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat3x2 m() { + t = (t + 1.0hf); + return f16mat3x2(f16vec2(1.0hf, 2.0hf), f16vec2(3.0hf, 4.0hf), f16vec2(5.0hf, 6.0hf)); +} +void f() { + mat3x2 v = mat3x2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..afa69a6f2ff 100644 --- a/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat3x2 m() { + t = (t + 1.0f); + return mat3x2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f), vec2(5.0f, 6.0f)); +} +void f() { + f16mat3x2 v = f16mat3x2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..1fa54d40411 100644 --- a/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat3x2 u = f16mat3x2(f16vec2(1.0hf, 2.0hf), f16vec2(3.0hf, 4.0hf), f16vec2(5.0hf, 6.0hf)); +void f() { + mat3x2 v = mat3x2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..4728121e965 100644 --- a/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat3x2 u = mat3x2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f), vec2(5.0f, 6.0f)); +void f() { + f16mat3x2 v = f16mat3x2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..2ea3c6ee805 100644 --- a/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat3 m() { + t = (t + 1.0hf); + return f16mat3(f16vec3(1.0hf, 2.0hf, 3.0hf), f16vec3(4.0hf, 5.0hf, 6.0hf), f16vec3(7.0hf, 8.0hf, 9.0hf)); +} +void f() { + mat3 v = mat3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..99ce875bf1c 100644 --- a/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat3 m() { + t = (t + 1.0f); + return mat3(vec3(1.0f, 2.0f, 3.0f), vec3(4.0f, 5.0f, 6.0f), vec3(7.0f, 8.0f, 9.0f)); +} +void f() { + f16mat3 v = f16mat3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..08bfd643aa0 100644 --- a/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat3 u = f16mat3(f16vec3(1.0hf, 2.0hf, 3.0hf), f16vec3(4.0hf, 5.0hf, 6.0hf), f16vec3(7.0hf, 8.0hf, 9.0hf)); +void f() { + mat3 v = mat3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..4de4f8bd1d3 100644 --- a/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat3 u = mat3(vec3(1.0f, 2.0f, 3.0f), vec3(4.0f, 5.0f, 6.0f), vec3(7.0f, 8.0f, 9.0f)); +void f() { + f16mat3 v = f16mat3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..b14154b4357 100644 --- a/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat3x4 m() { + t = (t + 1.0hf); + return f16mat3x4(f16vec4(1.0hf, 2.0hf, 3.0hf, 4.0hf), f16vec4(5.0hf, 6.0hf, 7.0hf, 8.0hf), f16vec4(9.0hf, 10.0hf, 11.0hf, 12.0hf)); +} +void f() { + mat3x4 v = mat3x4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..4df385b974b 100644 --- a/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat3x4 m() { + t = (t + 1.0f); + return mat3x4(vec4(1.0f, 2.0f, 3.0f, 4.0f), vec4(5.0f, 6.0f, 7.0f, 8.0f), vec4(9.0f, 10.0f, 11.0f, 12.0f)); +} +void f() { + f16mat3x4 v = f16mat3x4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..52d17638f45 100644 --- a/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat3x4 u = f16mat3x4(f16vec4(1.0hf, 2.0hf, 3.0hf, 4.0hf), f16vec4(5.0hf, 6.0hf, 7.0hf, 8.0hf), f16vec4(9.0hf, 10.0hf, 11.0hf, 12.0hf)); +void f() { + mat3x4 v = mat3x4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..0ee252b3b15 100644 --- a/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat3x4 u = mat3x4(vec4(1.0f, 2.0f, 3.0f, 4.0f), vec4(5.0f, 6.0f, 7.0f, 8.0f), vec4(9.0f, 10.0f, 11.0f, 12.0f)); +void f() { + f16mat3x4 v = f16mat3x4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..c705b18cd31 100644 --- a/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat4x2 m() { + t = (t + 1.0hf); + return f16mat4x2(f16vec2(1.0hf, 2.0hf), f16vec2(3.0hf, 4.0hf), f16vec2(5.0hf, 6.0hf), f16vec2(7.0hf, 8.0hf)); +} +void f() { + mat4x2 v = mat4x2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..5d62cc10bfc 100644 --- a/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat4x2 m() { + t = (t + 1.0f); + return mat4x2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f), vec2(5.0f, 6.0f), vec2(7.0f, 8.0f)); +} +void f() { + f16mat4x2 v = f16mat4x2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..6381a21c16f 100644 --- a/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat4x2 u = f16mat4x2(f16vec2(1.0hf, 2.0hf), f16vec2(3.0hf, 4.0hf), f16vec2(5.0hf, 6.0hf), f16vec2(7.0hf, 8.0hf)); +void f() { + mat4x2 v = mat4x2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..9a734198a3a 100644 --- a/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat4x2 u = mat4x2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f), vec2(5.0f, 6.0f), vec2(7.0f, 8.0f)); +void f() { + f16mat4x2 v = f16mat4x2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..0c5304b059e 100644 --- a/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat4x3 m() { + t = (t + 1.0hf); + return f16mat4x3(f16vec3(1.0hf, 2.0hf, 3.0hf), f16vec3(4.0hf, 5.0hf, 6.0hf), f16vec3(7.0hf, 8.0hf, 9.0hf), f16vec3(10.0hf, 11.0hf, 12.0hf)); +} +void f() { + mat4x3 v = mat4x3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..fbb63053da3 100644 --- a/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat4x3 m() { + t = (t + 1.0f); + return mat4x3(vec3(1.0f, 2.0f, 3.0f), vec3(4.0f, 5.0f, 6.0f), vec3(7.0f, 8.0f, 9.0f), vec3(10.0f, 11.0f, 12.0f)); +} +void f() { + f16mat4x3 v = f16mat4x3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..a456f75034e 100644 --- a/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat4x3 u = f16mat4x3(f16vec3(1.0hf, 2.0hf, 3.0hf), f16vec3(4.0hf, 5.0hf, 6.0hf), f16vec3(7.0hf, 8.0hf, 9.0hf), f16vec3(10.0hf, 11.0hf, 12.0hf)); +void f() { + mat4x3 v = mat4x3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..55483f38b81 100644 --- a/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat4x3 u = mat4x3(vec3(1.0f, 2.0f, 3.0f), vec3(4.0f, 5.0f, 6.0f), vec3(7.0f, 8.0f, 9.0f), vec3(10.0f, 11.0f, 12.0f)); +void f() { + f16mat4x3 v = f16mat4x3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..d3f0d3944c2 100644 --- a/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16mat4 m() { + t = (t + 1.0hf); + return f16mat4(f16vec4(1.0hf, 2.0hf, 3.0hf, 4.0hf), f16vec4(5.0hf, 6.0hf, 7.0hf, 8.0hf), f16vec4(9.0hf, 10.0hf, 11.0hf, 12.0hf), f16vec4(13.0hf, 14.0hf, 15.0hf, 16.0hf)); +} +void f() { + mat4 v = mat4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..5ab80876543 100644 --- a/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +mat4 m() { + t = (t + 1.0f); + return mat4(vec4(1.0f, 2.0f, 3.0f, 4.0f), vec4(5.0f, 6.0f, 7.0f, 8.0f), vec4(9.0f, 10.0f, 11.0f, 12.0f), vec4(13.0f, 14.0f, 15.0f, 16.0f)); +} +void f() { + f16mat4 v = f16mat4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..a82ca53510e 100644 --- a/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16mat4 u = f16mat4(f16vec4(1.0hf, 2.0hf, 3.0hf, 4.0hf), f16vec4(5.0hf, 6.0hf, 7.0hf, 8.0hf), f16vec4(9.0hf, 10.0hf, 11.0hf, 12.0hf), f16vec4(13.0hf, 14.0hf, 15.0hf, 16.0hf)); +void f() { + mat4 v = mat4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..907afc956bf 100644 --- a/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat4 u = mat4(vec4(1.0f, 2.0f, 3.0f, 4.0f), vec4(5.0f, 6.0f, 7.0f, 8.0f), vec4(9.0f, 10.0f, 11.0f, 12.0f), vec4(13.0f, 14.0f, 15.0f, 16.0f)); +void f() { + f16mat4 v = f16mat4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.ir.glsl index d4bb1c94be9..49759e04408 100644 --- a/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bool m() { + t = true; + return bool(t); +} +void f() { + float16_t v = float16_t(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/bool-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/bool-f32.wgsl.expected.ir.glsl index d4bb1c94be9..ebad80978d7 100644 --- a/test/tint/expressions/type_conv/scalar/function/bool-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/bool-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bool m() { + t = true; + return bool(t); +} +void f() { + float v = float(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/bool-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/bool-i32.wgsl.expected.ir.glsl index d4bb1c94be9..eed2017554d 100644 --- a/test/tint/expressions/type_conv/scalar/function/bool-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/bool-i32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bool m() { + t = true; + return bool(t); +} +void f() { + int v = int(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/bool-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/bool-u32.wgsl.expected.ir.glsl index d4bb1c94be9..bd7244afb06 100644 --- a/test/tint/expressions/type_conv/scalar/function/bool-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/bool-u32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bool m() { + t = true; + return bool(t); +} +void f() { + uint v = uint(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.ir.glsl index d4bb1c94be9..911074dcf7d 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +float16_t m() { + t = 1.0hf; + return float16_t(t); +} +void f() { + bool v = bool(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..4d7c1a2e6f4 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +float16_t m() { + t = 1.0hf; + return float16_t(t); +} +void f() { + float v = float(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/f32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/f32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..d1701724645 100644 --- a/test/tint/expressions/type_conv/scalar/function/f32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/f32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +float m() { + t = 1.0f; + return float(t); +} +void f() { + bool v = bool(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..074a986f2fc 100644 --- a/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +float m() { + t = 1.0f; + return float(t); +} +void f() { + float16_t v = float16_t(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/i32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/i32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..e6263b79280 100644 --- a/test/tint/expressions/type_conv/scalar/function/i32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/i32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +int m() { + t = 1; + return int(t); +} +void f() { + bool v = bool(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..20a5542a978 100644 --- a/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +int m() { + t = 1; + return int(t); +} +void f() { + float16_t v = float16_t(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/i32-f32.wgsl.expected.ir.glsl index d4bb1c94be9..451960447d2 100644 --- a/test/tint/expressions/type_conv/scalar/function/i32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/i32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +int m() { + t = 1; + return int(t); +} +void f() { + float v = float(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/i32-u32.wgsl.expected.ir.glsl index d4bb1c94be9..409a66d6863 100644 --- a/test/tint/expressions/type_conv/scalar/function/i32-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/i32-u32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +int m() { + t = 1; + return int(t); +} +void f() { + uint v = uint(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/u32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/u32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..fc00403b72b 100644 --- a/test/tint/expressions/type_conv/scalar/function/u32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/u32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uint m() { + t = 1u; + return uint(t); +} +void f() { + bool v = bool(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..6e8507d468b 100644 --- a/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uint m() { + t = 1u; + return uint(t); +} +void f() { + float16_t v = float16_t(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/u32-f32.wgsl.expected.ir.glsl index d4bb1c94be9..de83c17b27b 100644 --- a/test/tint/expressions/type_conv/scalar/function/u32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/u32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uint m() { + t = 1u; + return uint(t); +} +void f() { + float v = float(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/function/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/function/u32-i32.wgsl.expected.ir.glsl index d4bb1c94be9..77878680194 100644 --- a/test/tint/expressions/type_conv/scalar/function/u32-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/function/u32-i32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uint m() { + t = 1u; + return uint(t); +} +void f() { + int v = int(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.ir.glsl index 69f590c89a7..693de700e60 100644 --- a/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool u = true; +void f() { + float16_t v = float16_t(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/bool-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/bool-f32.wgsl.expected.ir.glsl index 69f590c89a7..4a39771c546 100644 --- a/test/tint/expressions/type_conv/scalar/var/bool-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/bool-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool u = true; +void f() { + float v = float(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/bool-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/bool-i32.wgsl.expected.ir.glsl index 69f590c89a7..36f95cf8d8a 100644 --- a/test/tint/expressions/type_conv/scalar/var/bool-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/bool-i32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool u = true; +void f() { + int v = int(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/bool-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/bool-u32.wgsl.expected.ir.glsl index 69f590c89a7..774b61199ad 100644 --- a/test/tint/expressions/type_conv/scalar/var/bool-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/bool-u32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool u = true; +void f() { + uint v = uint(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.ir.glsl index 69f590c89a7..d1898d16e85 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t u = 1.0hf; +void f() { + bool v = bool(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..c3f5467ec18 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t u = 1.0hf; +void f() { + float v = float(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/f32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/f32-bool.wgsl.expected.ir.glsl index 69f590c89a7..67e654fd9b2 100644 --- a/test/tint/expressions/type_conv/scalar/var/f32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/f32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float u = 1.0f; +void f() { + bool v = bool(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..8512d8fbf3e 100644 --- a/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float u = 1.0f; +void f() { + float16_t v = float16_t(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/i32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/i32-bool.wgsl.expected.ir.glsl index 69f590c89a7..0644773e39c 100644 --- a/test/tint/expressions/type_conv/scalar/var/i32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/i32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int u = 1; +void f() { + bool v = bool(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.ir.glsl index 69f590c89a7..1edf3982869 100644 --- a/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int u = 1; +void f() { + float16_t v = float16_t(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/i32-f32.wgsl.expected.ir.glsl index 69f590c89a7..e6aa7a0ec6c 100644 --- a/test/tint/expressions/type_conv/scalar/var/i32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/i32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int u = 1; +void f() { + float v = float(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/i32-u32.wgsl.expected.ir.glsl index 69f590c89a7..3bf36f28a81 100644 --- a/test/tint/expressions/type_conv/scalar/var/i32-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/i32-u32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int u = 1; +void f() { + uint v = uint(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/u32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/u32-bool.wgsl.expected.ir.glsl index 69f590c89a7..dcc0ddfc636 100644 --- a/test/tint/expressions/type_conv/scalar/var/u32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/u32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint u = 1u; +void f() { + bool v = bool(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.ir.glsl index 69f590c89a7..4dd5bfda4f0 100644 --- a/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint u = 1u; +void f() { + float16_t v = float16_t(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/u32-f32.wgsl.expected.ir.glsl index 69f590c89a7..b1301a4bfae 100644 --- a/test/tint/expressions/type_conv/scalar/var/u32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/u32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint u = 1u; +void f() { + float v = float(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/scalar/var/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/scalar/var/u32-i32.wgsl.expected.ir.glsl index 69f590c89a7..996e5d0259a 100644 --- a/test/tint/expressions/type_conv/scalar/var/u32-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/scalar/var/u32-i32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint u = 1u; +void f() { + int v = int(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.ir.glsl index d4bb1c94be9..e1aa8645234 100644 --- a/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec2 m() { + t = true; + return bvec2(t); +} +void f() { + f16vec2 v = f16vec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/bool-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/bool-f32.wgsl.expected.ir.glsl index d4bb1c94be9..d6662c102b3 100644 --- a/test/tint/expressions/type_conv/vec2/function/bool-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/bool-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec2 m() { + t = true; + return bvec2(t); +} +void f() { + vec2 v = vec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/bool-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/bool-i32.wgsl.expected.ir.glsl index d4bb1c94be9..0a9da401269 100644 --- a/test/tint/expressions/type_conv/vec2/function/bool-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/bool-i32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec2 m() { + t = true; + return bvec2(t); +} +void f() { + ivec2 v = ivec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/bool-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/bool-u32.wgsl.expected.ir.glsl index d4bb1c94be9..e3aac08b636 100644 --- a/test/tint/expressions/type_conv/vec2/function/bool-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/bool-u32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec2 m() { + t = true; + return bvec2(t); +} +void f() { + uvec2 v = uvec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.ir.glsl index d4bb1c94be9..b46024a8e56 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16vec2 m() { + t = 1.0hf; + return f16vec2(t); +} +void f() { + bvec2 v = bvec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..6bb45f843e7 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16vec2 m() { + t = 1.0hf; + return f16vec2(t); +} +void f() { + vec2 v = vec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/f32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/f32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..3ab4c8d99be 100644 --- a/test/tint/expressions/type_conv/vec2/function/f32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/f32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +vec2 m() { + t = 1.0f; + return vec2(t); +} +void f() { + bvec2 v = bvec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..43ea8572f55 100644 --- a/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +vec2 m() { + t = 1.0f; + return vec2(t); +} +void f() { + f16vec2 v = f16vec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/i32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/i32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..aef278024c2 100644 --- a/test/tint/expressions/type_conv/vec2/function/i32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/i32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec2 m() { + t = 1; + return ivec2(t); +} +void f() { + bvec2 v = bvec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..c6654b8a10b 100644 --- a/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec2 m() { + t = 1; + return ivec2(t); +} +void f() { + f16vec2 v = f16vec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/i32-f32.wgsl.expected.ir.glsl index d4bb1c94be9..44d67f61420 100644 --- a/test/tint/expressions/type_conv/vec2/function/i32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/i32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec2 m() { + t = 1; + return ivec2(t); +} +void f() { + vec2 v = vec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/i32-u32.wgsl.expected.ir.glsl index d4bb1c94be9..af982aa4779 100644 --- a/test/tint/expressions/type_conv/vec2/function/i32-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/i32-u32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec2 m() { + t = 1; + return ivec2(t); +} +void f() { + uvec2 v = uvec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/u32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/u32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..e806b7348ae 100644 --- a/test/tint/expressions/type_conv/vec2/function/u32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/u32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec2 m() { + t = 1u; + return uvec2(t); +} +void f() { + bvec2 v = bvec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..0dc343c396c 100644 --- a/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec2 m() { + t = 1u; + return uvec2(t); +} +void f() { + f16vec2 v = f16vec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/u32-f32.wgsl.expected.ir.glsl index d4bb1c94be9..f862108947b 100644 --- a/test/tint/expressions/type_conv/vec2/function/u32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/u32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec2 m() { + t = 1u; + return uvec2(t); +} +void f() { + vec2 v = vec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/function/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/function/u32-i32.wgsl.expected.ir.glsl index d4bb1c94be9..2f2db210d5c 100644 --- a/test/tint/expressions/type_conv/vec2/function/u32-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/function/u32-i32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec2 m() { + t = 1u; + return uvec2(t); +} +void f() { + ivec2 v = ivec2(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.ir.glsl index 69f590c89a7..462a8f4f822 100644 --- a/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec2 u = bvec2(true); +void f() { + f16vec2 v = f16vec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/bool-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/bool-f32.wgsl.expected.ir.glsl index 69f590c89a7..1390b9c2435 100644 --- a/test/tint/expressions/type_conv/vec2/var/bool-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/bool-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec2 u = bvec2(true); +void f() { + vec2 v = vec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/bool-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/bool-i32.wgsl.expected.ir.glsl index 69f590c89a7..0c1bc1b1594 100644 --- a/test/tint/expressions/type_conv/vec2/var/bool-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/bool-i32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec2 u = bvec2(true); +void f() { + ivec2 v = ivec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/bool-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/bool-u32.wgsl.expected.ir.glsl index 69f590c89a7..2d65224a6aa 100644 --- a/test/tint/expressions/type_conv/vec2/var/bool-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/bool-u32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec2 u = bvec2(true); +void f() { + uvec2 v = uvec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.ir.glsl index 69f590c89a7..dcf1411d7ea 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16vec2 u = f16vec2(1.0hf); +void f() { + bvec2 v = bvec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..0d3e1a30fd9 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16vec2 u = f16vec2(1.0hf); +void f() { + vec2 v = vec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/f32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/f32-bool.wgsl.expected.ir.glsl index 69f590c89a7..1e0e42603ff 100644 --- a/test/tint/expressions/type_conv/vec2/var/f32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/f32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +vec2 u = vec2(1.0f); +void f() { + bvec2 v = bvec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..d61ffacb98c 100644 --- a/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +vec2 u = vec2(1.0f); +void f() { + f16vec2 v = f16vec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/i32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/i32-bool.wgsl.expected.ir.glsl index 69f590c89a7..b24713739c1 100644 --- a/test/tint/expressions/type_conv/vec2/var/i32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/i32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec2 u = ivec2(1); +void f() { + bvec2 v = bvec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.ir.glsl index 69f590c89a7..2b147310d21 100644 --- a/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec2 u = ivec2(1); +void f() { + f16vec2 v = f16vec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/i32-f32.wgsl.expected.ir.glsl index 69f590c89a7..0d1a153ab58 100644 --- a/test/tint/expressions/type_conv/vec2/var/i32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/i32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec2 u = ivec2(1); +void f() { + vec2 v = vec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/i32-u32.wgsl.expected.ir.glsl index 69f590c89a7..f6d24c5cc7f 100644 --- a/test/tint/expressions/type_conv/vec2/var/i32-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/i32-u32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec2 u = ivec2(1); +void f() { + uvec2 v = uvec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/u32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/u32-bool.wgsl.expected.ir.glsl index 69f590c89a7..809e58a87df 100644 --- a/test/tint/expressions/type_conv/vec2/var/u32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/u32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec2 u = uvec2(1u); +void f() { + bvec2 v = bvec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.ir.glsl index 69f590c89a7..8f128f751eb 100644 --- a/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec2 u = uvec2(1u); +void f() { + f16vec2 v = f16vec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/u32-f32.wgsl.expected.ir.glsl index 69f590c89a7..7541dbf57ce 100644 --- a/test/tint/expressions/type_conv/vec2/var/u32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/u32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec2 u = uvec2(1u); +void f() { + vec2 v = vec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec2/var/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec2/var/u32-i32.wgsl.expected.ir.glsl index 69f590c89a7..df7cc8ff571 100644 --- a/test/tint/expressions/type_conv/vec2/var/u32-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec2/var/u32-i32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec2 u = uvec2(1u); +void f() { + ivec2 v = ivec2(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.ir.glsl index d4bb1c94be9..7ca7d536033 100644 --- a/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec3 m() { + t = true; + return bvec3(t); +} +void f() { + f16vec3 v = f16vec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/bool-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/bool-f32.wgsl.expected.ir.glsl index d4bb1c94be9..b873346c461 100644 --- a/test/tint/expressions/type_conv/vec3/function/bool-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/bool-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec3 m() { + t = true; + return bvec3(t); +} +void f() { + vec3 v = vec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/bool-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/bool-i32.wgsl.expected.ir.glsl index d4bb1c94be9..ded146cbf0d 100644 --- a/test/tint/expressions/type_conv/vec3/function/bool-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/bool-i32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec3 m() { + t = true; + return bvec3(t); +} +void f() { + ivec3 v = ivec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/bool-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/bool-u32.wgsl.expected.ir.glsl index d4bb1c94be9..e5d5ef9b180 100644 --- a/test/tint/expressions/type_conv/vec3/function/bool-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/bool-u32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec3 m() { + t = true; + return bvec3(t); +} +void f() { + uvec3 v = uvec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.ir.glsl index d4bb1c94be9..cad781372c3 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16vec3 m() { + t = 1.0hf; + return f16vec3(t); +} +void f() { + bvec3 v = bvec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..6e82070f325 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16vec3 m() { + t = 1.0hf; + return f16vec3(t); +} +void f() { + vec3 v = vec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/f32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/f32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..78e10a3762a 100644 --- a/test/tint/expressions/type_conv/vec3/function/f32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/f32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +vec3 m() { + t = 1.0f; + return vec3(t); +} +void f() { + bvec3 v = bvec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..4e78ff95df5 100644 --- a/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +vec3 m() { + t = 1.0f; + return vec3(t); +} +void f() { + f16vec3 v = f16vec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/i32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/i32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..712977b2875 100644 --- a/test/tint/expressions/type_conv/vec3/function/i32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/i32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec3 m() { + t = 1; + return ivec3(t); +} +void f() { + bvec3 v = bvec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..a6842114cbb 100644 --- a/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec3 m() { + t = 1; + return ivec3(t); +} +void f() { + f16vec3 v = f16vec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/i32-f32.wgsl.expected.ir.glsl index d4bb1c94be9..dd711007021 100644 --- a/test/tint/expressions/type_conv/vec3/function/i32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/i32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec3 m() { + t = 1; + return ivec3(t); +} +void f() { + vec3 v = vec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/i32-u32.wgsl.expected.ir.glsl index d4bb1c94be9..022be187a63 100644 --- a/test/tint/expressions/type_conv/vec3/function/i32-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/i32-u32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec3 m() { + t = 1; + return ivec3(t); +} +void f() { + uvec3 v = uvec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/u32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/u32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..dd8ad75609c 100644 --- a/test/tint/expressions/type_conv/vec3/function/u32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/u32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec3 m() { + t = 1u; + return uvec3(t); +} +void f() { + bvec3 v = bvec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..72f250e03bd 100644 --- a/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec3 m() { + t = 1u; + return uvec3(t); +} +void f() { + f16vec3 v = f16vec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/u32-f32.wgsl.expected.ir.glsl index d4bb1c94be9..3fac6fa936c 100644 --- a/test/tint/expressions/type_conv/vec3/function/u32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/u32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec3 m() { + t = 1u; + return uvec3(t); +} +void f() { + vec3 v = vec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/function/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/function/u32-i32.wgsl.expected.ir.glsl index d4bb1c94be9..947df6308a1 100644 --- a/test/tint/expressions/type_conv/vec3/function/u32-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/function/u32-i32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec3 m() { + t = 1u; + return uvec3(t); +} +void f() { + ivec3 v = ivec3(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.ir.glsl index 69f590c89a7..edd6be12b65 100644 --- a/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec3 u = bvec3(true); +void f() { + f16vec3 v = f16vec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/bool-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/bool-f32.wgsl.expected.ir.glsl index 69f590c89a7..091097d1026 100644 --- a/test/tint/expressions/type_conv/vec3/var/bool-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/bool-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec3 u = bvec3(true); +void f() { + vec3 v = vec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/bool-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/bool-i32.wgsl.expected.ir.glsl index 69f590c89a7..be9a88ff1a8 100644 --- a/test/tint/expressions/type_conv/vec3/var/bool-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/bool-i32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec3 u = bvec3(true); +void f() { + ivec3 v = ivec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/bool-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/bool-u32.wgsl.expected.ir.glsl index 69f590c89a7..f4922dacad4 100644 --- a/test/tint/expressions/type_conv/vec3/var/bool-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/bool-u32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec3 u = bvec3(true); +void f() { + uvec3 v = uvec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.ir.glsl index 69f590c89a7..02020272dad 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16vec3 u = f16vec3(1.0hf); +void f() { + bvec3 v = bvec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..b34571dab9e 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16vec3 u = f16vec3(1.0hf); +void f() { + vec3 v = vec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/f32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/f32-bool.wgsl.expected.ir.glsl index 69f590c89a7..040ebde1946 100644 --- a/test/tint/expressions/type_conv/vec3/var/f32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/f32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +vec3 u = vec3(1.0f); +void f() { + bvec3 v = bvec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..5f9217204ed 100644 --- a/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +vec3 u = vec3(1.0f); +void f() { + f16vec3 v = f16vec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/i32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/i32-bool.wgsl.expected.ir.glsl index 69f590c89a7..7cc00c54a13 100644 --- a/test/tint/expressions/type_conv/vec3/var/i32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/i32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec3 u = ivec3(1); +void f() { + bvec3 v = bvec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.ir.glsl index 69f590c89a7..8c4bb969896 100644 --- a/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec3 u = ivec3(1); +void f() { + f16vec3 v = f16vec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/i32-f32.wgsl.expected.ir.glsl index 69f590c89a7..2d7bb7d3f4f 100644 --- a/test/tint/expressions/type_conv/vec3/var/i32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/i32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec3 u = ivec3(1); +void f() { + vec3 v = vec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/i32-u32.wgsl.expected.ir.glsl index 69f590c89a7..26b4322fe51 100644 --- a/test/tint/expressions/type_conv/vec3/var/i32-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/i32-u32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec3 u = ivec3(1); +void f() { + uvec3 v = uvec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/u32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/u32-bool.wgsl.expected.ir.glsl index 69f590c89a7..5af0a652022 100644 --- a/test/tint/expressions/type_conv/vec3/var/u32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/u32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec3 u = uvec3(1u); +void f() { + bvec3 v = bvec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.ir.glsl index 69f590c89a7..82d9039ffd4 100644 --- a/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec3 u = uvec3(1u); +void f() { + f16vec3 v = f16vec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/u32-f32.wgsl.expected.ir.glsl index 69f590c89a7..b1889dab0f1 100644 --- a/test/tint/expressions/type_conv/vec3/var/u32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/u32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec3 u = uvec3(1u); +void f() { + vec3 v = vec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec3/var/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec3/var/u32-i32.wgsl.expected.ir.glsl index 69f590c89a7..dceb20a1601 100644 --- a/test/tint/expressions/type_conv/vec3/var/u32-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec3/var/u32-i32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec3 u = uvec3(1u); +void f() { + ivec3 v = ivec3(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.ir.glsl index d4bb1c94be9..17e9ac7e8d0 100644 --- a/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec4 m() { + t = true; + return bvec4(t); +} +void f() { + f16vec4 v = f16vec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/bool-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/bool-f32.wgsl.expected.ir.glsl index d4bb1c94be9..101fb9ca9b4 100644 --- a/test/tint/expressions/type_conv/vec4/function/bool-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/bool-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec4 m() { + t = true; + return bvec4(t); +} +void f() { + vec4 v = vec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/bool-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/bool-i32.wgsl.expected.ir.glsl index d4bb1c94be9..29482879395 100644 --- a/test/tint/expressions/type_conv/vec4/function/bool-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/bool-i32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec4 m() { + t = true; + return bvec4(t); +} +void f() { + ivec4 v = ivec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/bool-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/bool-u32.wgsl.expected.ir.glsl index d4bb1c94be9..2f12ab21a6c 100644 --- a/test/tint/expressions/type_conv/vec4/function/bool-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/bool-u32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bool t = false; +bvec4 m() { + t = true; + return bvec4(t); +} +void f() { + uvec4 v = uvec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.ir.glsl index d4bb1c94be9..f4bbefecf16 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16vec4 m() { + t = 1.0hf; + return f16vec4(t); +} +void f() { + bvec4 v = bvec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.ir.glsl index d4bb1c94be9..f6dcf3b3cdd 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float16_t t = 0.0hf; +f16vec4 m() { + t = 1.0hf; + return f16vec4(t); +} +void f() { + vec4 v = vec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/f32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/f32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..1fa784be7c6 100644 --- a/test/tint/expressions/type_conv/vec4/function/f32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/f32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +vec4 m() { + t = 1.0f; + return vec4(t); +} +void f() { + bvec4 v = bvec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..51fd214bf8f 100644 --- a/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +float t = 0.0f; +vec4 m() { + t = 1.0f; + return vec4(t); +} +void f() { + f16vec4 v = f16vec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/i32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/i32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..2d6857fa97e 100644 --- a/test/tint/expressions/type_conv/vec4/function/i32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/i32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec4 m() { + t = 1; + return ivec4(t); +} +void f() { + bvec4 v = bvec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..9056d015f0a 100644 --- a/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec4 m() { + t = 1; + return ivec4(t); +} +void f() { + f16vec4 v = f16vec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/i32-f32.wgsl.expected.ir.glsl index d4bb1c94be9..2d416c977e9 100644 --- a/test/tint/expressions/type_conv/vec4/function/i32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/i32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec4 m() { + t = 1; + return ivec4(t); +} +void f() { + vec4 v = vec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/i32-u32.wgsl.expected.ir.glsl index d4bb1c94be9..5b6a1c45f95 100644 --- a/test/tint/expressions/type_conv/vec4/function/i32-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/i32-u32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +int t = 0; +ivec4 m() { + t = 1; + return ivec4(t); +} +void f() { + uvec4 v = uvec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/u32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/u32-bool.wgsl.expected.ir.glsl index d4bb1c94be9..e25d4eba1b1 100644 --- a/test/tint/expressions/type_conv/vec4/function/u32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/u32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec4 m() { + t = 1u; + return uvec4(t); +} +void f() { + bvec4 v = bvec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.ir.glsl index d4bb1c94be9..d8d10539821 100644 --- a/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec4 m() { + t = 1u; + return uvec4(t); +} +void f() { + f16vec4 v = f16vec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/u32-f32.wgsl.expected.ir.glsl index d4bb1c94be9..34a096e0d3d 100644 --- a/test/tint/expressions/type_conv/vec4/function/u32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/u32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec4 m() { + t = 1u; + return uvec4(t); +} +void f() { + vec4 v = vec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/function/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/function/u32-i32.wgsl.expected.ir.glsl index d4bb1c94be9..4a24a580e00 100644 --- a/test/tint/expressions/type_conv/vec4/function/u32-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/function/u32-i32.wgsl.expected.ir.glsl @@ -1,11 +1,13 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uint t = 0u; +uvec4 m() { + t = 1u; + return uvec4(t); +} +void f() { + ivec4 v = ivec4(m()); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.ir.glsl index 69f590c89a7..758ecce3c7e 100644 --- a/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec4 u = bvec4(true); +void f() { + f16vec4 v = f16vec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/bool-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/bool-f32.wgsl.expected.ir.glsl index 69f590c89a7..8c1fb88eaea 100644 --- a/test/tint/expressions/type_conv/vec4/var/bool-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/bool-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec4 u = bvec4(true); +void f() { + vec4 v = vec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/bool-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/bool-i32.wgsl.expected.ir.glsl index 69f590c89a7..76bee90d13a 100644 --- a/test/tint/expressions/type_conv/vec4/var/bool-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/bool-i32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec4 u = bvec4(true); +void f() { + ivec4 v = ivec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/bool-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/bool-u32.wgsl.expected.ir.glsl index 69f590c89a7..40ec9c5b1a6 100644 --- a/test/tint/expressions/type_conv/vec4/var/bool-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/bool-u32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +bvec4 u = bvec4(true); +void f() { + uvec4 v = uvec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.ir.glsl index 69f590c89a7..385b60ddda0 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16vec4 u = f16vec4(1.0hf); +void f() { + bvec4 v = bvec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.ir.glsl index 69f590c89a7..a97df6a24db 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +f16vec4 u = f16vec4(1.0hf); +void f() { + vec4 v = vec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/f32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/f32-bool.wgsl.expected.ir.glsl index 69f590c89a7..1e668317ae0 100644 --- a/test/tint/expressions/type_conv/vec4/var/f32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/f32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +vec4 u = vec4(1.0f); +void f() { + bvec4 v = bvec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.ir.glsl index 69f590c89a7..218ef23b2a5 100644 --- a/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +vec4 u = vec4(1.0f); +void f() { + f16vec4 v = f16vec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/i32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/i32-bool.wgsl.expected.ir.glsl index 69f590c89a7..b28b58cd630 100644 --- a/test/tint/expressions/type_conv/vec4/var/i32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/i32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec4 u = ivec4(1); +void f() { + bvec4 v = bvec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.ir.glsl index 69f590c89a7..d923c7695ce 100644 --- a/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec4 u = ivec4(1); +void f() { + f16vec4 v = f16vec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/i32-f32.wgsl.expected.ir.glsl index 69f590c89a7..33b616e31c3 100644 --- a/test/tint/expressions/type_conv/vec4/var/i32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/i32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec4 u = ivec4(1); +void f() { + vec4 v = vec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/i32-u32.wgsl.expected.ir.glsl index 69f590c89a7..eae2e51455d 100644 --- a/test/tint/expressions/type_conv/vec4/var/i32-u32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/i32-u32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +ivec4 u = ivec4(1); +void f() { + uvec4 v = uvec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/u32-bool.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/u32-bool.wgsl.expected.ir.glsl index 69f590c89a7..c52fb120278 100644 --- a/test/tint/expressions/type_conv/vec4/var/u32-bool.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/u32-bool.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec4 u = uvec4(1u); +void f() { + bvec4 v = bvec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.ir.glsl index 69f590c89a7..e4877e2cde1 100644 --- a/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es +#extension GL_AMD_gpu_shader_half_float: require -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec4 u = uvec4(1u); +void f() { + f16vec4 v = f16vec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/u32-f32.wgsl.expected.ir.glsl index 69f590c89a7..e304c8c23d3 100644 --- a/test/tint/expressions/type_conv/vec4/var/u32-f32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/u32-f32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec4 u = uvec4(1u); +void f() { + vec4 v = vec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/expressions/type_conv/vec4/var/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/type_conv/vec4/var/u32-i32.wgsl.expected.ir.glsl index 69f590c89a7..b2adca3c420 100644 --- a/test/tint/expressions/type_conv/vec4/var/u32-i32.wgsl.expected.ir.glsl +++ b/test/tint/expressions/type_conv/vec4/var/u32-i32.wgsl.expected.ir.glsl @@ -1,11 +1,9 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uvec4 u = uvec4(1u); +void f() { + ivec4 v = ivec4(u); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { +} diff --git a/test/tint/ptr_ref/load/param/storage/struct_in_array.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/param/storage/struct_in_array.wgsl.expected.ir.glsl index 72ca17c386c..6d6d9141aef 100644 --- a/test/tint/ptr_ref/load/param/storage/struct_in_array.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/load/param/storage/struct_in_array.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Load -******************************************************************** -* 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. * -******************************************************************** +struct str { + int i; +}; -tint executable returned error: signal: illegal instruction +str S[4]; +str func(uint pointer_indices[1]) { + return S[pointer_indices[0u]]; +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + str r = func(uint[1](uint(2))); +} diff --git a/test/tint/ptr_ref/load/param/storage/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/param/storage/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl index 72ca17c386c..5ebd6e413b9 100644 --- a/test/tint/ptr_ref/load/param/storage/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/load/param/storage/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Load -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat2 S; +vec2 func(uint pointer_indices[1]) { + return S[pointer_indices[0u]]; +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + vec2 r = func(uint[1](uint(1))); +} diff --git a/test/tint/ptr_ref/load/param/storage/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/param/storage/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl index 72ca17c386c..50c8d46fc45 100644 --- a/test/tint/ptr_ref/load/param/storage/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/load/param/storage/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Load -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat2x4 S; +vec4 func(uint pointer_indices[1]) { + return S[pointer_indices[0u]]; +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + vec4 r = func(uint[1](uint(1))); +} diff --git a/test/tint/ptr_ref/load/param/uniform/struct_in_array.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/param/uniform/struct_in_array.wgsl.expected.ir.glsl index 72ca17c386c..41dcb3b473c 100644 --- a/test/tint/ptr_ref/load/param/uniform/struct_in_array.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/load/param/uniform/struct_in_array.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Load -******************************************************************** -* 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. * -******************************************************************** +struct str { + ivec4 i; +}; -tint executable returned error: signal: illegal instruction +uniform str S[4]; +str func(uint pointer_indices[1]) { + return S[pointer_indices[0u]]; +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + str r = func(uint[1](uint(2))); +} diff --git a/test/tint/ptr_ref/load/param/uniform/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/param/uniform/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl index 72ca17c386c..3212ee8e84a 100644 --- a/test/tint/ptr_ref/load/param/uniform/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/load/param/uniform/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Load -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uniform mat2 S; +vec2 func(uint pointer_indices[1]) { + return S[pointer_indices[0u]]; +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + vec2 r = func(uint[1](uint(1))); +} diff --git a/test/tint/ptr_ref/load/param/uniform/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/param/uniform/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl index 72ca17c386c..fddded81c1c 100644 --- a/test/tint/ptr_ref/load/param/uniform/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/load/param/uniform/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Load -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +uniform mat2x4 S; +vec4 func(uint pointer_indices[1]) { + return S[pointer_indices[0u]]; +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + vec4 r = func(uint[1](uint(1))); +} diff --git a/test/tint/ptr_ref/store/param/storage/struct_in_array.wgsl.expected.ir.glsl b/test/tint/ptr_ref/store/param/storage/struct_in_array.wgsl.expected.ir.glsl index d4bb1c94be9..87039fcc01c 100644 --- a/test/tint/ptr_ref/store/param/storage/struct_in_array.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/store/param/storage/struct_in_array.wgsl.expected.ir.glsl @@ -1,11 +1,14 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** +struct str { + int i; +}; -tint executable returned error: signal: illegal instruction +str S[4]; +void func(uint pointer_indices[1]) { + S[pointer_indices[0u]] = str(0); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + func(uint[1](uint(2))); +} diff --git a/test/tint/ptr_ref/store/param/storage/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl b/test/tint/ptr_ref/store/param/storage/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl index d4bb1c94be9..94af5a16c82 100644 --- a/test/tint/ptr_ref/store/param/storage/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/store/param/storage/vec2_f32_in_mat2x2.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat2 S; +void func(uint pointer_indices[1]) { + S[pointer_indices[0u]] = vec2(0.0f); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + func(uint[1](uint(1))); +} diff --git a/test/tint/ptr_ref/store/param/storage/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl b/test/tint/ptr_ref/store/param/storage/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl index d4bb1c94be9..29a220e12dd 100644 --- a/test/tint/ptr_ref/store/param/storage/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl +++ b/test/tint/ptr_ref/store/param/storage/vec4_f32_in_mat2x4.wgsl.expected.ir.glsl @@ -1,11 +1,10 @@ -SKIP: FAILED +#version 310 es -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Store -******************************************************************** -* 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. * -******************************************************************** - -tint executable returned error: signal: illegal instruction +mat2x4 S; +void func(uint pointer_indices[1]) { + S[pointer_indices[0u]] = vec4(0.0f); +} +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; +void main() { + func(uint[1](uint(1))); +} diff --git a/test/tint/statements/discard/multiple_returns.wgsl.expected.ir.glsl b/test/tint/statements/discard/multiple_returns.wgsl.expected.ir.glsl index e1168e3e2a7..eae44cd4499 100644 --- a/test/tint/statements/discard/multiple_returns.wgsl.expected.ir.glsl +++ b/test/tint/statements/discard/multiple_returns.wgsl.expected.ir.glsl @@ -1,11 +1,47 @@ -SKIP: FAILED +#version 310 es +precision highp float; +precision highp int; -/src/tint/lang/glsl/writer/printer/printer.cc:252 internal compiler error: Switch() matched no cases. Type: tint::core::ir::If -******************************************************************** -* 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. * -******************************************************************** -tint executable returned error: signal: illegal instruction +int non_uniform_global; +float tint_symbol; +bool continue_execution = true; +void main() { + if ((non_uniform_global < 0)) { + continue_execution = false; + } + float v = dFdx(1.0f); + if (continue_execution) { + tint_symbol = v; + } + if ((tint_symbol < 0.0f)) { + int i = 0; + { + while(true) { + float v_1 = tint_symbol; + if ((v_1 > float(i))) { + float v_2 = float(i); + if (continue_execution) { + tint_symbol = v_2; + } + if (!(continue_execution)) { + discard; + } + return; + } + { + i = (i + 1); + if ((i == 5)) { break; } + } + continue; + } + } + if (!(continue_execution)) { + discard; + } + return; + } + if (!(continue_execution)) { + discard; + } +} diff --git a/test/tint/unicode/identifiers.wgsl.expected.ir.glsl b/test/tint/unicode/identifiers.wgsl.expected.ir.glsl index 69f590c89a7..06b4ca71240 100644 --- a/test/tint/unicode/identifiers.wgsl.expected.ir.glsl +++ b/test/tint/unicode/identifiers.wgsl.expected.ir.glsl @@ -1,11 +1,12 @@ -SKIP: FAILED +#version 310 es +precision highp float; +precision highp int; -/src/tint/lang/glsl/writer/printer/printer.cc:482 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Convert -******************************************************************** -* 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. * -******************************************************************** -tint executable returned error: signal: illegal instruction +float tint_symbol_2(int tint_symbol_3) { + return float(tint_symbol_3); +} +void main() { + int tint_symbol_5 = 0; + float tint_symbol_6 = tint_symbol_2(tint_symbol_5); +}