| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: Buf1 = struct @align(4) { |
| result:i32 @offset(0) |
| } |
| |
| Buf0 = struct @align(4) { |
| values:array<u32> @offset(0) |
| } |
| |
| $B1: { # root |
| %x_4:ptr<storage, Buf1, read_write> = var @binding_point(0, 1) |
| %x_7:ptr<storage, Buf0, read_write> = var @binding_point(0, 0) |
| } |
| |
| %main_1 = func():void { |
| $B2: { |
| %i:ptr<function, u32, read_write> = var |
| %5:ptr<storage, i32, read_write> = access %x_4, 0u |
| store %5, 1i |
| store %i, 0u |
| loop [b: $B3, c: $B4] { # loop_1 |
| $B3: { # body |
| %6:u32 = load %i |
| %x_33:u32 = let %6 |
| %8:bool = lt %x_33, 512u |
| if %8 [t: $B5, f: $B6] { # if_1 |
| $B5: { # true |
| exit_if # if_1 |
| } |
| $B6: { # false |
| exit_loop # loop_1 |
| } |
| } |
| %9:u32 = load %i |
| %x_36:u32 = let %9 |
| %11:u32 = mul %x_36, 2u |
| %12:ptr<storage, u32, read_write> = access %x_7, 0u, %11 |
| %13:u32 = load %12 |
| %x_39:u32 = let %13 |
| %15:u32 = load %i |
| %x_40:u32 = let %15 |
| %17:bool = neq %x_39, %x_40 |
| if %17 [t: $B7] { # if_2 |
| $B7: { # true |
| %18:ptr<storage, i32, read_write> = access %x_4, 0u |
| store %18, 0i |
| exit_if # if_2 |
| } |
| } |
| continue # -> $B4 |
| } |
| $B4: { # continuing |
| %19:u32 = load %i |
| %x_45:u32 = let %19 |
| %21:u32 = add %x_45, 1u |
| store %i, %21 |
| next_iteration # -> $B3 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @compute @workgroup_size(1, 1, 1) func():void { |
| $B8: { |
| %23:void = call %main_1 |
| ret |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |