blob: 537fcfa3a10560d9e3653ed6856d522e4f400b12 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: S = struct @align(4) {
field0:array<i32> @offset(0)
}
main_out = struct @align(4) {
x_4_1:i32 @offset(0), @location(0), @interpolate(flat)
}
$B1: { # root
%x_2:ptr<private, vec4<f32>, read_write> = var
%x_3:ptr<private, i32, read_write> = var
%x_4:ptr<private, i32, read_write> = var
%x_5:ptr<storage, S, read_write> = var @binding_point(0, 0)
}
%main_1 = func():void {
$B2: {
store %x_4, 1i
%6:vec4<f32> = load %x_2
%x_23:vec4<f32> = let %6
%8:f32 = access %x_23, 0u
%9:i32 = call %tint_f32_to_i32, %8
%x_27:i32 = let %9
%12:f32 = access %x_23, 1u
%13:i32 = call %tint_f32_to_i32, %12
%x_28:i32 = let %13
%15:i32 = load %x_3
%x_33:i32 = let %15
%17:i32 = mul %x_28, 8i
%18:i32 = add %x_27, %17
%19:ptr<storage, i32, read_write> = access %x_5, 0u, %18
store %19, %x_27
%20:i32 = and %x_27, 1i
%21:i32 = and %x_28, 1i
%22:i32 = add %20, %21
%23:i32 = add %22, %x_33
%24:f32 = access %x_23, 2u
%25:i32 = call %tint_f32_to_i32, %24
%26:bool = eq %23, %25
if %26 [t: $B3] { # if_1
$B3: { # true
exit_if # if_1
}
}
ret
}
}
%tint_symbol = @fragment func(%x_2_param:vec4<f32> [@position], %x_3_param:i32 [@location(0), @interpolate(flat)]):main_out {
$B4: {
store %x_2, %x_2_param
store %x_3, %x_3_param
%30:void = call %main_1
%31:i32 = load %x_4
%32:main_out = construct %31
ret %32
}
}
%tint_f32_to_i32 = func(%value:f32):i32 {
$B5: {
%34:i32 = convert %value
%35:bool = gte %value, -2147483648.0f
%36:i32 = select -2147483648i, %34, %35
%37:bool = lte %value, 2147483520.0f
%38:i32 = select 2147483647i, %36, %37
ret %38
}
}
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. *
********************************************************************