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.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/test_amd64.s b/src/runtime/test_amd64.s
new file mode 100644
index 0000000..cc4bc62
--- /dev/null
+++ b/src/runtime/test_amd64.s
@@ -0,0 +1,11 @@
+// Copyright 2023 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// 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