Skip to content

Commit 282d657

Browse files
atrosinenkokovdan01
authored andcommitted
[AArch64] Fix CodeGen/AArch64/GlobalISel/call-translator-variadic-musttail.ll
The commit f513d16 [AArch64][PAC] Emit LR auth-failure checks on tail-calls. broke the CodeGen/AArch64/GlobalISel/call-translator-variadic-musttail.ll test. Specifically, changes to llvm/lib/Target/AArch64/AArch64RegisterInfo.td and llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp files made the pre-RA machine scheduler ("machine-scheduler" pass) order a block of register-to-register restores differently, that is further shuffled by post-RA machine scheduler down the pipeline. The particular ordering of register restore instructions seems irrelevant to the call-translator-variadic-musttail.ll test, so just regenerated the test with update_llc_test_checks.py.
1 parent 2e51520 commit 282d657

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/test/CodeGen/AArch64/GlobalISel/call-translator-variadic-musttail.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ define i32 @test_musttail_variadic_spill(i32 %arg0, ...) {
7171
; CHECK-NEXT: mov w0, w19
7272
; CHECK-NEXT: mov x1, x20
7373
; CHECK-NEXT: mov x2, x21
74+
; CHECK-NEXT: ldp q1, q0, [sp, #96] ; 32-byte Folded Reload
7475
; CHECK-NEXT: mov x3, x22
76+
; CHECK-NEXT: ldp q3, q2, [sp, #64] ; 32-byte Folded Reload
7577
; CHECK-NEXT: mov x4, x23
78+
; CHECK-NEXT: ldp q5, q4, [sp, #32] ; 32-byte Folded Reload
7679
; CHECK-NEXT: mov x5, x24
80+
; CHECK-NEXT: ldp q7, q6, [sp] ; 32-byte Folded Reload
7781
; CHECK-NEXT: mov x6, x25
7882
; CHECK-NEXT: mov x7, x26
7983
; CHECK-NEXT: mov x8, x27
80-
; CHECK-NEXT: ldp q1, q0, [sp, #96] ; 32-byte Folded Reload
81-
; CHECK-NEXT: ldp q3, q2, [sp, #64] ; 32-byte Folded Reload
82-
; CHECK-NEXT: ldp q5, q4, [sp, #32] ; 32-byte Folded Reload
83-
; CHECK-NEXT: ldp q7, q6, [sp] ; 32-byte Folded Reload
8484
; CHECK-NEXT: ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
8585
; CHECK-NEXT: ldp x20, x19, [sp, #192] ; 16-byte Folded Reload
8686
; CHECK-NEXT: ldp x22, x21, [sp, #176] ; 16-byte Folded Reload
@@ -142,17 +142,17 @@ define void @f_thunk(ptr %this, ...) {
142142
; CHECK-NEXT: mov x9, x0
143143
; CHECK-NEXT: mov x0, x19
144144
; CHECK-NEXT: mov x1, x20
145+
; CHECK-NEXT: ldp q1, q0, [sp, #96] ; 32-byte Folded Reload
145146
; CHECK-NEXT: mov x2, x21
147+
; CHECK-NEXT: ldp q3, q2, [sp, #64] ; 32-byte Folded Reload
146148
; CHECK-NEXT: mov x3, x22
149+
; CHECK-NEXT: ldp q5, q4, [sp, #32] ; 32-byte Folded Reload
147150
; CHECK-NEXT: mov x4, x23
151+
; CHECK-NEXT: ldp q7, q6, [sp] ; 32-byte Folded Reload
148152
; CHECK-NEXT: mov x5, x24
149153
; CHECK-NEXT: mov x6, x25
150154
; CHECK-NEXT: mov x7, x26
151-
; CHECK-NEXT: ldp q1, q0, [sp, #96] ; 32-byte Folded Reload
152155
; CHECK-NEXT: mov x8, x27
153-
; CHECK-NEXT: ldp q3, q2, [sp, #64] ; 32-byte Folded Reload
154-
; CHECK-NEXT: ldp q5, q4, [sp, #32] ; 32-byte Folded Reload
155-
; CHECK-NEXT: ldp q7, q6, [sp] ; 32-byte Folded Reload
156156
; CHECK-NEXT: ldp x29, x30, [sp, #240] ; 16-byte Folded Reload
157157
; CHECK-NEXT: ldp x20, x19, [sp, #224] ; 16-byte Folded Reload
158158
; CHECK-NEXT: ldp x22, x21, [sp, #208] ; 16-byte Folded Reload

0 commit comments

Comments
 (0)