| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) { |
| zero:i32 @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 |
| %continue_execution:ptr<private, bool, read_write> = var, true |
| } |
| |
| %func_i1_ = func(%x:ptr<function, i32, read_write>):i32 { |
| $B2: { |
| %6:i32 = load %x |
| %x_45:i32 = let %6 |
| %8:bool = eq %x_45, 10i |
| if %8 [t: $B3] { # if_1 |
| $B3: { # true |
| store %continue_execution, false |
| exit_if # if_1 |
| } |
| } |
| %9:i32 = load %x |
| %x_49:i32 = let %9 |
| ret %x_49 |
| } |
| } |
| %main_1 = func():void { |
| $B4: { |
| %a:ptr<function, i32, read_write> = var |
| %b:ptr<function, i32, read_write> = var |
| %param:ptr<function, i32, read_write> = var |
| %x_37:ptr<function, i32, read_write> = var |
| %x_35_phi:ptr<function, i32, read_write> = var |
| store %a, 0i |
| %17:ptr<uniform, i32, read> = access %x_9, 0u |
| %18:i32 = load %17 |
| %x_33:i32 = let %18 |
| store %b, %x_33 |
| store %x_35_phi, %x_33 |
| loop [b: $B5, c: $B6] { # loop_1 |
| $B5: { # body |
| %20:i32 = load %x_35_phi |
| %x_35:i32 = let %20 |
| store %param, %x_35 |
| %22:i32 = call %func_i1_, %param |
| store %x_37, %22 |
| %23:i32 = load %x_37 |
| store %a, %23 |
| %24:i32 = add %x_35, 1i |
| %x_36:i32 = let %24 |
| store %b, %x_36 |
| store %x_35_phi, %x_36 |
| %26:bool = lt %x_36, 4i |
| if %26 [t: $B7, f: $B8] { # if_2 |
| $B7: { # true |
| exit_if # if_2 |
| } |
| $B8: { # false |
| exit_loop # loop_1 |
| } |
| } |
| continue # -> $B6 |
| } |
| $B6: { # continuing |
| next_iteration # -> $B5 |
| } |
| } |
| %27:i32 = load %x_37 |
| %28:bool = eq %27, 3i |
| if %28 [t: $B9, f: $B10] { # if_3 |
| $B9: { # true |
| store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| exit_if # if_3 |
| } |
| $B10: { # false |
| store %x_GLF_color, vec4<f32>(0.0f) |
| exit_if # if_3 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out { |
| $B11: { |
| %30:void = call %main_1 |
| %31:vec4<f32> = load %x_GLF_color |
| %32:main_out = construct %31 |
| %33:bool = load %continue_execution |
| %34:bool = eq %33, false |
| if %34 [t: $B12] { # if_4 |
| $B12: { # true |
| terminate_invocation |
| } |
| } |
| ret %32 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |