Skip to content

Commit 81264cb

Browse files
committed
Add test for ARM64 frame pointer setup
Tests that frame pointer setup instructions (add x29, sp, 0) are properly pseudoized to mov x29, sp without variable substitution.
1 parent 41930d5 commit 81264cb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/db/cmd/feat_variables

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,3 +412,20 @@ EXPECT=<<EOF
412412
8
413413
EOF
414414
RUN
415+
416+
NAME=ARM64 frame pointer setup should not substitute variables
417+
FILE=malloc://1024
418+
ARGS=-a arm -b 64
419+
CMDS=<<EOF
420+
e asm.arch=arm
421+
e asm.bits=64
422+
wx fd7bbfa9fd030091 @ 0
423+
af @ 0
424+
pd 2 @ 0
425+
EOF
426+
EXPECT=<<EOF
427+
/ 12: fcn.00000000 ();
428+
| 0x00000000 fd7bbfa9 stp x29, x30, [sp, -0x10]!
429+
| 0x00000004 fd030091 mov x29, sp
430+
EOF
431+
RUN

0 commit comments

Comments
 (0)