]>
Commit | Line | Data |
---|---|---|
a5544970 | 1 | /* Copyright (C) 2008-2019 Free Software Foundation, Inc. |
d38a64b4 JR |
2 | Contributor: Joern Rennecke <joern.rennecke@embecosm.com> |
3 | on behalf of Synopsys Inc. | |
4 | ||
5 | This file is part of GCC. | |
6 | ||
7 | GCC is free software; you can redistribute it and/or modify it under | |
8 | the terms of the GNU General Public License as published by the Free | |
9 | Software Foundation; either version 3, or (at your option) any later | |
10 | version. | |
11 | ||
12 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
13 | WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 | for more details. | |
16 | ||
17 | Under Section 7 of GPL version 3, you are granted additional | |
18 | permissions described in the GCC Runtime Library Exception, version | |
19 | 3.1, as published by the Free Software Foundation. | |
20 | ||
21 | You should have received a copy of the GNU General Public License and | |
22 | a copy of the GCC Runtime Library Exception along with this program; | |
23 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
24 | <http://www.gnu.org/licenses/>. */ | |
25 | ||
26 | #ifdef __LITTLE_ENDIAN__ | |
27 | #define DBL0L r0 | |
28 | #define DBL0H r1 | |
29 | #define DBL1L r2 | |
30 | #define DBL1H r3 | |
31 | #else | |
32 | #define DBL0L r1 | |
33 | #define DBL0H r0 | |
34 | #define DBL1L r3 | |
35 | #define DBL1H r2 | |
36 | #endif | |
37 | #define add_l add | |
38 | #define asr_l asr | |
39 | #define j_l j | |
40 | #define jne_l jne | |
41 | #define jeq_l jeq | |
42 | #define or_l or | |
43 | #define mov_l mov | |
44 | #define b_l b | |
45 | #define beq_l beq | |
46 | #define bne_l bne | |
47 | #define brne_l brne | |
48 | #define bset_l bset | |
49 | #define sub_l sub | |
50 | #define sub1_l sub1 | |
51 | #define lsr_l lsr | |
52 | #define xor_l xor | |
53 | #define bic_l bic | |
54 | #define bmsk_l bmsk | |
55 | #define bxor_l bxor | |
56 | #define bcs_s blo_s | |
c0ab1970 CZ |
57 | #if defined (__HS__) || defined (__EM__) |
58 | #define MPYHU mpymu | |
59 | #define MPYH mpym | |
60 | #else | |
61 | #define MPYHU mpyhu | |
62 | #define MPYH mpyh | |
63 | #endif |