xref: /freebsd/contrib/netbsd-tests/lib/csu/arch/alpha/h_initfini_align.S (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1/*	$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:55 matt Exp $	*/
2
3#include <machine/asm.h>
4
5RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:55 matt Exp $")
6
7/*
8 * LINTSTUB: bool check_stack_alignment(void);
9 */
10
11LEAF_NOPROFILE(check_stack_alignment, 0)
12	ldiq	v0, 0
13	and	sp, 7, t0
14	cmoveq	t0, 1, v0
15	ret
16END(check_stack_alignment)
17