Statistics
| Branch: | Revision:

root / target-arm / op_template.h @ 2c0262af

History | View | Annotate | Download (1.2 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 2c0262af bellard
void OPPROTO glue(op_movl_T0_, REGNAME)(void)
23 2c0262af bellard
{
24 2c0262af bellard
    T0 = REG;
25 2c0262af bellard
}
26 2c0262af bellard
27 2c0262af bellard
void OPPROTO glue(op_movl_T1_, REGNAME)(void)
28 2c0262af bellard
{
29 2c0262af bellard
    T1 = REG;
30 2c0262af bellard
}
31 2c0262af bellard
32 2c0262af bellard
void OPPROTO glue(op_movl_T2_, REGNAME)(void)
33 2c0262af bellard
{
34 2c0262af bellard
    T2 = REG;
35 2c0262af bellard
}
36 2c0262af bellard
37 2c0262af bellard
void OPPROTO glue(glue(op_movl_, REGNAME), _T0)(void)
38 2c0262af bellard
{
39 2c0262af bellard
    REG = T0;
40 2c0262af bellard
}
41 2c0262af bellard
42 2c0262af bellard
void OPPROTO glue(glue(op_movl_, REGNAME), _T1)(void)
43 2c0262af bellard
{
44 2c0262af bellard
    REG = T1;
45 2c0262af bellard
}
46 2c0262af bellard
47 2c0262af bellard
#undef REG
48 2c0262af bellard
#undef REGNAME