@@ -45,71 +45,79 @@ void main() {
4545
4646 int4 a = {
4747 float2 (1 , 0 ),
48- // CHECK: DebugLine [[src]] %uint_50 %uint_50 %uint_7 %uint_19
49- // CHECK: OpFunctionCall %int4_bool_float3_0 %test_struct
48+ // CHECK: DebugLine [[src]] %uint_51 %uint_51 %uint_7 %uint_19
49+ // CHECK-NEXT: OpFunctionCall %int4_bool_float3_0 %test_struct
50+ // CHECK: OpVectorShuffle %v2float
5051 test_struct ().c.zx
51- // CHECK: OpCompositeExtract %float {{%[0-9]+}} 0
52+ // CHECK: DebugLine [[src]] %uint_46 %uint_46 %uint_12 %uint_12
53+ // CHECK-NEXT: OpCompositeExtract %float {{%[0-9]+}} 0
5254// CHECK-NEXT: OpCompositeExtract %float {{%[0-9]+}} 1
53- // CHECK-NEXT: DebugLine [[src]] %uint_46 %uint_46 %uint_12 %uint_12
5455// CHECK-NEXT: OpConvertFToS %int
5556// CHECK-NEXT: OpConvertFToS %int
57+ // CHECK: DebugLine [[src]] %uint_51 %uint_51 %uint_7 %uint_23
58+ // CHECK-NEXT: OpCompositeExtract %float {{%[0-9]+}} 0
59+ // CHECK-NEXT: OpCompositeExtract %float {{%[0-9]+}} 1
60+ // CHECK: DebugLine [[src]] %uint_46 %uint_46 %uint_12 %uint_12
61+ // CHECK-NEXT: OpConvertFToS %int
62+ // CHECK-NEXT: OpConvertFToS %int
63+ // CHECK: DebugLine [[src]] %uint_46 %uint_65 %uint_12 %uint_3
5664// CHECK: OpCompositeConstruct %v4int
5765 };
5866
5967// CHECK: OpFDiv %float {{%[0-9]+}} %float_2
60- // CHECK-NEXT: DebugLine [[src]] %uint_64 %uint_64 %uint_16 %uint_57
68+ // CHECK-NEXT: DebugLine [[src]] %uint_72 %uint_72 %uint_16 %uint_57
6169// CHECK-NEXT: [[first:%[0-9]+]] = OpCompositeConstruct %v2float {{%[0-9]+}} {{%[0-9]+}}
6270// CHECK-NEXT: [[second:%[0-9]+]] = OpCompositeConstruct %v2float {{%[0-9]+}} {{%[0-9]+}}
6371// CHECK-NEXT: {{%[0-9]+}} = OpCompositeConstruct %mat2v2float [[first]] [[second]]
6472 float2x2 b = float2x2 (a.x, b._m00, 2 + a.y, b._m11 / 2 );
6573
66- // CHECK: DebugLine [[src]] %uint_69 %uint_69 %uint_12 %uint_14
74+ // CHECK: DebugLine [[src]] %uint_77 %uint_77 %uint_12 %uint_14
6775// CHECK-NEXT: [[y:%[0-9]+]] = OpAccessChain %_ptr_Uniform_int4_bool_float3 %CONSTANTS %int_0
6876// CHECK-NEXT: {{%[0-9]+}} = OpAccessChain %_ptr_Uniform_v4int [[y]] %int_0
6977 int4 c = y.a;
7078
71- // CHECK: DebugLine [[src]] %uint_76 %uint_76 %uint_3 %uint_3
79+ // CHECK: DebugLine [[src]] %uint_84 %uint_84 %uint_3 %uint_3
7280// CHECK-NEXT: [[z:%[0-9]+]] = OpLoad %type_2d_image %z
7381// CHECK-NEXT: [[z_0:%[0-9]+]] = OpImageRead %v4int [[z]] {{%[0-9]+}} None
7482// CHECK-NEXT: [[z_1:%[0-9]+]] = OpVectorShuffle %v3int [[z_0]] [[z_0]] 0 1 2
7583// CHECK: {{%[0-9]+}} = OpCompositeInsert %v3int %int_16 [[z_1]] 0
7684 z[uint2 (2 , 3 )].x = 16 ;
7785
78- // CHECK: DebugLine [[src]] %uint_82 %uint_82 %uint_3 %uint_4
86+ // CHECK: DebugLine [[src]] %uint_90 %uint_90 %uint_3 %uint_4
7987// CHECK-NEXT: OpLoad %mat2v2float %b
80- // CHECK: DebugLine [[src]] %uint_82 %uint_82 %uint_3 %uint_4
88+ // CHECK: DebugLine [[src]] %uint_90 %uint_90 %uint_3 %uint_4
8189// CHECK-NEXT: OpFSub %v2float
8290 b--;
8391
8492 int2x2 d;
85- // CHECK: DebugLine [[src]] %uint_91 %uint_91 %uint_8 %uint_8
93+ // CHECK: DebugLine [[src]] %uint_99 %uint_99 %uint_8 %uint_8
8694// CHECK-NEXT: OpLoad %mat2v2float %b
87- // CHECK-NEXT: DebugLine [[src]] %uint_91 %uint_91 %uint_3 %uint_12
95+ // CHECK-NEXT: DebugLine [[src]] %uint_99 %uint_99 %uint_3 %uint_12
8896// CHECK-NEXT: OpCompositeExtract %v2float
8997// CHECK: OpCompositeConstruct %_arr_v2int_uint_2
9098// CHECK-NEXT: OpStore %d
9199 modf (b, d);
92100
93- // CHECK-TODO: DebugLine [[src]] %uint_95 %uint_95 %uint_3 %uint_11
101+ // CHECK-TODO: DebugLine [[src]] %uint_103 %uint_103 %uint_3 %uint_11
94102// CHECK-NEXT-TODO: OpFunctionCall %void %S_inc %foo
95103// TODO(greg-lunarg): foo.inc();
96104
97- // CHECK-TODO: DebugLine [[src]] %uint_99 %uint_99 %uint_3 %uint_14
105+ // CHECK-TODO: DebugLine [[src]] %uint_107 %uint_107 %uint_3 %uint_14
98106// CHECK-NEXT-TODO: OpFunctionCall %void %S_inc %temp_var_S
99107// TODO(greg-lunarg): getS().inc();
100108
101- // CHECK: DebugLine [[src]] %uint_105 %uint_105 %uint_19 %uint_19
109+ // CHECK: DebugLine [[src]] %uint_113 %uint_113 %uint_19 %uint_19
102110// CHECK-NEXT: OpLoad %init %bar
103- // CHECK: DebugLine [[src]] %uint_105 %uint_105 %uint_12 %uint_12
111+ // CHECK: DebugLine [[src]] %uint_113 %uint_113 %uint_12 %uint_12
104112// CHECK-NEXT: OpConvertFToS %int
105113 int4 e = {1 , 2 , bar};
106114
107- // CHECK: DebugLine [[src]] %uint_111 %uint_111 %uint_7 %uint_25
115+ // CHECK: DebugLine [[src]] %uint_119 %uint_119 %uint_7 %uint_25
108116// CHECK-NEXT: OpCompositeConstruct %v2float %float_1 %float_2
109- // CHECK-NEXT: DebugLine [[src]] %uint_111 %uint_111 %uint_22 %uint_22
117+ // CHECK-NEXT: DebugLine [[src]] %uint_119 %uint_119 %uint_22 %uint_22
110118// CHECK-NEXT: OpCompositeExtract %int
111119 b = float2x2 (1 , 2 , bar);
112- // CHECK: DebugLine [[src]] %uint_111 %uint_111 %uint_3 %uint_25
120+ // CHECK: DebugLine [[src]] %uint_119 %uint_119 %uint_3 %uint_25
113121// CHECK-NEXT: OpStore %b
114122
115123// TODO(jaebaek): Update InitListHandler to properly emit debug info.
0 commit comments