blob: 576802cf247eab4ae18b6cb3d8b3213cbbd7b576 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: S = struct @align(4) {
a:i32 @offset(0)
}
$B1: { # root
%v:ptr<storage, S, read_write> = var @binding_point(0, 0)
}
%foo = func():void {
$B2: {
%3:ptr<storage, i32, read_write> = access %v, 0u
%4:i32 = load %3
%5:i32 = call %tint_mod_i32, %4, 2i
store %3, %5
ret
}
}
%tint_mod_i32 = func(%lhs:i32, %rhs:i32):i32 {
$B3: {
%9:bool = eq %rhs, 0i
%10:bool = eq %lhs, -2147483648i
%11:bool = eq %rhs, -1i
%12:bool = and %10, %11
%13:bool = or %9, %12
%14:i32 = select %rhs, 1i, %13
%15:i32 = let %14
%16:i32 = div %lhs, %15
%17:i32 = mul %16, %15
%18:i32 = sub %lhs, %17
ret %18
}
}
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. *
********************************************************************