blob: 9a115aead1646e20c4c9b3cece951b816e64ba3c [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) {
fourtytwo: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
}
%main_1 = func():void {
$B2: {
%x_36:ptr<function, bool, read_write> = var
%x_37:ptr<function, bool, read_write> = var
%6:ptr<uniform, f32, read> = access %x_5, 0u
%7:f32 = load %6
%8:ptr<uniform, f32, read> = access %x_5, 0u
%9:f32 = load %8
%10:f32 = clamp 1.0f, %7, %9
%11:bool = gt %10, 42.0f
%x_27:bool = let %11
store %x_37, %x_27
%13:bool = eq %x_27, false
if %13 [t: $B3] { # if_1
$B3: { # true
%14:ptr<uniform, f32, read> = access %x_5, 0u
%15:f32 = load %14
%16:ptr<uniform, f32, read> = access %x_5, 0u
%17:f32 = load %16
%18:f32 = clamp 1.0f, %15, %17
%19:bool = lt %18, 42.0f
store %x_36, %19
%20:bool = load %x_36
store %x_37, %20
exit_if # if_1
}
}
%21:bool = load %x_37
if %21 [t: $B4, f: $B5] { # if_2
$B4: { # true
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_2
}
$B5: { # false
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_2
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B6: {
%23:void = call %main_1
%24:vec4<f32> = load %x_GLF_color
%25:main_out = construct %24
ret %25
}
}
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. *
********************************************************************