This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] GAS supports for MIPS32 MT ASE
- From: Thiemo Seufer <ths at networkno dot de>
- To: Chao-ying Fu <fu at mips dot com>
- Cc: Eric Christopher <echristo at apple dot com>,Daniel Jacobowitz <drow at false dot org>,"Maciej W. Rozycki" <macro at linux-mips dot org>,"Thekkath, Radhika" <radhika at mips dot com>, binutils at sourceware dot org
- Date: Fri, 2 Sep 2005 11:57:07 +0200
- Subject: Re: [patch] GAS supports for MIPS32 MT ASE
- References: <001401c5aa8a$3f2698b0$a914a8c0@MIPS.COM> <Pine.LNX.4.61L.0508291032070.12296@blysk.ds.pg.gda.pl> <002101c5acf0$8876c220$a914a8c0@MIPS.COM> <20050829234106.GI21717@hattusa.textio> <000801c5adb5$b3b4bee0$a914a8c0@MIPS.COM> <F7B73813-E028-4F4F-B025-CC7AFE54EDAD@apple.com> <20050830230024.GA18203@nevyn.them.org> <2A7D6A36-8D90-4782-B54F-DFA01AC49E83@apple.com> <000b01c5adc5$9f59c430$a914a8c0@MIPS.COM>
Chao-ying Fu wrote:
[snip]
> 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.
Ok. Can you also update the assembler documentation for -mmt in a
followup patch?
Thiemo