OLD | NEW |
1 /* micromips-opc.c. microMIPS opcode table. | 1 /* micromips-opc.c. microMIPS opcode table. |
2 Copyright 2008 Free Software Foundation, Inc. | 2 Copyright 2008, 2012 Free Software Foundation, Inc. |
3 Contributed by Chao-ying Fu, MIPS Technologies, Inc. | 3 Contributed by Chao-ying Fu, MIPS Technologies, Inc. |
4 | 4 |
5 This file is part of the GNU opcodes library. | 5 This file is part of the GNU opcodes library. |
6 | 6 |
7 This library is free software; you can redistribute it and/or modify | 7 This library is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3, or (at your option) | 9 the Free Software Foundation; either version 3, or (at your option) |
10 any later version. | 10 any later version. |
11 | 11 |
12 It is distributed in the hope that it will be useful, but WITHOUT | 12 It is distributed in the hope that it will be useful, but WITHOUT |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
15 License for more details. | 15 License for more details. |
16 | 16 |
17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
18 along with this file; see the file COPYING. If not, write to the | 18 along with this file; see the file COPYING. If not, write to the |
19 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, | 19 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, |
20 MA 02110-1301, USA. */ | 20 MA 02110-1301, USA. */ |
21 | 21 |
| 22 #include "sysdep.h" |
22 #include <stdio.h> | 23 #include <stdio.h> |
23 #include "sysdep.h" | |
24 #include "opcode/mips.h" | 24 #include "opcode/mips.h" |
25 | 25 |
26 #define UBD INSN_UNCOND_BRANCH_DELAY | 26 #define UBD INSN_UNCOND_BRANCH_DELAY |
27 #define CBD INSN_COND_BRANCH_DELAY | 27 #define CBD INSN_COND_BRANCH_DELAY |
28 #define NODS INSN_NO_DELAY_SLOT | 28 #define NODS INSN_NO_DELAY_SLOT |
29 #define TRAP INSN_NO_DELAY_SLOT | 29 #define TRAP INSN_NO_DELAY_SLOT |
30 #define SM INSN_STORE_MEMORY | 30 #define SM INSN_STORE_MEMORY |
31 #define BD16 INSN2_BRANCH_DELAY_16BIT /* Used in pinfo2. */ | 31 #define BD16 INSN2_BRANCH_DELAY_16BIT /* Used in pinfo2. */ |
32 #define BD32 INSN2_BRANCH_DELAY_32BIT /* Used in pinfo2. */ | 32 #define BD32 INSN2_BRANCH_DELAY_32BIT /* Used in pinfo2. */ |
33 | 33 |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 {"wsbh", "t,r", 0x00007b3c, 0xfc00ffff, WR_t|RD_s, 0,
I1 }, | 962 {"wsbh", "t,r", 0x00007b3c, 0xfc00ffff, WR_t|RD_s, 0,
I1 }, |
963 {"xor", "mf,mt,mg", 0x4440, 0xffc0, 0, WR_mf|RD
_mf|RD_mg, I1 }, | 963 {"xor", "mf,mt,mg", 0x4440, 0xffc0, 0, WR_mf|RD
_mf|RD_mg, I1 }, |
964 {"xor", "mf,mg,mx", 0x4440, 0xffc0, 0, WR_mf|RD
_mf|RD_mg, I1 }, | 964 {"xor", "mf,mg,mx", 0x4440, 0xffc0, 0, WR_mf|RD
_mf|RD_mg, I1 }, |
965 {"xor", "d,v,t", 0x00000310, 0xfc0007ff, WR_d|RD_s|RD_t, 0,
I1 }, | 965 {"xor", "d,v,t", 0x00000310, 0xfc0007ff, WR_d|RD_s|RD_t, 0,
I1 }, |
966 {"xor", "t,r,I", 0, (int) M_XOR_I, INSN_MACRO, 0,
I1 }, | 966 {"xor", "t,r,I", 0, (int) M_XOR_I, INSN_MACRO, 0,
I1 }, |
967 {"xori", "t,r,i", 0x70000000, 0xfc000000, WR_t|RD_s, 0,
I1 }, | 967 {"xori", "t,r,i", 0x70000000, 0xfc000000, WR_t|RD_s, 0,
I1 }, |
968 }; | 968 }; |
969 | 969 |
970 const int bfd_micromips_num_opcodes = | 970 const int bfd_micromips_num_opcodes = |
971 ((sizeof micromips_opcodes) / (sizeof (micromips_opcodes[0]))); | 971 ((sizeof micromips_opcodes) / (sizeof (micromips_opcodes[0]))); |
OLD | NEW |