blob: de6f3ece21336f46084c5c4ef4bc4ab4a906f47b [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_phi:ptr<function, bool, read_write> = var
%6:ptr<uniform, f32, read> = access %x_5, 0u
%7:f32 = load %6
%x_23:f32 = let %7
%9:ptr<uniform, f32, read> = access %x_5, 0u
%10:f32 = load %9
%x_25:f32 = let %10
%12:f32 = clamp 1.0f, %x_23, %x_25
%13:bool = gt %12, 42.0f
%x_27:bool = let %13
store %x_37_phi, %x_27
%15:bool = eq %x_27, false
if %15 [t: $B3] { # if_1
$B3: { # true
%16:ptr<uniform, f32, read> = access %x_5, 0u
%17:f32 = load %16
%x_32:f32 = let %17
%19:ptr<uniform, f32, read> = access %x_5, 0u
%20:f32 = load %19
%x_34:f32 = let %20
%22:f32 = clamp 1.0f, %x_32, %x_34
%23:bool = lt %22, 42.0f
store %x_36, %23
%24:bool = load %x_36
store %x_37_phi, %24
exit_if # if_1
}
}
%25:bool = load %x_37_phi
%x_37:bool = let %25
if %x_37 [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: {
%28:void = call %main_1
%29:vec4<f32> = load %x_GLF_color
%30:main_out = construct %29
ret %30
}
}
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. *
********************************************************************