blob: afab29805bfe5b08d52f8395d6ac3673c2d51438 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: theSSBO = struct @align(4) {
out_data:i32 @offset(0)
}
$B1: { # root
%x_4:ptr<storage, theSSBO, read_write> = var @binding_point(0, 0)
}
%main_1 = func():void {
$B2: {
%x_30:ptr<function, mat2x2<f32>, read_write> = var
%x_30_phi:ptr<function, mat2x2<f32>, read_write> = var
%x_32_phi:ptr<function, i32, read_write> = var
%6:ptr<storage, i32, read_write> = access %x_4, 0u
store %6, 42i
store %x_30_phi, mat2x2<f32>(vec2<f32>(0.0f))
store %x_32_phi, 1i
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
%x_33:ptr<function, i32, read_write> = var
%8:mat2x2<f32> = load %x_30_phi
store %x_30, %8
%9:i32 = load %x_32_phi
%x_32:i32 = let %9
%11:bool = gt %x_32, 0i
if %11 [t: $B5, f: $B6] { # if_1
$B5: { # true
exit_if # if_1
}
$B6: { # false
exit_loop # loop_1
}
}
continue # -> $B4
}
$B4: { # continuing
%12:i32 = sub %x_32, 1i
store %x_33, %12
store %x_30_phi, mat2x2<f32>(vec2<f32>(1.0f, 0.0f), vec2<f32>(0.0f, 1.0f))
%13:i32 = load %x_33
store %x_32_phi, %13
next_iteration # -> $B3
}
}
%14:ptr<function, vec2<f32>, read_write> = access %x_30, 0u
%15:vec2<f32> = load %14
%16:vec2<f32> = sub %15, vec2<f32>(1.0f, 0.0f)
%17:ptr<function, vec2<f32>, read_write> = access %x_30, 1u
%18:vec2<f32> = load %17
%19:vec2<f32> = sub %18, vec2<f32>(0.0f, 1.0f)
%20:mat2x2<f32> = construct %16, %19
%21:vec2<f32> = mul vec2<f32>(1.0f), %20
%x_41:vec2<f32> = let %21
loop [b: $B7] { # loop_2
$B7: { # body
%23:f32 = access %x_41, 0u
%24:bool = lt 1.0f, %23
if %24 [t: $B8] { # if_2
$B8: { # true
exit_loop # loop_2
}
}
%25:void = msl.threadgroup_barrier 4u
exit_loop # loop_2
}
}
ret
}
}
%tint_symbol = @compute @workgroup_size(1, 1, 1) func():void {
$B9: {
%27: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. *
********************************************************************