Add support for RX V2 Instruction Set
authorYoshinori Sato <ysato@users.sourceforge.jp>
Tue, 15 Dec 2015 09:26:56 +0000 (09:26 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 15 Dec 2015 09:26:56 +0000 (09:26 +0000)
commita117b0a51cd3c768453c244a3754c1b9a77e74fc
treefd573106470e4c963aa723316530c87ed5ba2a36
parentef603459d553034a3f4daeb9c8c673f5ef3e4ed0
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.
92 files changed:
binutils/ChangeLog
binutils/readelf.c
gas/ChangeLog
gas/config/rx-defs.h
gas/config/rx-parse.y
gas/config/tc-rx.c
gas/doc/c-rx.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/rx/emaca.d [new file with mode: 0644]
gas/testsuite/gas/rx/emaca.sm [new file with mode: 0644]
gas/testsuite/gas/rx/emsba.d [new file with mode: 0644]
gas/testsuite/gas/rx/emsba.sm [new file with mode: 0644]
gas/testsuite/gas/rx/emula.d [new file with mode: 0644]
gas/testsuite/gas/rx/emula.sm [new file with mode: 0644]
gas/testsuite/gas/rx/fadd.d
gas/testsuite/gas/rx/fadd.sm
gas/testsuite/gas/rx/fmul.d
gas/testsuite/gas/rx/fmul.sm
gas/testsuite/gas/rx/fsqrt.d [new file with mode: 0644]
gas/testsuite/gas/rx/fsqrt.sm [new file with mode: 0644]
gas/testsuite/gas/rx/fsub.d
gas/testsuite/gas/rx/fsub.sm
gas/testsuite/gas/rx/ftou.d [new file with mode: 0644]
gas/testsuite/gas/rx/ftou.sm [new file with mode: 0644]
gas/testsuite/gas/rx/gprel.d
gas/testsuite/gas/rx/machi.d
gas/testsuite/gas/rx/machi.sm
gas/testsuite/gas/rx/maclh.d [new file with mode: 0644]
gas/testsuite/gas/rx/maclh.sm [new file with mode: 0644]
gas/testsuite/gas/rx/maclo.d
gas/testsuite/gas/rx/maclo.sm
gas/testsuite/gas/rx/macros.inc
gas/testsuite/gas/rx/max.d
gas/testsuite/gas/rx/mov.d
gas/testsuite/gas/rx/movco.d [new file with mode: 0644]
gas/testsuite/gas/rx/movco.sm [new file with mode: 0644]
gas/testsuite/gas/rx/movli.d [new file with mode: 0644]
gas/testsuite/gas/rx/movli.sm [new file with mode: 0644]
gas/testsuite/gas/rx/msbhi.d [new file with mode: 0644]
gas/testsuite/gas/rx/msbhi.sm [new file with mode: 0644]
gas/testsuite/gas/rx/msblh.d [new file with mode: 0644]
gas/testsuite/gas/rx/msblh.sm [new file with mode: 0644]
gas/testsuite/gas/rx/msblo.d [new file with mode: 0644]
gas/testsuite/gas/rx/msblo.sm [new file with mode: 0644]
gas/testsuite/gas/rx/mulhi.d
gas/testsuite/gas/rx/mulhi.sm
gas/testsuite/gas/rx/mullh.d [new file with mode: 0644]
gas/testsuite/gas/rx/mullh.sm [new file with mode: 0644]
gas/testsuite/gas/rx/mullo.d
gas/testsuite/gas/rx/mullo.sm
gas/testsuite/gas/rx/mvfacgu.d [new file with mode: 0644]
gas/testsuite/gas/rx/mvfacgu.sm [new file with mode: 0644]
gas/testsuite/gas/rx/mvfachi.d
gas/testsuite/gas/rx/mvfachi.sm
gas/testsuite/gas/rx/mvfaclo.d
gas/testsuite/gas/rx/mvfaclo.sm
gas/testsuite/gas/rx/mvfacmi.d
gas/testsuite/gas/rx/mvfacmi.sm
gas/testsuite/gas/rx/mvfc.d
gas/testsuite/gas/rx/mvtacgu.d [new file with mode: 0644]
gas/testsuite/gas/rx/mvtacgu.sm [new file with mode: 0644]
gas/testsuite/gas/rx/mvtachi.d
gas/testsuite/gas/rx/mvtachi.sm
gas/testsuite/gas/rx/mvtaclo.d
gas/testsuite/gas/rx/mvtaclo.sm
gas/testsuite/gas/rx/mvtc.d
gas/testsuite/gas/rx/nop.d
gas/testsuite/gas/rx/popc.d
gas/testsuite/gas/rx/pushc.d
gas/testsuite/gas/rx/racl.d [new file with mode: 0644]
gas/testsuite/gas/rx/racl.sm [new file with mode: 0644]
gas/testsuite/gas/rx/racw.d
gas/testsuite/gas/rx/racw.sm
gas/testsuite/gas/rx/rdacl.d [new file with mode: 0644]
gas/testsuite/gas/rx/rdacl.sm [new file with mode: 0644]
gas/testsuite/gas/rx/rdacw.d [new file with mode: 0644]
gas/testsuite/gas/rx/rdacw.sm [new file with mode: 0644]
gas/testsuite/gas/rx/rx.exp
gas/testsuite/gas/rx/stnz.d
gas/testsuite/gas/rx/stnz.sm
gas/testsuite/gas/rx/stz.d
gas/testsuite/gas/rx/stz.sm
gas/testsuite/gas/rx/utof.d [new file with mode: 0644]
gas/testsuite/gas/rx/utof.sm [new file with mode: 0644]
include/elf/ChangeLog
include/elf/rx.h
include/opcode/ChangeLog
include/opcode/rx.h
opcodes/ChangeLog
opcodes/rx-decode.c
opcodes/rx-decode.opc
opcodes/rx-dis.c