Browse Source
bfd/ * elfxx-mips.c (print_mips_ases): Add DSPR3. binutils/ * readelf.c (print_mips_ases): Add DSPR3. gas/ * config/tc-mips.c (options): Add OPTION_DSPR3 and OPTION_NO_DSPR3. (md_longopts): Likewise. (md_show_usage): Add help for -mdspr3 and -mno-dspr3. (mips_ases): Define availability for DSPr3. (mips_ase_groups): Add ASE_DSPR3 to the DSP group. (mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3. * doc/as.texinfo: Document -mdspr3, -mno-dspr3. Fix -mdspr2 formatting. * doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and .set nodspr3. Fix -mdspr2 formatting. * testsuite/gas/mips/mips32-dspr3.d: New file. * testsuite/gas/mips/mips32-dspr3.s: Likewise. * testsuite/gas/mips/mips.exp: Run mips32-dspr3 test. include/ * elf/mips.h (AFL_ASE_DSPR3): New macro. (AFL_ASE_MASK): Update to include AFL_ASE_DSPR3. * opcode/mips.h (ASE_DSPR3): New macro. opcodes/ * mips-dis.c (mips_arch_choices): Add ASE_DSPR3 to mips32r6 and mips64r6. * mips-opc.c (D34): New macro. (mips_builtin_opcodes): Define bposge32c for DSPr3.binutils-2_27-branch
17 changed files with 126 additions and 6 deletions
@ -0,0 +1,22 @@ |
|||
#objdump: -pdr --prefix-addresses --show-raw-insn |
|||
#name: MIPS DSP ASE Rev3 for MIPS32 |
|||
#as: -mdspr3 -32 |
|||
|
|||
# Check MIPS DSP ASE Rev3 for MIPS32 Instruction Assembly |
|||
|
|||
.*: +file format .*mips.* |
|||
#... |
|||
ASEs: |
|||
#... |
|||
DSP ASE |
|||
DSP R2 ASE |
|||
DSP R3 ASE |
|||
#... |
|||
FLAGS 1: .* |
|||
FLAGS 2: .* |
|||
|
|||
Disassembly of section .text: |
|||
0+0000 <[^>]*> 0418ffff bposge32c 00000000 <text_label> |
|||
.*0: R_MIPS_PC16 text_label |
|||
|
|||
\.\.\. |
|||
@ -0,0 +1,12 @@ |
|||
# source file to test assembly of MIPS DSP ASE Rev3 for MIPS32 instructions |
|||
|
|||
.set noreorder |
|||
.set noat |
|||
|
|||
.text |
|||
text_label: |
|||
bposge32c text_label |
|||
|
|||
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... |
|||
.align 2 |
|||
.space 8 |
|||
Loading…
Reference in new issue