xref: /freebsd/contrib/netbsd-tests/lib/csu/arch/powerpc/h_initfini_align.S (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1/*	$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $	*/
2
3#include <machine/asm.h>
4
5RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $")
6
7/*
8 * LINTSTUB: bool check_stack_alignment(void);
9 */
10
11_ENTRY(check_stack_alignment)
12	li	%r3,0
13	andis.	%r0,%r1,15
14	bnelr	%cr0
15	li	%r3,1
16	blr
17END(check_stack_alignment)
18