root / target-sparc / op_template.h @ ea785922
History | View | Annotate | Download (1.2 kB)
1 | 7a3f1944 | bellard | /*
|
---|---|---|---|
2 | 7a3f1944 | bellard | * SPARC micro operations (templates for various register related
|
3 | 7a3f1944 | bellard | * operations)
|
4 | 7a3f1944 | bellard | *
|
5 | 7a3f1944 | bellard | * Copyright (c) 2003 Fabrice Bellard
|
6 | 7a3f1944 | bellard | *
|
7 | 7a3f1944 | bellard | * This library is free software; you can redistribute it and/or
|
8 | 7a3f1944 | bellard | * modify it under the terms of the GNU Lesser General Public
|
9 | 7a3f1944 | bellard | * License as published by the Free Software Foundation; either
|
10 | 7a3f1944 | bellard | * version 2 of the License, or (at your option) any later version.
|
11 | 7a3f1944 | bellard | *
|
12 | 7a3f1944 | bellard | * This library is distributed in the hope that it will be useful,
|
13 | 7a3f1944 | bellard | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 | 7a3f1944 | bellard | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15 | 7a3f1944 | bellard | * Lesser General Public License for more details.
|
16 | 7a3f1944 | bellard | *
|
17 | 7a3f1944 | bellard | * You should have received a copy of the GNU Lesser General Public
|
18 | 7a3f1944 | bellard | * License along with this library; if not, write to the Free Software
|
19 | 7a3f1944 | bellard | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
20 | 7a3f1944 | bellard | */
|
21 | 7a3f1944 | bellard | |
22 | 7a3f1944 | bellard | void OPPROTO glue(op_movl_T0_, REGNAME)(void) |
23 | 7a3f1944 | bellard | { |
24 | 7a3f1944 | bellard | T0 = REG; |
25 | 7a3f1944 | bellard | } |
26 | 7a3f1944 | bellard | |
27 | 7a3f1944 | bellard | void OPPROTO glue(op_movl_T1_, REGNAME)(void) |
28 | 7a3f1944 | bellard | { |
29 | 7a3f1944 | bellard | T1 = REG; |
30 | 7a3f1944 | bellard | } |
31 | 7a3f1944 | bellard | |
32 | 7a3f1944 | bellard | void OPPROTO glue(op_movl_T2_, REGNAME)(void) |
33 | 7a3f1944 | bellard | { |
34 | 7a3f1944 | bellard | T2 = REG; |
35 | 7a3f1944 | bellard | } |
36 | 7a3f1944 | bellard | |
37 | 7a3f1944 | bellard | void OPPROTO glue(glue(op_movl_, REGNAME), _T0)(void) |
38 | 7a3f1944 | bellard | { |
39 | 7a3f1944 | bellard | REG = T0; |
40 | 7a3f1944 | bellard | } |
41 | 7a3f1944 | bellard | |
42 | 7a3f1944 | bellard | void OPPROTO glue(glue(op_movl_, REGNAME), _T1)(void) |
43 | 7a3f1944 | bellard | { |
44 | 7a3f1944 | bellard | REG = T1; |
45 | 7a3f1944 | bellard | } |
46 | 7a3f1944 | bellard | |
47 | 7a3f1944 | bellard | #undef REG
|
48 | 7a3f1944 | bellard | #undef REGNAME |