blob: 4548ee85359737ada21fef8880713602d7310236 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(8) {
injectionSwitch:vec2<f32> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_5:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
%continue_execution:ptr<private, bool, read_write> = var, true
}
%main_1 = func():void {
$B2: {
%5:ptr<uniform, vec2<f32>, read> = access %x_5, 0u
%6:f32 = load_vector_element %5, 1u
%x_25:f32 = let %6
%8:i32 = call %tint_f32_to_i32, %x_25
switch %8 [c: (-1i, $B3), c: (default, $B4)] { # switch_1
$B3: { # case
%10:ptr<uniform, vec2<f32>, read> = access %x_5, 0u
%11:f32 = load_vector_element %10, 1u
%x_30:f32 = let %11
%13:ptr<uniform, vec2<f32>, read> = access %x_5, 0u
%14:f32 = load_vector_element %13, 0u
%x_32:f32 = let %14
%16:bool = gt %x_30, %x_32
if %16 [t: $B5] { # if_1
$B5: { # true
store %continue_execution, false
exit_if # if_1
}
}
exit_switch # switch_1
}
$B4: { # case
exit_switch # switch_1
}
}
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
ret
}
}
%tint_symbol = @fragment func():main_out {
$B6: {
%18:void = call %main_1
%19:vec4<f32> = load %x_GLF_color
%20:main_out = construct %19
%21:bool = load %continue_execution
%22:bool = eq %21, false
if %22 [t: $B7] { # if_2
$B7: { # true
terminate_invocation
}
}
ret %20
}
}
%tint_f32_to_i32 = func(%value:f32):i32 {
$B8: {
%24:i32 = convert %value
%25:bool = gte %value, -2147483648.0f
%26:i32 = select -2147483648i, %24, %25
%27:bool = lte %value, 2147483520.0f
%28:i32 = select 2147483647i, %26, %27
ret %28
}
}
unhandled variable address space
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
* Please help us fix this issue by submitting a bug report at *
* crbug.com/tint with the source program that triggered the bug. *
********************************************************************