blob: a6a47b6d8d6bd9581d09bc4cebf9316f4d17bbf1 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:1257 internal compiler error: main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void {
$B2: {
%j:ptr<function, i32, read_write> = var
%a:ptr<function, f32, read_write> = var
store %j, 0i
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
%5:i32 = load %j
%6:bool = lt %5, 2i
if %6 [t: $B5, f: $B6] { # if_1
$B5: { # true
exit_if # if_1
}
$B6: { # false
exit_loop # loop_1
}
}
%7:i32 = load %j
%8:bool = lt %7, 1i
if %8 [t: $B7] { # if_2
$B7: { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_2
}
}
%9:i32 = load %j
%10:bool = neq %9, 3i
if %10 [t: $B8] { # if_3
$B8: { # true
%11:i32 = load %j
%12:bool = neq %11, 4i
if %12 [t: $B9] { # if_4
$B9: { # true
%13:i32 = load %j
%14:bool = eq %13, 5i
if %14 [t: $B10, f: $B11] { # if_5
$B10: { # true
store_vector_element %x_GLF_color, 0u, 4.0f
exit_if # if_5
}
$B11: { # false
store %a, 4.0f
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_5
}
}
exit_if # if_4
}
}
exit_if # if_3
}
}
continue # -> $B4
}
$B4: { # continuing
%15:i32 = load %j
%16:i32 = add %15, 1i
store %j, %16
next_iteration # -> $B3
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B12: {
%18:void = call %main_1
%19:vec4<f32> = load %x_GLF_color
%20:main_out = construct %19
ret %20
}
}
invalid entry point IO struct uses
********************************************************************
* 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. *
********************************************************************