blob: 832d90e458fbe0c5058d57f41f24fc71e4a87e37 [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
%x_40:f32 = let %5
%7:bool = lt %x_40, 0.0f
if %7 [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
%10:ptr<uniform, f32, read> = access %x_6, 0u
%11:f32 = load %10
%x_32:f32 = let %11
%13:i32 = call %tint_f32_to_i32, %x_32
switch %13 [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]
}
}
%15:i32 = call %merge_
%x_8:i32 = let %15
store %res, %x_8
%17:i32 = load %res
%x_9:i32 = let %17
%19:f32 = convert %x_9
%x_36:f32 = let %19
%21:vec4<f32> = construct %x_36, %x_36, %x_36, %x_36
store %x_GLF_color, %21
ret
}
}
%tint_symbol = @fragment func():main_out {
$B9: {
%23:void = call %main_1
%24:vec4<f32> = load %x_GLF_color
%25:main_out = construct %24
ret %25
}
}
%tint_f32_to_i32 = func(%value:f32):i32 {
$B10: {
%27:i32 = convert %value
%28:bool = gte %value, -2147483648.0f
%29:i32 = select -2147483648i, %27, %28
%30:bool = lte %value, 2147483520.0f
%31:i32 = select 2147483647i, %29, %30
ret %31
}
}
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. *
********************************************************************