blob: f27e3676de254004fc35e986fa08db413c81fa77 [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: Buf = struct @align(4) {
count:u32 @offset(0)
data:array<u32, 50> @offset(4)
}
%b1 = block { # root
%b:ptr<storage, Buf, read_write> = var @binding_point(0, 0)
}
%tint_symbol = @compute @workgroup_size(1, 1, 1) func():void -> %b2 {
%b2 = block {
%i:ptr<function, u32, read_write> = var, 0u
loop [b: %b3, c: %b4] { # loop_1
%b3 = block { # body
%4:u32 = load %i
%5:ptr<storage, u32, read_write> = access %b, 0u
%6:u32 = load %5
%7:bool = gte %4, %6
if %7 [t: %b5] { # if_1
%b5 = block { # true
exit_loop # loop_1
}
}
%8:u32 = load %i
%p:ptr<storage, u32, read_write> = access %b, 1u, %8
%10:u32 = load %i
%11:u32 = mod %10, 2u
%12:bool = eq %11, 0u
if %12 [t: %b6] { # if_2
%b6 = block { # true
continue %b4
}
}
store %p, 0u
continue %b4
}
%b4 = block { # continuing
%13:u32 = load %p
%14:u32 = mul %13, 2u
store %p, %14
%15:u32 = load %i
%16:u32 = add %15, 1u
store %i, %16
next_iteration %b3
}
}
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. *
********************************************************************