Skip to content

Commit 1fbb241

Browse files
authored
Fix tests (#773)
1 parent 3f22a89 commit 1fbb241

File tree

2 files changed

+18
-34
lines changed

2 files changed

+18
-34
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
%1 = OpFunction %2 None %3
22
%4 = OpLabel
3-
%5 = OpVariable %6 Function
4-
%7 = OpVariable %6 Function
5-
OpLine %8 13 12
6-
%9 = OpLoad %10 %11
7-
OpLine %8 13 0
8-
OpStore %5 %9
9-
OpLine %8 14 4
10-
%12 = OpInBoundsAccessChain %13 %5 %14
11-
%15 = OpInBoundsAccessChain %13 %5 %14
12-
%16 = OpLoad %17 %15
13-
%18 = OpFAdd %17 %16 %19
14-
OpStore %12 %18
15-
OpLine %8 15 17
16-
OpCopyMemory %7 %5
17-
OpLine %8 15 4
18-
OpCopyMemory %20 %7
19-
OpLine %8 16 1
3+
OpLine %5 13 12
4+
%6 = OpLoad %7 %8
5+
OpLine %5 14 4
6+
%9 = OpCompositeExtract %10 %6 0
7+
%11 = OpFAdd %10 %9 %12
8+
%13 = OpCompositeInsert %7 %11 %6 0
9+
OpLine %5 15 4
10+
OpStore %14 %13
11+
OpLine %5 16 1
2012
OpReturn
2113
OpFunctionEnd

tests/ui/dis/issue-731.stderr

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
%1 = OpFunction %2 None %3
22
%4 = OpLabel
3-
%5 = OpVariable %6 Function
4-
%7 = OpVariable %6 Function
5-
OpLine %8 11 12
6-
%9 = OpLoad %10 %11
7-
OpLine %8 11 0
8-
OpStore %5 %9
9-
OpLine %8 12 4
10-
%12 = OpInBoundsAccessChain %13 %5 %14
11-
%15 = OpInBoundsAccessChain %13 %5 %14
12-
%16 = OpLoad %17 %15
13-
%18 = OpFAdd %17 %16 %19
14-
OpStore %12 %18
15-
OpLine %8 13 17
16-
OpCopyMemory %7 %5
17-
OpLine %8 13 4
18-
OpCopyMemory %20 %7
19-
OpLine %8 14 1
3+
OpLine %5 11 12
4+
%6 = OpLoad %7 %8
5+
OpLine %5 12 4
6+
%9 = OpCompositeExtract %10 %6 0
7+
%11 = OpFAdd %10 %9 %12
8+
%13 = OpCompositeInsert %7 %11 %6 0
9+
OpLine %5 13 4
10+
OpStore %14 %13
11+
OpLine %5 14 1
2012
OpReturn
2113
OpFunctionEnd

0 commit comments

Comments
 (0)