1 /* ARM memory operations. */
3 /* Load from address T1 into T0. */
4 #define MEM_LD_OP(name) \
5 void OPPROTO glue(op_ld##name,MEMSUFFIX)(void) \
7 T0 = glue(ld##name,MEMSUFFIX)(T1); \
19 /* Store T0 to address T1. */
20 #define MEM_ST_OP(name) \
21 void OPPROTO glue(op_st##name,MEMSUFFIX)(void) \
23 glue(st##name,MEMSUFFIX)(T1, T0); \
33 /* Swap T0 with memory at address T1. */
34 /* ??? Is this exception safe? */
35 #define MEM_SWP_OP(name, lname) \
36 void OPPROTO glue(op_swp##name,MEMSUFFIX)(void) \
40 tmp = glue(ld##lname,MEMSUFFIX)(T1); \
41 glue(st##name,MEMSUFFIX)(T1, T0); \
52 /* Floating point load/store. Address is in T1 */
53 #define VFP_MEM_OP(p, w) \
54 void OPPROTO glue(op_vfp_ld##p,MEMSUFFIX)(void) \
56 FT0##p = glue(ldf##w,MEMSUFFIX)(T1); \
59 void OPPROTO glue(op_vfp_st##p,MEMSUFFIX)(void) \
61 glue(stf##w,MEMSUFFIX)(T1, FT0##p); \