Skip to content

Commit a117b0a

Browse files
Yoshinori Satonickclifton
authored andcommitted
Add support for RX V2 Instruction Set
binutils * readelf.c(get_machine_flags): Add v2 flag. gas * config/rx-defs.h(rx_cpu_type): Add RXV2 type. * config/tc-rx.c(cpu_type_list): New type lookup table. (md_parse_option): Use lookup table for choose cpu. (md_show_usage): Add rxv2 for mcpu option. * doc/c-rx.texi: Likewise. * config/rx-parse.y: Add v2 instructions and ACC register. (rx_check_v2): check v2 type. include/elf * rx.h(E_FLAG_RX_V2): New RXv2 type. include/opcode * rx.h: Add new instructions. opcoes * rx-deocde.opc(rx_decode_opcode): Add new instructions pattern. * rx-dis.c(register_name): Add new register. gas/testsuite * gas/rx/emaca.d: New. * gas/rx/emaca.sm: New. * gas/rx/emsba.d: New. * gas/rx/emsba.sm: New. * gas/rx/emula.d: New. * gas/rx/emula.sm: New. * gas/rx/fadd.d: Add new pattern. * gas/rx/fadd.sm: Add new pattern. * gas/rx/fmul.d: Add new pattern. * gas/rx/fmul.sm: Add new pattern. * gas/rx/fsqrt.d: New. * gas/rx/fsqrt.sm: New. * gas/rx/fsub.d: Add new pattern. * gas/rx/fsub.sm: Add new pattern. * gas/rx/ftou.d: New. * gas/rx/ftou.sm: New. * gas/rx/maclh.d: New. * gas/rx/maclh.sm: New. * gas/rx/maclo.d: Add new pattern. * gas/rx/maclo.sm: Add new pattern. * gas/rx/macros.inc: Add new register. * gas/rx/movco.d: New. * gas/rx/movco.sm: New. * gas/rx/movli.d: New. * gas/rx/movli.sm: New. * gas/rx/msbhi.d: New. * gas/rx/msbhi.sm: New. * gas/rx/msblh.d: New. * gas/rx/msblh.sm: New. * gas/rx/msblo.d: New. * gas/rx/msblo.sm: New. * gas/rx/mullh.d: New. * gas/rx/mullh.sm: New. * gas/rx/mvfacgu.d: New. * gas/rx/mvfacgu.sm: New. * gas/rx/mvfachi.d: Add new pattern. * gas/rx/mvfachi.sm: Add new pattern. * gas/rx/mvfaclo.d: Add new pattern. * gas/rx/mvfaclo.sm: Add new pattern. * gas/rx/mvfacmi.d: Add new pattern. * gas/rx/mvfacmi.sm: Add new pattern. * gas/rx/mvfc.d: Add new pattern. * gas/rx/mvtacgu.d: New. * gas/rx/mvtacgu.sm: New. * gas/rx/mvtc.d: Add new pattern. * gas/rx/popc.d: Add new pattern. * gas/rx/pushc.d: Add new pattern. * gas/rx/racl.d: New. * gas/rx/racl.sm: New. * gas/rx/racw.d: Add new pattern. * gas/rx/racw.sm: Add new pattern. * gas/rx/rdacl.d: New. * gas/rx/rdacl.sm: New. * gas/rx/rdacw.d: New. * gas/rx/rdacw.sm: New. * gas/rx/rx.exp: Add option. * gas/rx/stnz.d: Add new pattern. * gas/rx/stnz.sm: Add new pattern. * gas/rx/stz.d: Add new pattern. * gas/rx/stz.sm: Add new pattern. * gas/rx/utof.d: New. * gas/rx/utof.sm: New.
1 parent ef60345 commit a117b0a

92 files changed

Lines changed: 5065 additions & 2633 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎binutils/ChangeLog‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2015-12-14 Yoshinori Sato <ysato@users.sourceforge.jp>
2+
3+
* readelf.c (get_machine_flags): Add support for RX v2 flag.
4+
15
2015-12-14 Jan Beulich <jbeulich@suse.com>
26

37
* nm.c: Include coff/external.h, coff/internal.h, and

‎binutils/readelf.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3376,6 +3376,8 @@ get_machine_flags (unsigned e_flags, unsigned e_machine)
33763376
if (e_flags & E_FLAG_RX_SINSNS_SET)
33773377
strcat (buf, e_flags & E_FLAG_RX_SINSNS_YES
33783378
? ", uses String instructions" : ", bans String instructions");
3379+
if (e_flags & E_FLAG_RX_V2)
3380+
strcat (buf, ", V2");
33793381
break;
33803382

33813383
case EM_S390:

‎gas/ChangeLog‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
* config/tc-aarch64.c (vectype_to_qualifier): Calculate operand
1010
qualifier from per-type base and offet.
1111

12+
2015-12-14 Yoshinori Sato <ysato@users.sourceforge.jp>
13+
14+
* config/rx-defs.h(rx_cpu_type): Add RXV2 type.
15+
* config/tc-rx.c(cpu_type_list): New type lookup table.
16+
(md_parse_option): Use lookup table for choose cpu.
17+
(md_show_usage): Add rxv2 for mcpu option.
18+
* doc/c-rx.texi: Likewise.
19+
* config/rx-parse.y: Add v2 instructions and ACC register.
20+
(rx_check_v2): check v2 type.
21+
1222
2015-12-14 Jan Beulich <jbeulich@suse.com>
1323

1424
* dw2gencfi.c (dot_cfi_label): Free "name".

‎gas/config/rx-defs.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ enum rx_cpu_types
3838
RX600,
3939
RX610,
4040
RX200,
41-
RX100
41+
RX100,
42+
RXV2
4243
};
4344

4445
extern int rx_pid_register;

0 commit comments

Comments
 (0)