OLD | NEW |
1 /* Table of opcodes for the sparc. | 1 /* Table of opcodes for the sparc. |
2 Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 2 Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
3 2000, 2002, 2004, 2005, 2006, 2007, 2008, 2011 | 3 2000, 2002, 2004, 2005, 2006, 2007, 2008, 2011, 2012 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 | 5 |
6 This file is part of the GNU opcodes library. | 6 This file is part of the GNU opcodes library. |
7 | 7 |
8 This library is free software; you can redistribute it and/or modify | 8 This library is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3, or (at your option) | 10 the Free Software Foundation; either version 3, or (at your option) |
11 any later version. | 11 any later version. |
12 | 12 |
13 It is distributed in the hope that it will be useful, but WITHOUT | 13 It is distributed in the hope that it will be useful, but WITHOUT |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
16 License for more details. | 16 License for more details. |
17 | 17 |
18 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
19 along with this file; see the file COPYING. If not, write to the | 19 along with this file; see the file COPYING. If not, write to the |
20 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, | 20 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, |
21 MA 02110-1301, USA. */ | 21 MA 02110-1301, USA. */ |
22 | 22 |
23 | 23 |
24 /* FIXME-someday: perhaps the ,a's and such should be embedded in the | 24 /* FIXME-someday: perhaps the ,a's and such should be embedded in the |
25 instruction's name rather than the args. This would make gas faster, pinsn | 25 instruction's name rather than the args. This would make gas faster, pinsn |
26 slower, but would mess up some macros a bit. xoxorich. */ | 26 slower, but would mess up some macros a bit. xoxorich. */ |
27 | 27 |
| 28 #include "sysdep.h" |
28 #include <stdio.h> | 29 #include <stdio.h> |
29 #include "sysdep.h" | |
30 #include "opcode/sparc.h" | 30 #include "opcode/sparc.h" |
31 | 31 |
32 /* Some defines to make life easy. */ | 32 /* Some defines to make life easy. */ |
33 #define MASK_V6 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V6) | 33 #define MASK_V6 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V6) |
34 #define MASK_V7 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V7) | 34 #define MASK_V7 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V7) |
35 #define MASK_V8 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V8) | 35 #define MASK_V8 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V8) |
36 #define MASK_SPARCLET SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_SPARCLET) | 36 #define MASK_SPARCLET SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_SPARCLET) |
37 #define MASK_SPARCLITE SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_SPARCLITE) | 37 #define MASK_SPARCLITE SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_SPARCLITE) |
38 #define MASK_V9 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V9) | 38 #define MASK_V9 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V9) |
39 #define MASK_V9A SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V9A) | 39 #define MASK_V9A SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V9A) |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 { | 94 { |
95 const struct sparc_opcode_arch *p; | 95 const struct sparc_opcode_arch *p; |
96 | 96 |
97 for (p = &sparc_opcode_archs[0]; p->name; ++p) | 97 for (p = &sparc_opcode_archs[0]; p->name; ++p) |
98 if (strcmp (name, p->name) == 0) | 98 if (strcmp (name, p->name) == 0) |
99 return (enum sparc_opcode_arch_val) (p - &sparc_opcode_archs[0]); | 99 return (enum sparc_opcode_arch_val) (p - &sparc_opcode_archs[0]); |
100 | 100 |
101 return SPARC_OPCODE_ARCH_BAD; | 101 return SPARC_OPCODE_ARCH_BAD; |
102 } | 102 } |
103 | 103 |
error: old chunk mismatch |
None
OLD | NEW |