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