1 /* $NetBSD: h_initfini_align.S,v 1.2 2014/03/16 09:27:04 cherry Exp $ */
3 #include <machine/asm.h>
5 RCSID("$NetBSD: h_initfini_align.S,v 1.2 2014/03/16 09:27:04 cherry Exp $")
7 ENTRY(check_stack_alignment, 0)
11 alloc loc0 = ar.pfs, 0, 2, 0, 0
17 /* ar.bsp has an 8-byte alignment requirement */
24 cmp.eq p1, p0 = 0, loc1
28 /* sp has a 16-byte alignment requirement */
31 (p1) and loc1 = 15, loc1
34 (p1) cmp.eq p1, p0 = 0, loc1