1 /* Copyright (c) 2008 Jeff Johnston  <jjohnstn@redhat.com> */
2 /* These are predefined by new versions of GNU cpp.  */
3 
4 #ifndef __USER_LABEL_PREFIX__
5 #define __USER_LABEL_PREFIX__ _
6 #endif
7 
8 #ifndef __REGISTER_PREFIX__
9 #define __REGISTER_PREFIX__
10 #endif
11 
12 /* ANSI concatenation macros.  */
13 
14 #define CONCAT1(a, b) CONCAT2(a, b)
15 #define CONCAT2(a, b) a ## b
16 
17 /* Use the right prefix for global labels.  */
18 
19 #define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
20 
21 /* Use the right prefix for registers.  */
22 
23 #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
24 
25 #define d0 REG (d0)
26 #define d1 REG (d1)
27 #define d2 REG (d2)
28 #define d3 REG (d3)
29 #define d4 REG (d4)
30 #define d5 REG (d5)
31 #define d6 REG (d6)
32 #define d7 REG (d7)
33 #define a0 REG (a0)
34 #define a1 REG (a1)
35 #define a2 REG (a2)
36 #define a3 REG (a3)
37 #define a4 REG (a4)
38 #define a5 REG (a5)
39 #define a6 REG (a6)
40 #define fp REG (fp)
41 #define sp REG (sp)
42