Module Name:    src
Committed By:   martin
Date:           Thu Dec 12 11:22:26 UTC 2013

Added Files:
        src/tests/lib/csu/arch/sparc: h_initfini_align.S

Log Message:
Add stack alignement test for sparc


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tests/lib/csu/arch/sparc/h_initfini_align.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/tests/lib/csu/arch/sparc/h_initfini_align.S
diff -u /dev/null src/tests/lib/csu/arch/sparc/h_initfini_align.S:1.1
--- /dev/null	Thu Dec 12 11:22:26 2013
+++ src/tests/lib/csu/arch/sparc/h_initfini_align.S	Thu Dec 12 11:22:26 2013
@@ -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

Reply via email to