blob: b447b48e29db367b46516444a4af3aeb752ff282 [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_div_i32, %4, 2i
store %3, %5
ret
}
}
%tint_div_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 = div %lhs, %14
ret %15
}
}
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. *
********************************************************************