2 * Alpha optimized DSP utils
3 * copyright (c) 2002 Falk Hueffner <falk@debian.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 /* Some BSDs don't seem to have regdef.h... sigh */
21 #ifndef alpha_regdef_h
22 #define alpha_regdef_h
24 #define v0 $0 /* function return value */
26 #define t0 $1 /* temporary registers (caller-saved) */
35 #define s0 $9 /* saved-registers (callee-saved registers) */
42 #define fp s6 /* frame-pointer (s6 in frame-less procedures) */
44 #define a0 $16 /* argument registers (caller-saved) */
51 #define t8 $22 /* more temps (caller-saved) */
55 #define ra $26 /* return address register */
58 #define pv t12 /* procedure-variable register */
59 #define AT $at /* assembler temporary */
60 #define gp $29 /* global pointer */
61 #define sp $30 /* stack pointer */
62 #define zero $31 /* reads as zero, writes are noops */
64 #endif /* alpha_regdef_h */