2 dnl m4 macros for powerpc32 eABI assembly.
4 dnl Copyright 2003, 2005, 2006 Free Software Foundation, Inc.
6 dnl This file is part of the GNU MP Library.
8 dnl The GNU MP Library is free software; you can redistribute it and/or
9 dnl modify it under the terms of the GNU Lesser General Public License as
10 dnl published by the Free Software Foundation; either version 3 of the
11 dnl License, or (at your option) any later version.
13 dnl The GNU MP Library is distributed in the hope that it will be useful,
14 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
15 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 dnl Lesser General Public License for more details.
18 dnl You should have received a copy of the GNU Lesser General Public License
19 dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
21 define(`ASM_START',`')
23 dnl Called: PROLOGUE_cpu(GSYM_PREFIX`'foo)
24 dnl EPILOGUE_cpu(GSYM_PREFIX`'foo)
27 define(`PROLOGUE_cpu',
36 define(`EPILOGUE_cpu',
40 dnl This ought to support PIC, but it is unclear how that is done for eABI
53 m4_assert_numargs_range(1,2)
56 ALIGN(ifelse($#,1,2,$2))
65 define(`ASM_END', `dnl')
70 dnl 64-bit "long long" parameters are put in an even-odd pair, skipping an
71 dnl even register if that was in turn. I wish somebody could explain why that
73 define(`BROKEN_LONGLONG_PARAM')