blob: a3781d3cf76c0eb978966ac17c8bd16ec0ee1e9d [file] [log] [blame]
dan sinclairf1f381a2023-11-22 09:44:15 +00001SKIP: FAILED
2
James Pricea30f8dd2024-05-10 14:31:43 +00003../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) {
dan sinclairf1f381a2023-11-22 09:44:15 +00004 zero:f32 @offset(0)
5}
6
7main_out = struct @align(16) {
8 x_GLF_color_1:vec4<f32> @offset(0), @location(0)
9}
10
James Pricea30f8dd2024-05-10 14:31:43 +000011$B1: { # root
dan sinclairf1f381a2023-11-22 09:44:15 +000012 %x_5:ptr<uniform, buf0, read> = var @binding_point(0, 0)
13 %x_GLF_color:ptr<private, vec4<f32>, read_write> = var
14}
15
James Pricea30f8dd2024-05-10 14:31:43 +000016%main_1 = func():void {
17 $B2: {
dan sinclairf1f381a2023-11-22 09:44:15 +000018 %4:ptr<uniform, f32, read> = access %x_5, 0u
19 %5:f32 = load %4
20 %6:f32 = clamp 2.0f, %5, 1.0f
James Pricea30f8dd2024-05-10 14:31:43 +000021 %7:f32 = let %6
22 %8:ptr<uniform, f32, read> = access %x_5, 0u
23 %9:f32 = load %8
24 %10:f32 = clamp -1.0f, 0.0f, %9
25 %11:vec4<f32> = construct %7, %10, 0.0f, 1.0f
26 %12:vec4<bool> = neq %11, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
27 %13:bool = any %12
28 if %13 [t: $B3, f: $B4] { # if_1
29 $B3: { # true
dan sinclairf1f381a2023-11-22 09:44:15 +000030 store %x_GLF_color, vec4<f32>(0.0f)
31 exit_if # if_1
32 }
James Pricea30f8dd2024-05-10 14:31:43 +000033 $B4: { # false
dan sinclairf1f381a2023-11-22 09:44:15 +000034 store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
35 exit_if # if_1
36 }
37 }
38 ret
39 }
40}
James Pricea30f8dd2024-05-10 14:31:43 +000041%tint_symbol = @fragment func():main_out {
42 $B5: {
43 %15:void = call %main_1
44 %16:vec4<f32> = load %x_GLF_color
45 %17:main_out = construct %16
46 ret %17
dan sinclairf1f381a2023-11-22 09:44:15 +000047 }
48}
49
50unhandled variable address space
51********************************************************************
52* The tint shader compiler has encountered an unexpected error. *
53* *
54* Please help us fix this issue by submitting a bug report at *
55* crbug.com/tint with the source program that triggered the bug. *
56********************************************************************