summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2013-12-12 11:22:26 +0000
committermartin <martin@NetBSD.org>2013-12-12 11:22:26 +0000
commitfbb40ff3e27e67637ea1e4da8b91b1a49fb83d73 (patch)
treecaf3ce3dab9764eec8d5cb943185a47ff832bdf3 /tests
parent96d929fe77ea5561c1eee7cf480a8646dfebcec5 (diff)
Add stack alignement test for sparc
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/csu/arch/sparc/h_initfini_align.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lib/csu/arch/sparc/h_initfini_align.S b/tests/lib/csu/arch/sparc/h_initfini_align.S
new file mode 100644
index 00000000000..a770d39787a
--- /dev/null
+++ b/tests/lib/csu/arch/sparc/h_initfini_align.S
@@ -0,0 +1,10 @@
+/* $NetBSD: h_initfini_align.S,v 1.1 2013/12/12 11:22:26 martin Exp $ */
+
+#include <machine/asm.h>
+
+RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/12 11:22:26 martin Exp $")
+
+_ENTRY(check_stack_alignment)
+ and %sp, 7, %o1
+ retl
+ not %o1, %o0