~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to reference/newlib/arm_asm.h

  • Committer: Michael Hope
  • Date: 2012-06-07 04:10:34 UTC
  • Revision ID: michael.hope@linaro.org-20120607041034-xrwkulqs28ac427z
Updated the newlib reference copy to 1.20+2012-06-07.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 
63
63
 
64
64
/* Now some macros for common instruction sequences.  */
65
 
 
 
65
#ifdef __ASSEMBLER__
 
66
.macro  RETURN     cond=
 
67
#if defined (_ISA_ARM_4T) || defined (_ISA_THUMB_1)
 
68
        bx\cond lr
 
69
#else
 
70
        mov\cond pc, lr
 
71
#endif
 
72
.endm
 
73
 
 
74
.macro optpld   base, offset=#0
 
75
#if defined (_ISA_ARM_7)
 
76
        pld     [\base, \offset]
 
77
#endif
 
78
.endm
 
79
 
 
80
#else
66
81
asm(".macro  RETURN     cond=\n\t"
67
82
#if defined (_ISA_ARM_4T) || defined (_ISA_THUMB_1)
68
83
    "bx\\cond   lr\n\t"
78
93
#endif
79
94
    ".endm"
80
95
    );
 
96
#endif
81
97
 
82
98
#endif /* ARM_ASM__H */