summaryrefslogtreecommitdiffstats
path: root/src/runtime/test_amd64.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/test_amd64.s')
-rw-r--r--src/runtime/test_amd64.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/test_amd64.s b/src/runtime/test_amd64.s
new file mode 100644
index 0000000..80fa8c9
--- /dev/null
+++ b/src/runtime/test_amd64.s
@@ -0,0 +1,7 @@
+// Create a large frame to force stack growth. See #62326.
+TEXT ·testSPWrite(SB),0,$16384-0
+ // Write to SP
+ MOVQ SP, AX
+ ANDQ $~0xf, SP
+ MOVQ AX, SP
+ RET