| #ifndef ARC_NEWLIB_ASM_H |
| #define ARC_NEWLIB_ASM_H |
| |
| /* Copyright (C) 2007, 2008 ARC International (UK) LTD */ |
| |
| /* Code was copied from ARC GCC toolchain, ucLibc packet (GPL) */ |
| |
| #define _ENTRY(name) \ |
| .text ` .balign 4 ` .globl name ` name: |
| #define FUNC(name) .type name,@function |
| #define ENDFUNC0(name) .Lfe_##X##name: .size name,.Lfe_##X##name-name |
| #define ENDFUNC(name) ENDFUNC0(name) |
| #define ENTRY(name) _ENTRY(name) ` FUNC(name) |
| |
| #define add_l add |
| #define bcc_l bcc |
| #define beq_l beq |
| #define bic_l bic |
| #define b_l b |
| #define bne_l bne |
| #define breq_l breq |
| #define brne_l brne |
| #define j_l j |
| #define ldb_l ldb |
| #define ld_l ld |
| #define mov_l mov |
| #define or_l or |
| #define sub_l sub |
| #define tst_l tst |
| |
| #define bcc_s bhs_s |
| |
| #endif /* ARC_NEWLIB_ASM_H */ |