blob: 1acef4af575f58338dbfe1ad24062911db22ebe6 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: S = struct @align(4) {
field0:array<u32> @offset(0)
}
$B1: { # root
%x_2:ptr<private, vec3<u32>, read_write> = var
%x_5:ptr<storage, S, read_write> = var @binding_point(0, 0)
%x_6:ptr<storage, S, read_write> = var @binding_point(0, 1)
%x_7:ptr<storage, S, read_write> = var @binding_point(0, 2)
}
%main_1 = func():void {
$B2: {
%6:u32 = load_vector_element %x_2, 0u
%x_20:u32 = let %6
%8:ptr<storage, u32, read_write> = access %x_7, 0u, %x_20
%9:ptr<storage, u32, read_write> = access %x_5, 0u, %x_20
%10:u32 = load %9
%11:i32 = bitcast %10
%12:i32 = let %11
%13:ptr<storage, u32, read_write> = access %x_6, 0u, %x_20
%14:u32 = load %13
%15:i32 = bitcast %14
%16:i32 = call %tint_div_i32, %12, %15
%18:u32 = bitcast %16
store %8, %18
ret
}
}
%tint_symbol = @compute @workgroup_size(1, 1, 1) func(%x_2_param:vec3<u32> [@global_invocation_id]):void {
$B3: {
store %x_2, %x_2_param
%21:void = call %main_1
ret
}
}
%tint_div_i32 = func(%lhs:i32, %rhs:i32):i32 {
$B4: {
%24:bool = eq %rhs, 0i
%25:bool = eq %lhs, -2147483648i
%26:bool = eq %rhs, -1i
%27:bool = and %25, %26
%28:bool = or %24, %27
%29:i32 = select %rhs, 1i, %28
%30:i32 = div %lhs, %29
ret %30
}
}
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. *
********************************************************************