blob: 9337e0595e742d1f20e2667ff9469c7c29bdaf27 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) {
one:i32 @offset(0)
}
S = struct @align(4) {
arr:array<i32, 2> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_9:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%func_struct_S_i1_2_1_i1_ = func(%s:ptr<function, S, read_write>, %x:ptr<function, i32, read_write>):i32 {
$B2: {
%6:i32 = load %x
%x_16:i32 = let %6
%8:ptr<function, i32, read_write> = access %s, 0u, 1i
%9:i32 = add %x_16, 1i
store %8, %9
%10:ptr<uniform, i32, read> = access %x_9, 0u
%11:i32 = load %10
%x_18:i32 = let %11
%13:ptr<function, i32, read_write> = access %s, 0u, %x_18
%14:i32 = load %13
%x_19:i32 = let %14
%16:i32 = load %x
%x_20:i32 = let %16
%18:bool = eq %x_19, %x_20
if %18 [t: $B3] { # if_1
$B3: { # true
ret -1i
}
}
%19:i32 = load %x
%x_21:i32 = let %19
ret %x_21
}
}
%main_1 = func():void {
$B4: {
%a:ptr<function, i32, read_write> = var
%i:ptr<function, i32, read_write> = var
%j:ptr<function, i32, read_write> = var
%s_1:ptr<function, S, read_write> = var
%param:ptr<function, S, read_write> = var
%param_1:ptr<function, i32, read_write> = var
store %a, 0i
store %i, 0i
loop [b: $B5, c: $B6] { # loop_1
$B5: { # body
%28:i32 = load %i
%x_22:i32 = let %28
%30:ptr<uniform, i32, read> = access %x_9, 0u
%31:i32 = load %30
%x_23:i32 = let %31
%33:i32 = add 2i, %x_23
%34:bool = lt %x_22, %33
if %34 [t: $B7, f: $B8] { # if_2
$B7: { # true
exit_if # if_2
}
$B8: { # false
exit_loop # loop_1
}
}
store %j, 0i
loop [b: $B9, c: $B10] { # loop_2
$B9: { # body
%35:i32 = load %j
%x_25:i32 = let %35
%37:ptr<uniform, i32, read> = access %x_9, 0u
%38:i32 = load %37
%x_26:i32 = let %38
%40:i32 = add 3i, %x_26
%41:bool = lt %x_25, %40
if %41 [t: $B11, f: $B12] { # if_3
$B11: { # true
exit_if # if_3
}
$B12: { # false
exit_loop # loop_2
}
}
%42:i32 = load %i
%x_28:i32 = let %42
%44:i32 = load %j
%x_29:i32 = let %44
%46:S = load %s_1
%x_79:S = let %46
store %param, %x_79
%48:i32 = add %x_28, %x_29
store %param_1, %48
%49:i32 = call %func_struct_S_i1_2_1_i1_, %param, %param_1
%x_31:i32 = let %49
%51:i32 = load %a
%x_32:i32 = let %51
%53:i32 = add %x_32, %x_31
store %a, %53
continue # -> $B10
}
$B10: { # continuing
%54:i32 = load %j
%x_34:i32 = let %54
%56:i32 = add %x_34, 1i
store %j, %56
next_iteration # -> $B9
}
}
continue # -> $B6
}
$B6: { # continuing
%57:i32 = load %i
%x_36:i32 = let %57
%59:i32 = add %x_36, 1i
store %i, %59
next_iteration # -> $B5
}
}
%60:i32 = load %a
%x_38:i32 = let %60
%62:bool = eq %x_38, 30i
if %62 [t: $B13, f: $B14] { # if_4
$B13: { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_4
}
$B14: { # false
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_4
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B15: {
%64:void = call %main_1
%65:vec4<f32> = load %x_GLF_color
%66:main_out = construct %65
ret %66
}
}
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. *
********************************************************************