[ARC] Fix support for double assist instructions.
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 5 Apr 2016 15:37:29 +0000 (17:37 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Tue, 5 Apr 2016 15:37:45 +0000 (17:37 +0200)
commit8ddf6b2a1384ca73a16827022da5f4423703154a
treea55da1754e6f171faa26bf3d89df048b9d4d3c9c
parent1e5885b72e20ef874f526e77a4946b2655e6d3c3
[ARC] Fix support for double assist instructions.

opcodes/
2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>

        * arc-regs.h: Add a new subclass field.  Add double assist
        accumulator register values.
        * arc-tbl.h: Use DPA subclass to mark the double assist
        instructions.  Use DPX/SPX subclas to mark the FPX instructions.
        * arc-opc.c (RSP): Define instead of SP.
        (arc_aux_regs): Add the subclass field.

include/
2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>

        * opcode/arc.h (DPA, DPX, SPX): New subclass enums.
        (ARC_FPUDA): Define.
        (arc_aux_reg): Add new field.

gas/
2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>

        * config/tc-arc.c (is_code_density_p): Compare directly the
        subclass field.
        (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
        (check_cpu_feature): New function.
        (find_opcode_match): Use check_cpu_feature function.
        (preprocess_operands): Likewise.
        (md_parse_option): Use mfpuda, mdpfp, mspfp options.
        * testsuite/gas/arc/tdpfp.d: New file.
        * testsuite/gas/arc/tfpuda.d: Likewise.
        * testsuite/gas/arc/tfpx.s: Likewise.
gas/ChangeLog
gas/config/tc-arc.c
gas/testsuite/gas/arc/tdpfp.d [new file with mode: 0644]
gas/testsuite/gas/arc/tfpuda.d [new file with mode: 0644]
gas/testsuite/gas/arc/tfpx.s [new file with mode: 0644]
include/ChangeLog
include/opcode/arc.h
opcodes/ChangeLog
opcodes/arc-opc.c
opcodes/arc-regs.h
opcodes/arc-tbl.h