blob: ee4cfae4b134218360d6c74a8bbd98f1d4ff8adf [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(8) {
injectionSwitch:vec2<f32> @offset(0)
}
S = struct @align(16) {
f0:i32 @offset(0)
f1:vec3<bool> @offset(16)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_7:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void {
$B2: {
%ll:ptr<function, S, read_write> = var
%sums:ptr<function, array<f32, 9>, read_write> = var
store %ll, S(0i, vec3<bool>(true))
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
%6:ptr<function, i32, read_write> = access %ll, 0u
%7:i32 = load %6
%8:i32 = let %7
%9:ptr<uniform, vec2<f32>, read> = access %x_7, 0u
%10:f32 = load_vector_element %9, 1u
%11:i32 = call %tint_f32_to_i32, %10
%13:bool = neq %8, %11
if %13 [t: $B5, f: $B6] { # if_1
$B5: { # true
exit_if # if_1
}
$B6: { # false
exit_loop # loop_1
}
}
%14:ptr<function, f32, read_write> = access %sums, 0i
store %14, 0.0f
continue # -> $B4
}
$B4: { # continuing
%15:S = load %ll
%x_13:S = let %15
%17:S = load %ll
%x_50:S = let %17
%x_51_1:ptr<function, S, read_write> = var, %x_50
%20:ptr<function, i32, read_write> = access %x_51_1, 0u
%21:i32 = access %x_13, 0u
%22:i32 = add %21, 1i
store %20, %22
%23:S = load %x_51_1
store %ll, %23
next_iteration # -> $B3
}
}
%24:ptr<function, f32, read_write> = access %sums, 0i
%25:f32 = load %24
%26:vec2<f32> = construct %25
%x_54:vec2<f32> = let %26
%28:f32 = access %x_54, 0u
%29:f32 = access %x_54, 1u
%30:vec4<f32> = construct 1.0f, %28, %29, 1.0f
store %x_GLF_color, %30
ret
}
}
%tint_symbol = @fragment func():main_out {
$B7: {
%32:void = call %main_1
%33:vec4<f32> = load %x_GLF_color
%34:main_out = construct %33
ret %34
}
}
%tint_f32_to_i32 = func(%value:f32):i32 {
$B8: {
%36:i32 = convert %value
%37:bool = gte %value, -2147483648.0f
%38:i32 = select -2147483648i, %36, %37
%39:bool = lte %value, 2147483520.0f
%40:i32 = select 2147483647i, %38, %39
ret %40
}
}
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. *
********************************************************************