opcodes/arc: Move instruction length logic to new function
[external/binutils.git] / opcodes / ChangeLog
1 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
2
3         * arc-dis.c (arc_insn_length): New function.
4         (print_insn_arc): Use arc_insn_length, change insnLen to unsigned.
5         (find_format): Change insnLen parameter to unsigned.
6
7 2016-04-13  Nick Clifton  <nickc@redhat.com>
8
9         PR target/19937
10         * v850-opc.c (v850_opcodes): Correct masks for long versions of
11         the LD.B and LD.BU instructions.
12
13 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
14
15         * arc-dis.c (find_format): Check for extension flags.
16         (print_flags): New function.
17         (print_insn_arc): Update for .extCondCode, .extCoreRegister and
18         .extAuxRegister.
19         * arc-ext.c (arcExtMap_coreRegName): Use
20         LAST_EXTENSION_CORE_REGISTER.
21         (arcExtMap_coreReadWrite): Likewise.
22         (dump_ARC_extmap): Update printing.
23         * arc-opc.c (arc_flag_classes): Add F_CLASS_EXTEND flag.
24         (arc_aux_regs): Add cpu field.
25         * arc-regs.h: Add cpu field, lower case name aux registers.
26
27 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
28
29         * arc-tbl.h: Add rtsc, sleep with no arguments.
30
31 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
32
33         * arc-opc.c (flags_none, flags_f, flags_cc, flags_ccf):
34         Initialize.
35         (arg_none, arg_32bit_rarbrc, arg_32bit_zarbrc, arg_32bit_rbrbrc)
36         (arg_32bit_rarbu6, arg_32bit_zarbu6, arg_32bit_rbrbu6)
37         (arg_32bit_rbrbs12, arg_32bit_ralimmrc, arg_32bit_rarblimm)
38         (arg_32bit_zalimmrc, arg_32bit_zarblimm, arg_32bit_rbrblimm)
39         (arg_32bit_ralimmu6, arg_32bit_zalimmu6, arg_32bit_zalimms12)
40         (arg_32bit_ralimmlimm, arg_32bit_zalimmlimm, arg_32bit_rbrc)
41         (arg_32bit_zarc, arg_32bit_rbu6, arg_32bit_zau6, arg_32bit_rblimm)
42         (arg_32bit_zalimm, arg_32bit_limmrc, arg_32bit_limmu6)
43         (arg_32bit_limms12, arg_32bit_limmlimm): Likewise.
44         (arc_opcode arc_opcodes): Null terminate the array.
45         (arc_num_opcodes): Remove.
46         * arc-ext.h (INSERT_XOP): Define.
47         (extInstruction_t): Likewise.
48         (arcExtMap_instName): Delete.
49         (arcExtMap_insn): New function.
50         (arcExtMap_genOpcode): Likewise.
51         * arc-ext.c (ExtInstruction): Remove.
52         (create_map): Zero initialize instruction fields.
53         (arcExtMap_instName): Remove.
54         (arcExtMap_insn): New function.
55         (dump_ARC_extmap): More info while debuging.
56         (arcExtMap_genOpcode): New function.
57         * arc-dis.c (find_format): New function.
58         (print_insn_arc): Use find_format.
59         (arc_get_disassembler): Enable dump_ARC_extmap only when
60         debugging.
61
62 2016-04-11  Maciej W. Rozycki  <macro@imgtec.com>
63
64         * mips-dis.c (print_mips16_insn_arg): Mask unused extended
65         instruction bits out.
66
67 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
68
69         * arc-nps400-tbl.h: Add schd, sync, and hwschd instructions.
70         * arc-opc.c (arc_flag_operands): Add new flags.
71         (arc_flag_classes): Add new classes.
72
73 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
74
75         * arc-opc.c (arc_opcodes): Extend comment to discus table layout.
76
77 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
78
79         * arc-nps400-tbl.h: Add movbi, decode1, fbset, fbclear, encode0,
80         encode1, rflt, crc16, and crc32 instructions.
81         * arc-opc.c (arc_flag_operands): Add F_NPS_R.
82         (arc_flag_classes): Add C_NPS_R.
83         (insert_nps_bitop_size_2b): New function.
84         (extract_nps_bitop_size_2b): Likewise.
85         (insert_nps_bitop_uimm8): Likewise.
86         (extract_nps_bitop_uimm8): Likewise.
87         (arc_operands): Add new operand entries.
88
89 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
90
91         * arc-regs.h: Add a new subclass field.  Add double assist
92         accumulator register values.
93         * arc-tbl.h: Use DPA subclass to mark the double assist
94         instructions.  Use DPX/SPX subclas to mark the FPX instructions.
95         * arc-opc.c (RSP): Define instead of SP.
96         (arc_aux_regs): Add the subclass field.
97
98 2016-04-05  Jiong Wang  <jiong.wang@arm.com>
99
100         * arm-dis.c: Support FP16 vmul, vmla, vmls (by scalar).
101
102 2016-03-31  Andrew Burgess  <andrew.burgess@embecosm.com>
103
104         * arc-opc.c (arc_operands): Fix operand flags for NPS_R_DST, and
105         NPS_R_SRC1.
106
107 2016-03-30  Andrew Burgess  <andrew.burgess@embecosm.com>
108
109         * arc-nps400-tbl.h: Add a header comment, and fix some whitespace
110         issues.  No functional changes.
111
112 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
113
114         * arc-regs.h (IC_RAM_ADDRESS, IC_TAG, IC_WP, IC_DATA, CONTROL0)
115         (AX2, AY2, MX2, MY2, AY0, AY1, DC_RAM_ADDR, DC_TAG, CONTROL1)
116         (RTT): Remove duplicate.
117         (LCDINSTR, LCDDATA, LCDSTAT, CC_*, PCT_COUNT*, PCT_SNAP*)
118         (PCT_CONFIG*): Remove.
119         (D1L, D1H, D2H, D2L): Define.
120
121 2016-03-29  Claudiu Zissulescu  <claziss@synopsys.com>
122
123         * arc-ext-tbl.h (dsp_fp_i2flt): Fix typo.
124
125 2016-03-29  Claudiu Zissulescu  <claziss@synopsys.com>
126
127         * arc-tbl.h (invld07): Remove.
128         * arc-ext-tbl.h: New file.
129         * arc-dis.c (FIELDA, FIELDB, FIELDC): Remove.
130         * arc-opc.c (arc_opcodes): Add ext-tbl include.
131
132 2016-03-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
133
134         Fix -Wstack-usage warnings.
135         * aarch64-dis.c (print_operands): Substitute size.
136         * aarch64-opc.c (print_register_offset_address): Substitute tblen.
137
138 2016-03-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
139
140         * sparc-opc.c (sparc_opcodes): Reorder entries for `rd' in order
141         to get a proper diagnostic when an invalid ASR register is used.
142
143 2016-03-22  Nick Clifton  <nickc@redhat.com>
144
145         * configure: Regenerate.
146
147 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
148
149         * arc-nps400-tbl.h: New file.
150         * arc-opc.c: Add top level comment.
151         (insert_nps_3bit_dst): New function.
152         (extract_nps_3bit_dst): New function.
153         (insert_nps_3bit_src2): New function.
154         (extract_nps_3bit_src2): New function.
155         (insert_nps_bitop_size): New function.
156         (extract_nps_bitop_size): New function.
157         (arc_flag_operands): Add nps400 entries.
158         (arc_flag_classes): Add nps400 entries.
159         (arc_operands): Add nps400 entries.
160         (arc_opcodes): Add nps400 include.
161
162 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
163
164         * arc-opc.c (arc_flag_classes): Convert all flag classes to use
165         the new class enum values.
166
167 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
168
169         * arc-dis.c (print_insn_arc): Handle nps400.
170
171 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
172
173         * arc-opc.c (BASE): Delete.
174
175 2016-03-18  Nick Clifton  <nickc@redhat.com>
176
177         PR target/19721
178         * aarch64-tbl.h (aarch64_opcode_table): Fix type of second operand
179         of MOV insn that aliases an ORR insn.
180
181 2016-03-16  Jiong Wang  <jiong.wang@arm.com>
182
183         * arm-dis.c (neon_opcodes): Support new FP16 instructions.
184
185 2016-03-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
186
187         * mcore-opc.h: Add const qualifiers.
188         * microblaze-opc.h (struct op_code_struct): Likewise.
189         * sh-opc.h: Likewise.
190         * tic4x-dis.c (tic4x_print_indirect): Likewise.
191         (tic4x_print_op): Likewise.
192
193 2016-03-02  Alan Modra  <amodra@gmail.com>
194
195         * or1k-desc.h: Regenerate.
196         * fr30-ibld.c: Regenerate.
197         * rl78-decode.c: Regenerate.
198
199 2016-03-01  Nick Clifton  <nickc@redhat.com>
200
201         PR target/19747
202         * rl78-dis.c (print_insn_rl78_common): Fix typo.
203
204 2016-02-24  Renlin Li  <renlin.li@arm.com>
205
206         * arm-dis.c (coprocessor_opcodes): Add fp16 instruction entries.
207         (print_insn_coprocessor): Support fp16 instructions.
208
209 2016-02-24  Renlin Li  <renlin.li@arm.com>
210
211         * arm-dis.c (print_insn_coprocessor): Fix mask for vsel, vmaxnm,
212         vminnm, vrint(mpna).
213
214 2016-02-24  Renlin Li  <renlin.li@arm.com>
215
216         * arm-dis.c (print_insn_coprocessor): Check co-processor number for
217         cpd/cpd2, mcr/mcr2, mrc/mrc2, ldc/ldc2, stc/stc2.
218
219 2016-02-15  H.J. Lu  <hongjiu.lu@intel.com>
220
221         * i386-dis.c (print_insn): Parenthesize expression to prevent
222         truncated addresses.
223         (OP_J): Likewise.
224
225 2016-02-10  Claudiu Zissulescu  <claziss@synopsys.com>
226             Janek van Oirschot  <jvanoirs@synopsys.com>
227
228         * arc-opc.c (arc_relax_opcodes, arc_num_relax_opcodes): New
229         variable.
230
231 2016-02-04  Nick Clifton  <nickc@redhat.com>
232
233         PR target/19561
234         * msp430-dis.c (print_insn_msp430): Add a special case for
235         decoding an RRC instruction with the ZC bit set in the extension
236         word.
237
238 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
239
240         * cgen-ibld.in (insert_normal): Rework calculation of shift.
241         * epiphany-ibld.c: Regenerate.
242         * fr30-ibld.c: Regenerate.
243         * frv-ibld.c: Regenerate.
244         * ip2k-ibld.c: Regenerate.
245         * iq2000-ibld.c: Regenerate.
246         * lm32-ibld.c: Regenerate.
247         * m32c-ibld.c: Regenerate.
248         * m32r-ibld.c: Regenerate.
249         * mep-ibld.c: Regenerate.
250         * mt-ibld.c: Regenerate.
251         * or1k-ibld.c: Regenerate.
252         * xc16x-ibld.c: Regenerate.
253         * xstormy16-ibld.c: Regenerate.
254
255 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
256
257         * epiphany-dis.c: Regenerated from latest cpu files.
258
259 2016-02-01  Michael McConville  <mmcco@mykolab.com>
260
261         * cgen-dis.c (count_decodable_bits): Use unsigned value for mask
262         test bit.
263
264 2016-01-25  Renlin Li  <renlin.li@arm.com>
265
266         * arm-dis.c (mapping_symbol_for_insn): New function.
267         (find_ifthen_state): Call mapping_symbol_for_insn().
268
269 2016-01-20  Matthew Wahab  <matthew.wahab@arm.com>
270
271         * aarch64-opc.c (operand_general_constraint_met_p): Check validity
272         of MSR UAO immediate operand.
273
274 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
275
276         * mips-dis.c (print_insn_micromips): Remove 48-bit microMIPS
277         instruction support.
278
279 2016-01-17  Alan Modra  <amodra@gmail.com>
280
281         * configure: Regenerate.
282
283 2016-01-14  Nick Clifton  <nickc@redhat.com>
284
285         * rl78-decode.opc (rl78_decode_opcode): Add 's' operand to movw
286         instructions that can support stack pointer operations.
287         * rl78-decode.c: Regenerate.
288         * rl78-dis.c: Fix display of stack pointer in MOVW based
289         instructions.
290
291 2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>
292
293         * aarch64-opc.c (aarch64_sys_reg_supported_p): Merge conditionals
294         testing for RAS support.  Add checks for erxfr_el1, erxctlr_el1,
295         erxtatus_el1 and erxaddr_el1.
296
297 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
298
299         * arm-dis.c (arm_opcodes): Add "esb".
300         (thumb_opcodes): Likewise.
301
302 2016-01-11  Peter Bergner <bergner@vnet.ibm.com>
303
304         * ppc-opc.c <xscmpnedp>: Delete.
305         <xvcmpnedp>: Likewise.
306         <xvcmpnedp.>: Likewise.
307         <xvcmpnesp>: Likewise.
308         <xvcmpnesp.>: Likewise.
309
310 2016-01-08  Andreas Schwab  <schwab@linux-m68k.org>
311
312         PR gas/13050
313         * m68k-opc.c (moveb, movew): For ISA_B/C only allow #,d(An) in
314         addition to ISA_A.
315
316 2016-01-01  Alan Modra  <amodra@gmail.com>
317
318         Update year range in copyright notice of all files.
319
320 For older changes see ChangeLog-2015
321 \f
322 Copyright (C) 2016 Free Software Foundation, Inc.
323
324 Copying and distribution of this file, with or without modification,
325 are permitted in any medium without royalty provided the copyright
326 notice and this notice are preserved.
327
328 Local Variables:
329 mode: change-log
330 left-margin: 8
331 fill-column: 74
332 version-control: never
333 End: