Skip to content

Commit 46af213

Browse files
mstorsjokcloudy0717
authored andcommitted
[AArch64] [test] Fix stack allocation instructions in the seh.s test
The actual unwind opcodes only stores stack increments in units of 16 (which is what it is listed as in the unwind opcode dumping by llvm-readobj); actually write what we intend to encode.
1 parent dd6d4fd commit 46af213

File tree

1 file changed

+4
-4
lines changed
  • llvm/test/MC/AArch64

1 file changed

+4
-4
lines changed

llvm/test/MC/AArch64/seh.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@
139139
.endef
140140
.seh_proc func
141141
func:
142-
sub sp, sp, #24
143-
.seh_stackalloc 24
142+
sub sp, sp, #16
143+
.seh_stackalloc 16
144144
mov x29, sp
145145
.seh_set_fp
146146
stp x29, x30, [sp, #-32]!
@@ -210,8 +210,8 @@ func:
210210
.seh_endprologue
211211
nop
212212
.seh_startepilogue
213-
add sp, sp, #24
214-
.seh_stackalloc 24
213+
add sp, sp, #16
214+
.seh_stackalloc 16
215215
.seh_endepilogue
216216
ret
217217
.seh_handler __C_specific_handler, @except

0 commit comments

Comments
 (0)