fix(asm): treat the arm64 $-8 frame as frameless and encode the RET forms

Assisted-by: GLM 5.3 Flash
This commit is contained in:
petrbalvin committed 2026-10-07 02:36:24 +02:00
1 parent d853432dba
commit f20aa156d0
2 files changed
+52 -11

No files matched your search

+1 -1
View File
@@ -396,7 +396,7 @@ func encodeARM64Instr(instr *ast.Instr, pc int, offsets map[string]int, fi arm64
// Pseudo-instructions and special cases first.
switch mnem {
case "RET":
return arm64Return(fi), nil
return arm64RetInstr(fi, ops, relocs), nil
case "NOP", "NOOP":
return a64wordLE(a64NOP), nil
case "UNDEF":