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