import preliminary ppc work by rdp.
[musl] / arch / ppc / bits / asm.h
1 /*      $NetBSD: asm.h,v 1.29 2010/03/09 22:36:41 matt Exp $    */
2
3 /*
4  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
5  * Copyright (C) 1995, 1996 TooLs GmbH.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  * 3. All advertising materials mentioning features or use of this software
17  *    must display the following acknowledgement:
18  *      This product includes software developed by TooLs GmbH.
19  * 4. The name of TooLs GmbH may not be used to endorse or promote products
20  *    derived from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
23  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25  * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33
34 #ifndef _PPC_BITS_ASM_H_
35 #define _PPC_BITS_ASM_H_
36
37 #define cr0     0
38 #define cr1     1
39 #define cr2     2
40 #define cr3     3
41 #define cr4     4
42 #define cr5     5
43 #define cr6     6
44 #define cr7     7
45
46 /* General Purpose Registers (GPRs) */
47 #define r0      0
48 #define r1      1
49 #define r2      2
50 #define r3      3
51 #define r4      4
52 #define r5      5
53 #define r6      6
54 #define r7      7
55 #define r8      8
56 #define r9      9
57 #define r10     10
58 #define r11     11
59 #define r12     12
60 #define r13     13
61 #define r14     14
62 #define r15     15
63 #define r16     16
64 #define r17     17
65 #define r18     18
66 #define r19     19
67 #define r20     20
68 #define r21     21
69 #define r22     22
70 #define r23     23
71 #define r24     24
72 #define r25     25
73 #define r26     26
74 #define r27     27
75 #define r28     28
76 #define r29     29
77 #define r30     30
78 #define r31     31
79
80 /* Floating Point Registers (FPRs) */
81 #define fr0     0
82 #define fr1     1
83 #define fr2     2
84 #define fr3     3
85 #define fr4     4
86 #define fr5     5
87 #define fr6     6
88 #define fr7     7
89 #define fr8     8
90 #define fr9     9
91 #define fr10    10
92 #define fr11    11
93 #define fr12    12
94 #define fr13    13
95 #define fr14    14
96 #define fr15    15
97 #define fr16    16
98 #define fr17    17
99 #define fr18    18
100 #define fr19    19
101 #define fr20    20
102 #define fr21    21
103 #define fr22    22
104 #define fr23    23
105 #define fr24    24
106 #define fr25    25
107 #define fr26    26
108 #define fr27    27
109 #define fr28    28
110 #define fr29    29
111 #define fr30    30
112 #define fr31    31
113
114 #endif /* _PPC_BITS_ASM_H_ */