3 dnl m4 macros for alpha assembler on unicos.
6 dnl Copyright 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
8 dnl This file is part of the GNU MP Library.
10 dnl The GNU MP Library is free software; you can redistribute it and/or
11 dnl modify it under the terms of the GNU Lesser General Public License as
12 dnl published by the Free Software Foundation; either version 3 of the
13 dnl License, or (at your option) any later version.
15 dnl The GNU MP Library is distributed in the hope that it will be useful,
16 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
17 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 dnl Lesser General Public License for more details.
20 dnl You should have received a copy of the GNU Lesser General Public License
21 dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
24 dnl Note that none of the standard GMP_ASM_ autoconf tests are done for
25 dnl unicos, so none of the config.m4 results can be used here.
27 dnl No underscores on unicos
44 dnl Called: PROLOGUE_cpu(GSYM_PREFIX`'foo[,gp|noalign])
45 dnl EPILOGUE_cpu(GSYM_PREFIX`'foo)
47 define(`PROLOGUE_cpu',
48 m4_assert_numargs_range(1,2)
50 `ifelse(`$2',noalign,,
51 `ifelse(`$2',,,`m4_error(`Unrecognised PROLOGUE parameter
53 .stack 192 ; What does this mean? Only Cray knows.
54 .psect $1@code,code,cache
57 define(`EPILOGUE_cpu',
62 dnl Usage: LDGP(dst,src)
64 dnl Emit an "ldgp dst,src", but only on systems using a GOT (which unicos
72 dnl Usage: EXTERN(variable_name)
94 dnl Load a symbolic address into a register
103 dnl Usage: ALIGN(bytes)
105 dnl Unicos assembler .align emits zeros, even in code segments, so disable
108 dnl GCC uses a macro emiting nops until the desired alignment is reached
109 dnl (see unicosmk_file_start in alpha.c). Could do something like that if
110 dnl we cared. The maximum desired alignment must be established at the
111 dnl start of the section though, since of course emitting nops only
112 dnl advances relative to the section beginning.