blob: 4f8a581ca3d57ebdd9191081f3b454007544e073 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) {
zero:f32 @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%merge_ = func():i32 {
$B2: {
%4:ptr<uniform, f32, read> = access %x_6, 0u
%5:f32 = load %4
%6:bool = lt %5, 0.0f
if %6 [t: $B3] { # if_1
$B3: { # true
ret 0i
}
}
ret 0i
}
}
%main_1 = func():void {
$B4: {
%res:ptr<function, i32, read_write> = var
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
loop [b: $B5, c: $B6] { # loop_1
$B5: { # body
%9:ptr<uniform, f32, read> = access %x_6, 0u
%10:f32 = load %9
%x_32:f32 = let %10
%12:i32 = call %tint_f32_to_i32, %x_32
switch %12 [c: (0i, $B7), c: (default, $B8)] { # switch_1
$B7: { # case
ret
}
$B8: { # case
exit_switch # switch_1
}
}
continue # -> $B6
}
$B6: { # continuing
break_if true # -> [t: exit_loop loop_1, f: $B5]
}
}
%14:i32 = call %merge_
%x_8:i32 = let %14
store %res, %x_8
%16:i32 = load %res
%17:f32 = convert %16
%18:vec4<f32> = construct %17
store %x_GLF_color, %18
ret
}
}
%tint_symbol = @fragment func():main_out {
$B9: {
%20:void = call %main_1
%21:vec4<f32> = load %x_GLF_color
%22:main_out = construct %21
ret %22
}
}
%tint_f32_to_i32 = func(%value:f32):i32 {
$B10: {
%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. *
********************************************************************