[v3,0/2] GAS/MIPS: Fix testcase module-defer-warn2 for r2+ triples

Message ID 20230929150526.3149431-1-yunqiang.su@cipunited.com
Headers
Series GAS/MIPS: Fix testcase module-defer-warn2 for r2+ triples |

Message

YunQiang Su Sept. 29, 2023, 3:05 p.m. UTC
  When gas is configured with --target=mipsisa32r2el-elf, module-defer-warn2
will fail:

/binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.s: Assembler messages:
/binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.s:2: Error: `gp=64' used with a 32-bit processor
extra regexps in /binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.l starting with "^.*:2: .*: `fp=64' used with a 32-bit.*$"
EOF from dump.out
FAIL: mips module-defer-warn2

The reason is that fp64 is allowed for mips32r2 and onward, so
the error message `Error: `fp=64' used with a 32-bit fpu` won't emit.

YunQiang Su (2):
  GAS/MIPS: Convert module-defer-warn2 to .d format
  GAS/MIPS: Add module-defer-warn2-r2 testcase for r2+ triples

 gas/testsuite/gas/mips/mips.exp                | 3 ++-
 gas/testsuite/gas/mips/module-defer-warn2-r2.d | 5 +++++
 gas/testsuite/gas/mips/module-defer-warn2-r2.l | 2 ++
 gas/testsuite/gas/mips/module-defer-warn2.d    | 5 +++++
 4 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 gas/testsuite/gas/mips/module-defer-warn2-r2.d
 create mode 100644 gas/testsuite/gas/mips/module-defer-warn2-r2.l
 create mode 100644 gas/testsuite/gas/mips/module-defer-warn2.d
  

Comments

YunQiang Su Oct. 7, 2023, 3:50 p.m. UTC | #1
@Maciej W. Rozycki ping