blob: 3b34436c1813c38dce6615333e9532caa7bae9b5 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: $B1: { # root
%prevent_dce:ptr<storage, i32, read_write> = var @binding_point(2, 0)
}
%firstTrailingBit_3a2acc = func():void {
$B2: {
%arg_0:ptr<function, i32, read_write> = var, 1i
%4:i32 = load %arg_0
%5:u32 = bitcast %4
%6:u32 = let %5
%7:u32 = and %6, 65535u
%8:bool = eq %7, 0u
%9:u32 = select 0u, 16u, %8
%10:u32 = let %9
%11:u32 = shr %6, %10
%12:u32 = and %11, 255u
%13:bool = eq %12, 0u
%14:u32 = select 0u, 8u, %13
%15:u32 = let %14
%16:u32 = shr %11, %15
%17:u32 = and %16, 15u
%18:bool = eq %17, 0u
%19:u32 = select 0u, 4u, %18
%20:u32 = let %19
%21:u32 = shr %16, %20
%22:u32 = and %21, 3u
%23:bool = eq %22, 0u
%24:u32 = select 0u, 2u, %23
%25:u32 = let %24
%26:u32 = shr %21, %25
%27:u32 = and %26, 1u
%28:bool = eq %27, 0u
%29:u32 = select 0u, 1u, %28
%30:u32 = or %25, %29
%31:u32 = or %20, %30
%32:u32 = or %15, %31
%33:u32 = or %10, %32
%34:bool = eq %26, 0u
%35:u32 = select %33, 4294967295u, %34
%36:i32 = bitcast %35
%res:ptr<function, i32, read_write> = var, %36
%38:i32 = load %res
store %prevent_dce, %38
ret
}
}
%vertex_main = @vertex func():vec4<f32> [@position] {
$B3: {
%40:void = call %firstTrailingBit_3a2acc
ret vec4<f32>(0.0f)
}
}
%fragment_main = @fragment func():void {
$B4: {
%42:void = call %firstTrailingBit_3a2acc
ret
}
}
%compute_main = @compute @workgroup_size(1, 1, 1) func():void {
$B5: {
%44:void = call %firstTrailingBit_3a2acc
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. *
********************************************************************