Skip to content

Commit d00b0c6

Browse files
mstorsjokcloudy0717
authored andcommitted
[AArch64] [test] Spell out the matching instructions for SVE unwind opcodes
The MS dumpbin.exe tool can dump the unwind opcodes with the "-unwindinfo" option; this mode also checks that the instructions actually match the expected ones here. (This mode doesn't seem to fully work for all instructions here, but spell out all the intended instructions here.)
1 parent 46af213 commit d00b0c6

File tree

1 file changed

+17
-15
lines changed
  • llvm/test/MC/AArch64

1 file changed

+17
-15
lines changed

llvm/test/MC/AArch64/seh.s

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@
131131
// CHECK-NEXT: ]
132132

133133

134+
.arch_extension sve
135+
134136
.text
135137
.globl func
136138
.def func
@@ -177,35 +179,35 @@ func:
177179
.seh_nop
178180
pacibsp
179181
.seh_pac_sign_lr
180-
nop
182+
str x0, [sp, #64]
181183
.seh_save_any_reg x0, 64
182-
nop
184+
stp x1, x2, [sp, #64]
183185
.seh_save_any_reg_p x1, 64
184-
nop
186+
str d29, [sp, #64]
185187
.seh_save_any_reg d29, 64
186-
nop
188+
stp d4, d5, [sp, #64]
187189
.seh_save_any_reg_p d4, 64
188-
nop
190+
str q30, [sp, #64]
189191
.seh_save_any_reg q30, 64
190-
nop
192+
stp q3, q4, [sp, #64]
191193
.seh_save_any_reg_p q3, 64
192-
nop
194+
str x30, [sp, #-64]!
193195
.seh_save_any_reg_x lr, 64
194-
nop
196+
stp x29, x30, [sp, #-64]!
195197
.seh_save_any_reg_px fp, 64
196-
nop
198+
str d31, [sp, #-64]!
197199
.seh_save_any_reg_x d31, 64
198-
nop
200+
stp d2, d3, [sp, #-64]!
199201
.seh_save_any_reg_px d2, 64
200-
nop
202+
str q29, [sp, #-64]!
201203
.seh_save_any_reg_x q29, 64
202-
nop
204+
stp q9, q10, [sp, #-64]!
203205
.seh_save_any_reg_px q9, 64
204-
nop
206+
addvl sp, sp, #-5
205207
.seh_allocz 5
206-
nop
208+
str z11, [sp, #5, mul vl]
207209
.seh_save_zreg z11, 5
208-
nop
210+
str p6, [sp, #3, mul vl]
209211
.seh_save_preg p6, 3
210212
.seh_endprologue
211213
nop

0 commit comments

Comments
 (0)