This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] GAS supports for MIPS32 MT ASE


Hello,

  Here is the latest patch with the change: -mmt/-mno-mt.
Also, "mips32-mt.d" is changed to use "-mmt".
I built and tested for mipsisa32-elf and mipsisa64-elf.  No
new regression.  Any comments?  Thanks!

Regards,
Chao-ying

include/opcode/ChangeLog
2005-08-30  Chao-ying Fu  <fu@mips.com>

    * mips.h (OP_SH_MT_U, OP_MASK_MT_U, OP_SH_MT_H, OP_MASK_MT_H,
    OP_SH_MTACC_T, OP_MASK_MTACC_T, OP_SH_MTACC_D, OP_MASK_MTACC_D): New
    define.
    Document !, $, *, &, g, +t, +T operand formats for MT instructions.
    (INSN_ASE_MASK): Update to include INSN_MT.
    (INSN_MT): New define for MT ASE.

opcodes/ChangeLog
2005-08-30  Chao-ying Fu  <fu@mips.com>

    * mips-opc.c (MT32): New define.
    (mips_builtin_opcodes): Move "bc0f", "bc0fl", "bc0t", "bc0tl" to the
    bottom to avoid opcode collision with "mftr" and "mttr".
    Add MT instructions.
    * mips-dis.c (mips_arch_choices): Enable INSN_MT for mips32r2.
    (print_insn_args): Add supports for +t, +T, !, $, *, &, g operand
    formats.

gas/ChangeLog
2005-08-30  Chao-ying Fu  <fu@mips.com>

    * config/tc-mips.c (mips_set_options): Add ase_mt for MT instructions.
    (mips_opts): Add -1 to initialize ase_mt.
    (file_ase_mt): New variable for -mmt.
    (CPU_HAS_MT): New define.
    (validate_mips_insn): Add supports for +t, +T, !, $, *, &, g operand
    formats.
    (mips_ip): Check ase_mt to enable MT instructions.
    Handle !, $, *, &, +T, +t, g operand formats.
    For "mftc1", "mfthc1", "cftc1", "mttc1", "mtthc1", "cttc1", we allow
    odd float registers.
    (OPTION_MT, OPTION_NO_MT): New define.
    (OPTION_COMPAT_ARCH_BASE): Change because of inserting MT define.
    (md_parse_option): Parse OPTION_MT and OPTION_NO_MT.
    (mips_after_parse_args): Set ase_mt based on CPU.
    (s_mipsset): Handle ".set mt" and ".set nomt".
    (mips_elf_final_processing): Remind of adding new flag for MT ASE.
    (md_show_usage): Show usage of -mmt and -mno-mt.

gas/testsuite/ChangeLog
2005-08-30  Chao-ying Fu  <fu@mips.com>

    * gas/mips/mips.exp: Run MT test for mips32r2 only.
    * gas/mips/mips32-mt.[sdl]: New test.

----- Original Message ----- 
From: "Eric Christopher" <echristo@apple.com>
To: "Daniel Jacobowitz" <drow@false.org>
Cc: "Chao-ying Fu" <fu@mips.com>; "Thiemo Seufer" <ths@networkno.de>;
"Maciej W. Rozycki" <macro@linux-mips.org>; "Thekkath, Radhika"
<radhika@mips.com>; <binutils@sourceware.org>
Sent: Tuesday, August 30, 2005 5:25 PM
Subject: Re: [patch] GAS supports for MIPS32 MT ASE


> >
> > ... please don't.  The other options should be fixed and only
> > compatibility aliases kept, IMO.
>
> OK. :)
>
> I didn't have a strong opinion either way.
>
> -eric
>

Attachment: src.diff
Description: Binary data

Attachment: mips32-mt.s
Description: Binary data

Attachment: mips32-mt.l
Description: Binary data

Attachment: mips32-mt.d
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]