@@ -31,7 +31,7 @@ func @throw_index_out_of_range_exception() {
3131func @"System.Int32 Tests.CodeGenBringUpTests::ArrayJagged(System.Int32)":i32(i32) {
3232 # check: function `System.Int32 Tests.CodeGenBringUpTests::ArrayJagged(System.Int32)`:
3333 # nextln: clobbers: rax, rbx, rcx, rdx, rdi, rsi, r8, r9, r10, r11, r12, r13, r14, r15
34- # nextln: frame: size 80 , align 8
34+ # nextln: frame: size 72 , align 8
3535 # nextln: !0: 0
3636 # nextln: spill0: 8
3737 # nextln: spill1: 16
@@ -41,7 +41,6 @@ func @"System.Int32 Tests.CodeGenBringUpTests::ArrayJagged(System.Int32)":i32(i3
4141 # nextln: spill5: 48
4242 # nextln: spill6: 56
4343 # nextln: spill7: 64
44- # nextln: spill8: 72
4544 # nextln: block0:
4645 # nextln: $$spill2 = $$rdi
4746 # nextln: 0000: Jump(block1)
@@ -52,15 +51,15 @@ func @"System.Int32 Tests.CodeGenBringUpTests::ArrayJagged(System.Int32)":i32(i3
5251 # nextln: block2:
5352 # nextln: 0004: $$rax = MovRmS32(2)
5453 # nextln: 0005: $$r12 = MovsxRRm(Ext32_64) $$rax
55- # nextln: $$spill7 = $$rax
54+ # nextln: $$spill6 = $$rax
5655 # nextln: 0006: $$spill1 = MovRmS32(4)
5756 # nextln: 0007: $$rcx = ImulRRmI(S64, 4) $$r12
58- # nextln: 0008: $$spill5 = MovRmS32(8)
57+ # nextln: 0008: $$spill4 = MovRmS32(8)
5958 # nextln: 0009: $$rax = ImulRRmI(S64, 8) $$r12
6059 # nextln: 0010: $$rdx = MovRmS32(20)
6160 # nextln: $$rdi = $$rdx
6261 # nextln: 0011: $$rdi = AluRRm(S64, Add) $$rdi, $$rcx
63- # nextln: $$spill8 = $$rdi
62+ # nextln: $$spill7 = $$rdi
6463 # nextln: $$spill0 = $$rdx
6564 # nextln: 0012: $$rcx = MovRmS32(170)
6665 # nextln: 0013: $$rdx = MovRmS32(24)
@@ -77,90 +76,86 @@ func @"System.Int32 Tests.CodeGenBringUpTests::ArrayJagged(System.Int32)":i32(i3
7776 # nextln: 0020: MovMR(S32) $$rcx, $$r12
7877 # nextln: 0021: MovStackR(!0, S64) $$rax
7978 # nextln: 0022: $$r15 = MovRStack(!0, S64)
80- # nextln: $$rsi = $$spill8
79+ # nextln: $$rsi = $$spill7
8180 # nextln: $$rdi = $$r13
8281 # nextln: 0023: $$rax = CallRel(Internal(func0)) $$rdi, $$rsi
8382 # nextln: $$rdi = $$r13
8483 # nextln: $$rcx = $$rax
8584 # nextln: 0024: $$rcx = AluRmI(S64, Add, 16) $$rcx
8685 # nextln: 0025: MovMR(S32) $$rcx, $$r12
87- # nextln: 0026: $$rdx = MovRM(S32) $$rcx
88- # nextln: $$rcx = $$r14
89- # nextln: 0027: AluRRm(S64, Cmp) $$rcx, $$rdx
86+ # nextln: 0026: $$rcx = MovRM(S32) $$rcx
87+ # nextln: 0027: AluRRm(S64, Cmp) $$r14, $$rcx
9088 # nextln: 0028: Jumpcc(L, block3, block4)
9189 # nextln: block3:
92- # nextln: $$rdx = $$spill1
93- # nextln: $$r8 = $$rdx
94- # nextln: 0029: $$r8 = ImulRRm(S64) $$r8, $$rcx
95- # nextln: $$rdx = $$r15
96- # nextln: 0030: $$rdx = AluRmI(S64, Add, 16) $$rdx
97- # nextln: $$r9 = $$spill0
98- # nextln: $$rsi = $$r9
99- # nextln: 0031: $$rsi = AluRRm(S64, Add) $$rsi, $$r8
100- # nextln: $$r8 = $$rax
101- # nextln: 0032: $$r8 = AluRRm(S64, Add) $$r8, $$rsi
102- # nextln: 0033: MovMR(S32) $$r8, $$rbx
103- # nextln: $$spill6 = $$rsi
104- # nextln: $$spill4 = $$rcx
105- # nextln: 0034: $$rcx = MovRM(S32) $$rdx
90+ # nextln: $$rcx = $$spill1
91+ # nextln: $$rsi = $$rcx
92+ # nextln: 0029: $$rsi = ImulRRm(S64) $$rsi, $$r14
93+ # nextln: $$rcx = $$r15
94+ # nextln: 0030: $$rcx = AluRmI(S64, Add, 16) $$rcx
95+ # nextln: $$r8 = $$spill0
96+ # nextln: $$rdx = $$r8
97+ # nextln: 0031: $$rdx = AluRRm(S64, Add) $$rdx, $$rsi
98+ # nextln: $$rsi = $$rax
99+ # nextln: 0032: $$rsi = AluRRm(S64, Add) $$rsi, $$rdx
100+ # nextln: 0033: MovMR(S32) $$rsi, $$rbx
101+ # nextln: $$spill5 = $$rdx
102+ # nextln: 0034: $$rcx = MovRM(S32) $$rcx
106103 # nextln: 0035: $$rdx = MovRZ
107104 # nextln: 0036: $$r13 = MovsxRRm(Ext32_64) $$rdx
108105 # nextln: 0037: AluRRm(S64, Cmp) $$r13, $$rcx
109106 # nextln: 0038: Jumpcc(L, block6, block7)
110107 # nextln: block6:
111- # nextln: $$r14 = $$spill5
112- # nextln: $$rcx = $$r14
108+ # nextln: $$rcx = $$spill4
113109 # nextln: 0039: $$rcx = ImulRRm(S64) $$rcx, $$r13
114110 # nextln: $$rbx = $$spill3
115111 # nextln: $$rdx = $$rbx
116112 # nextln: 0040: $$rdx = AluRRm(S64, Add) $$rdx, $$rcx
117113 # nextln: 0041: $$r15 = AluRRm(S64, Add) $$r15, $$rdx
118114 # nextln: 0042: MovMR(S64) $$r15, $$rax
119115 # nextln: 0043: $$r15 = MovRStack(!0, S64)
120- # nextln: $$rsi = $$spill8
116+ # nextln: $$rsi = $$spill7
121117 # nextln: 0044: $$rax = CallRel(Internal(func0)) $$rdi, $$rsi
122- # nextln: $$rdi = $$r14
123- # nextln: $$rsi = $$rax
124- # nextln: 0045: $$rsi = AluRmI(S64, Add, 16) $$rsi
125- # nextln: 0046: MovMR(S32) $$rsi, $$r12
126- # nextln: 0047: $$rcx = MovRM(S32) $$rsi
118+ # nextln: $$rdi = $$rax
119+ # nextln: 0045: $$rdi = AluRmI(S64, Add, 16) $$rdi
120+ # nextln: 0046: MovMR(S32) $$rdi, $$r12
121+ # nextln: 0047: $$rcx = MovRM(S32) $$rdi
127122 # nextln: 0048: AluRRm(S64, Cmp) $$r13, $$rcx
128123 # nextln: 0049: Jumpcc(L, block8, block9)
129124 # nextln: block8:
130125 # nextln: $$rcx = $$spill1
131- # nextln: $$r8 = $$rcx
132- # nextln: 0050: $$r8 = ImulRRm(S64) $$r8 , $$r13
126+ # nextln: $$rsi = $$rcx
127+ # nextln: 0050: $$rsi = ImulRRm(S64) $$rsi , $$r13
133128 # nextln: $$rdx = $$spill0
134- # nextln: $$r9 = $$rdx
135- # nextln: 0051: $$r9 = AluRRm(S64, Add) $$r9, $$r8
136- # nextln: $$r8 = $$rax
137- # nextln: 0052: $$r8 = AluRRm(S64, Add) $$r8, $$r9
138- # nextln: $$r9 = $$spill7
139- # nextln: 0053: MovMR(S32) $$r8, $$r9
140- # nextln: 0054: $$r8 = MovRM(S32) $$rsi
141- # nextln: $$rsi = $$spill4
142- # nextln: 0055: AluRRm(S64, Cmp) $$rsi, $$r8
129+ # nextln: $$r8 = $$rdx
130+ # nextln: 0051: $$r8 = AluRRm(S64, Add) $$r8, $$rsi
131+ # nextln: $$rsi = $$rax
132+ # nextln: 0052: $$rsi = AluRRm(S64, Add) $$rsi, $$r8
133+ # nextln: $$r8 = $$spill6
134+ # nextln: 0053: MovMR(S32) $$rsi, $$r8
135+ # nextln: 0054: $$rdi = MovRM(S32) $$rdi
136+ # nextln: 0055: AluRRm(S64, Cmp) $$r14, $$rdi
143137 # nextln: 0056: Jumpcc(L, block10, block11)
144138 # nextln: block10:
145- # nextln: $$r8 = $$r15
146- # nextln: 0057: $$r8 = AluRmI(S64, Add, 16) $$r8
147- # nextln: $$r9 = $$rax
148- # nextln: 0058: $$r9 = AluRRm(S64, Add) $$r9 , $$spill6
149- # nextln: 0059: $$r10 = MovRmS32(3)
150- # nextln: 0060: MovMR(S32) $$r9 , $$r10
151- # nextln: 0061: $$r8 = MovRM(S32) $$r8
152- # nextln: 0062: AluRRm(S64, Cmp) $$rsi , $$r8
139+ # nextln: $$rdi = $$r15
140+ # nextln: 0057: $$rdi = AluRmI(S64, Add, 16) $$rdi
141+ # nextln: $$rsi = $$rax
142+ # nextln: 0058: $$rsi = AluRRm(S64, Add) $$rsi , $$spill5
143+ # nextln: 0059: $$r8 = MovRmS32(3)
144+ # nextln: 0060: MovMR(S32) $$rsi , $$r8
145+ # nextln: 0061: $$rdi = MovRM(S32) $$rdi
146+ # nextln: 0062: AluRRm(S64, Cmp) $$r14 , $$rdi
153147 # nextln: 0063: Jumpcc(L, block12, block13)
154148 # nextln: block12:
155- # nextln: 0064: $$rdi = ImulRRm(S64) $$rdi, $$rsi
149+ # nextln: $$rdi = $$spill4
150+ # nextln: 0064: $$rdi = ImulRRm(S64) $$rdi, $$r14
156151 # nextln: 0065: $$rbx = AluRRm(S64, Add) $$rbx, $$rdi
157152 # nextln: 0066: $$r15 = AluRRm(S64, Add) $$r15, $$rbx
158153 # nextln: 0067: MovMR(S64) $$r15, $$rax
159154 # nextln: 0068: $$rax = MovRStack(!0, S64)
160155 # nextln: $$rdi = $$rax
161156 # nextln: 0069: $$rdi = AluRmI(S64, Add, 16) $$rdi
162157 # nextln: 0070: $$rdi = MovRM(S32) $$rdi
163- # nextln: 0071: AluRRm(S64, Cmp) $$rsi , $$rdi
158+ # nextln: 0071: AluRRm(S64, Cmp) $$r14 , $$rdi
164159 # nextln: 0072: Jumpcc(L, block14, block15)
165160 # nextln: block14:
166161 # nextln: 0073: $$rax = AluRRm(S64, Add) $$rax, $$rbx
0 commit comments