xref: /netbsd/external/lgpl3/gmp/dist/mpn/pa32/pa-defs.m4 (revision f81b1c5b)
14a1767b4Smrgdivert(-1)
24a1767b4Smrg
34a1767b4Smrgdnl  m4 macros for HPPA assembler.
44a1767b4Smrg
54a1767b4Smrgdnl  Copyright 2002 Free Software Foundation, Inc.
6*f81b1c5bSmrg
74a1767b4Smrgdnl  This file is part of the GNU MP Library.
84a1767b4Smrgdnl
9*f81b1c5bSmrgdnl  The GNU MP Library is free software; you can redistribute it and/or modify
10*f81b1c5bSmrgdnl  it under the terms of either:
114a1767b4Smrgdnl
12*f81b1c5bSmrgdnl    * the GNU Lesser General Public License as published by the Free
13*f81b1c5bSmrgdnl      Software Foundation; either version 3 of the License, or (at your
14*f81b1c5bSmrgdnl      option) any later version.
154a1767b4Smrgdnl
16*f81b1c5bSmrgdnl  or
17*f81b1c5bSmrgdnl
18*f81b1c5bSmrgdnl    * the GNU General Public License as published by the Free Software
19*f81b1c5bSmrgdnl      Foundation; either version 2 of the License, or (at your option) any
20*f81b1c5bSmrgdnl      later version.
21*f81b1c5bSmrgdnl
22*f81b1c5bSmrgdnl  or both in parallel, as here.
23*f81b1c5bSmrgdnl
24*f81b1c5bSmrgdnl  The GNU MP Library is distributed in the hope that it will be useful, but
25*f81b1c5bSmrgdnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
26*f81b1c5bSmrgdnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
27*f81b1c5bSmrgdnl  for more details.
28*f81b1c5bSmrgdnl
29*f81b1c5bSmrgdnl  You should have received copies of the GNU General Public License and the
30*f81b1c5bSmrgdnl  GNU Lesser General Public License along with the GNU MP Library.  If not,
31*f81b1c5bSmrgdnl  see https://www.gnu.org/licenses/.
324a1767b4Smrg
334a1767b4Smrg
344a1767b4Smrgdnl  hppa assembler comments are introduced with ";".
354a1767b4Smrgdnl
364a1767b4Smrgdnl  For cooperation with cpp, apparently lines "# 123" set the line number,
374a1767b4Smrgdnl  and other lines starting with a "#" are ignored.
384a1767b4Smrg
394a1767b4Smrgchangecom(;)
404a1767b4Smrg
414a1767b4Smrg
424a1767b4Smrgdnl  Called: PROLOGUE_cpu(GSYM_PREFIX`'foo)
434a1767b4Smrgdnl          EPILOGUE_cpu(GSYM_PREFIX`'foo)
444a1767b4Smrgdnl
454a1767b4Smrgdnl  These are the same as the basic PROLOGUE_cpu and EPILOGUE_cpu in
464a1767b4Smrgdnl  mpn/asm-defs.m4, but using .proc / .procend.  These are standard and on
474a1767b4Smrgdnl  an ELF system they do what .type and .size normally do.
484a1767b4Smrg
494a1767b4Smrgdefine(`PROLOGUE_cpu',
504a1767b4Smrgm4_assert_numargs(1)
514a1767b4Smrg	`.code
524a1767b4Smrg	ALIGN(8)
534a1767b4Smrg	.export	`$1',entry
544a1767b4Smrg`$1'LABEL_SUFFIX'
554a1767b4Smrg	.proc
564a1767b4Smrg	.callinfo)	dnl  This is really bogus, but allows us to compile
574a1767b4Smrg			dnl  again on hppa machines.
584a1767b4Smrg
594a1767b4Smrg
604a1767b4Smrgdefine(`EPILOGUE_cpu',
614a1767b4Smrgm4_assert_numargs(1)
624a1767b4Smrg`	.procend')
634a1767b4Smrg
644a1767b4Smrgdivert
65