| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:1257 internal compiler error: main_out = struct @align(16) { |
| x_GLF_color_1:vec4<f32> @offset(0), @location(0) |
| } |
| |
| $B1: { # root |
| %x_GLF_color:ptr<private, vec4<f32>, read_write> = var |
| } |
| |
| %func_ = func():vec3<f32> { |
| $B2: { |
| %v:ptr<function, vec2<f32>, read_write> = var |
| %i:ptr<function, i32, read_write> = var |
| %k:ptr<function, i32, read_write> = var |
| store %v, vec2<f32>(1.0f) |
| store %i, 0i |
| store %k, 0i |
| loop [b: $B3, c: $B4] { # loop_1 |
| $B3: { # body |
| %6:i32 = load %k |
| %x_79:i32 = let %6 |
| %8:bool = lt %x_79, 2i |
| if %8 [t: $B5, f: $B6] { # if_1 |
| $B5: { # true |
| exit_if # if_1 |
| } |
| $B6: { # false |
| exit_loop # loop_1 |
| } |
| } |
| %9:f32 = load_vector_element %v, 1u |
| %x_83:f32 = let %9 |
| %11:f32 = add %x_83, 1.0f |
| %12:bool = gt %11, 4.0f |
| if %12 [t: $B7] { # if_2 |
| $B7: { # true |
| exit_loop # loop_1 |
| } |
| } |
| store_vector_element %v, 1u, 1.0f |
| %13:i32 = load %i |
| %x_89:i32 = let %13 |
| %15:i32 = add %x_89, 1i |
| store %i, %15 |
| continue # -> $B4 |
| } |
| $B4: { # continuing |
| %16:i32 = load %k |
| %x_91:i32 = let %16 |
| %18:i32 = add %x_91, 1i |
| store %k, %18 |
| next_iteration # -> $B3 |
| } |
| } |
| %19:i32 = load %i |
| %x_93:i32 = let %19 |
| %21:bool = lt %x_93, 10i |
| if %21 [t: $B8, f: $B9] { # if_3 |
| $B8: { # true |
| ret vec3<f32>(1.0f, 0.0f, 0.0f) |
| } |
| $B9: { # false |
| ret vec3<f32>(0.0f, 0.0f, 1.0f) |
| } |
| } |
| unreachable |
| } |
| } |
| %main_1 = func():void { |
| $B10: { |
| %j:ptr<function, i32, read_write> = var |
| %data:ptr<function, array<vec3<f32>, 2>, read_write> = var |
| %j_1:ptr<function, i32, read_write> = var |
| store %j, 0i |
| loop [b: $B11, c: $B12] { # loop_2 |
| $B11: { # body |
| %26:i32 = load %j |
| %x_46:i32 = let %26 |
| %28:bool = lt %x_46, 1i |
| if %28 [t: $B13, f: $B14] { # if_4 |
| $B13: { # true |
| exit_if # if_4 |
| } |
| $B14: { # false |
| exit_loop # loop_2 |
| } |
| } |
| %29:i32 = load %j |
| %x_49:i32 = let %29 |
| %31:vec3<f32> = call %func_ |
| %x_50:vec3<f32> = let %31 |
| %33:ptr<function, vec3<f32>, read_write> = access %data, %x_49 |
| store %33, %x_50 |
| continue # -> $B12 |
| } |
| $B12: { # continuing |
| %34:i32 = load %j |
| %x_52:i32 = let %34 |
| %36:i32 = add %x_52, 1i |
| store %j, %36 |
| next_iteration # -> $B11 |
| } |
| } |
| store %j_1, 0i |
| loop [b: $B15, c: $B16] { # loop_3 |
| $B15: { # body |
| %37:i32 = load %j_1 |
| %x_58:i32 = let %37 |
| %39:bool = lt %x_58, 1i |
| if %39 [t: $B17, f: $B18] { # if_5 |
| $B17: { # true |
| exit_if # if_5 |
| } |
| $B18: { # false |
| exit_loop # loop_3 |
| } |
| } |
| %40:i32 = load %j_1 |
| %x_61:i32 = let %40 |
| %42:vec3<f32> = call %func_ |
| %x_64:vec3<f32> = let %42 |
| %44:i32 = mul 4i, %x_61 |
| %45:i32 = add %44, 1i |
| %46:ptr<function, vec3<f32>, read_write> = access %data, %45 |
| store %46, %x_64 |
| continue # -> $B16 |
| } |
| $B16: { # continuing |
| %47:i32 = load %j_1 |
| %x_66:i32 = let %47 |
| %49:i32 = add %x_66, 1i |
| store %j_1, %49 |
| next_iteration # -> $B15 |
| } |
| } |
| %50:ptr<function, vec3<f32>, read_write> = access %data, 0i |
| %51:vec3<f32> = load %50 |
| %x_69:vec3<f32> = let %51 |
| %53:f32 = access %x_69, 0u |
| %54:f32 = access %x_69, 1u |
| %55:f32 = access %x_69, 2u |
| %56:vec4<f32> = construct %53, %54, %55, 1.0f |
| store %x_GLF_color, %56 |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out { |
| $B19: { |
| %58:void = call %main_1 |
| %59:vec4<f32> = load %x_GLF_color |
| %60:main_out = construct %59 |
| ret %60 |
| } |
| } |
| |
| invalid entry point IO struct uses |
| ******************************************************************** |
| * 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. * |
| ******************************************************************** |