[patch ping] GAS supports for MIPS32 DSP ASE

Chao-ying Fu fu@mips.com
Sat Aug 13 00:27:00 GMT 2005


Hello, All,

  We would like to contribute GAS supports for MIPS32 DSP ASE.
The patch was posted in June and stayed there then.
So, I posted the whole patch again.  GAS "make check" is ok under
mipsisa32-elf and mipsisa64-elf with mips-sim.

  Could any binutils maintainers review the code?  Thanks a lot!

Regards,
Chao-ying


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

    * mips.h (OP_SH_DSPACC, OP_MASK_DSPACC, OP_SH_DSPACC_S,
    OP_MASK_DSPACC_S, OP_SH_DSPSFT, OP_MASK_DSPSFT, OP_SH_DSPSFT_7,
    OP_MASK_DSPSFT_7, OP_SH_SA3, OP_MASK_SA3, OP_SH_SA4, OP_MASK_SA4,
    OP_SH_IMM8, OP_MASK_IMM8, OP_SH_IMM10, OP_MASK_IMM10, OP_SH_WRDSP,
    OP_MASK_WRDSP, OP_SH_RDDSP, OP_MASK_RDDSP): New define.
    Document 3, 4, 5, 6, 7, 8, 9, 0, :, ', @ operand formats for DSP
    instructions.
    (INSN_ASE_MASK): Update to include DSP ASE.
    (INSN_DSP): New define for DSP ASE.

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

    * mips-opc.c (WR_a, RD_a, MOD_a, DSP_VOLA, D32): New define
    (mips_builtin_opcodes): Add DSP instructions.
    * mips-dis.c (mips_arch_choices): Enable INSN_DSP for mips32, mips32r2,
    mips64, mips64r2.
    (print_insn_args): Add supports for 3, 4, 5, 6, 7, 8, 9, 0, :, ', @
    operand formats.

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

    * config/tc-mips.c (mips_set_options): Add ase_dsp for DSP instructions.
    (mips_opts): Add -1 to initialize ase_dsp.
    (file_ase_dsp): New variable for -mdsp.
    (CPU_HAS_DSP): New define.
    (validate_mips_insn): Add supports for 3, 4, 5, 6, 7, 8, 9, 0, ', :, @
    operand formats.
    (mips_ip): Add min_range and max_range for checking singed numbers.
    Check ase_dsp to enable DSP instructions.
    Handle 3, 4, 5, 6, 7, 8, 9, 0, ', :, @ operand formats.
    (OPTION_DSP, OPTION_NO_DSP): New define.
    (OPTION_COMPAT_ARCH_BASE): Change because of inserting DSP define.
    (md_parse_option): Parse OPTION_DSP and OPTION_NO_DSP.
    (mips_after_parse_args): Set ase_dsp based on CPU.
    (s_mipsset): Handle ".set dsp" and ".set nodsp".
    (mips_elf_final_processing): Remind of adding new flag for DSP ASE.
    (md_show_usage): Show usage of -mdsp and -mno-dsp.

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

    * gas/mips/mips.exp: Run DSP test.
    * gas/mips/mips32-dsp.[sdl]: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src.diff
Type: application/octet-stream
Size: 33702 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050813/f9fccbb6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips32-dsp.s
Type: application/octet-stream
Size: 3600 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050813/f9fccbb6/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips32-dsp.l
Type: application/octet-stream
Size: 2322 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050813/f9fccbb6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips32-dsp.d
Type: application/octet-stream
Size: 7725 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050813/f9fccbb6/attachment-0003.obj>


More information about the Binutils mailing list