mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
3abf975826
The binutils testsuite supports involving LD in processing test cases and with the MIPS target that has the same issues the LD testsuite does. So to support LD in the MIPS part of the binutils testsuite similarly to commit86b24e15c4
("MIPS/LD/testsuite: Correct comm-data.exp test ABI/emul/endian arrangement") update the mips.exp test script to: - correctly select emulations for targets using non-traditional MIPS emulations, - correctly select ABIs for targets that do not support all of them, - use the default endianness selection where possible to benefit targets that support only one, - simplify test invocation by providing ABI-specific `run_dump_test' wrappers, specifically `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64', which remove the need to use conditionals across the Expect script or to repeat ABI-specific GAS and LD flags with each invocation, borrowing changes from commit78da84f994
("MIPS/LD/testsuite: Correct mips-elf.exp test ABI/emul/endian arrangement"). As a side effect this disables o32 ABI testing for targets that are not supposed to support them and do not with LD, but still have such support with BFD and GAS due to our inflexibility in configuration. Ultimately we ought to support having o32 completely disabled. binutils/ * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi) (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New procedures. (has_newabi): Remove variable. (has_abi, abi_asflags, abi_ldflags): New associative array variables. (irixemul): New variable. Replace `run_dump_test' calls where applicable throughout with `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64' as appropriate. Use `noarch' for tests that require their own architecture setting. * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags. * testsuite/binutils-all/mips/mips-ase-2.d: Likewise. * testsuite/binutils-all/mips/mips-ase-3.d: Likewise. * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise. * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise. * testsuite/binutils-all/mips/mips-note-2.d: Likewise. * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise. * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise. * testsuite/binutils-all/mips/mips-note-2r.d: Likewise. * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise. * testsuite/binutils-all/mips/mips-reginfo.d: Likewise. * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise. * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise. * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from GAS flags. * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise. * testsuite/binutils-all/mips/mips16-noalias.d: Likewise. * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise. * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise. * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise. * testsuite/binutils-all/mips/mixed-micromips.d: Likewise. * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
190 lines
8.3 KiB
Makefile
190 lines
8.3 KiB
Makefile
#PROG: objcopy
|
|
#objdump: -dr --prefix-addresses --show-raw-insn
|
|
#name: MIPS16e2 undecoded extended instruction field disassembly
|
|
#as: -mips64r2 -mmips16e2
|
|
#source: mips16-undecoded.s
|
|
|
|
.*: +file format .*mips.*
|
|
|
|
Disassembly of section \.text:
|
|
[0-9a-f]+ <[^>]*> f008 0211 addiu v0,sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 0211 addiu v0,sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 0231 addiu v0,gp,16401
|
|
[0-9a-f]+ <[^>]*> f008 extend 0x8
|
|
[0-9a-f]+ <[^>]*> 0251 addiu v0,sp,324
|
|
[0-9a-f]+ <[^>]*> f008 extend 0x8
|
|
[0-9a-f]+ <[^>]*> 0291 addiu v0,sp,580
|
|
[0-9a-f]+ <[^>]*> f008 0a11 la v0,00004025 <foo\+0x4025>
|
|
[0-9a-f]+ <[^>]*> f008 0a11 la v0,00004029 <foo\+0x4029>
|
|
[0-9a-f]+ <[^>]*> f008 0a31 la v0,0000402d <foo\+0x402d>
|
|
[0-9a-f]+ <[^>]*> f008 0a51 la v0,00004031 <foo\+0x4031>
|
|
[0-9a-f]+ <[^>]*> f008 0a91 la v0,00004035 <foo\+0x4035>
|
|
[0-9a-f]+ <[^>]*> f008 1011 b 0000804e <foo\+0x804e>
|
|
[0-9a-f]+ <[^>]*> f008 1011 b 00008052 <foo\+0x8052>
|
|
[0-9a-f]+ <[^>]*> f008 1031 b 00008056 <foo\+0x8056>
|
|
[0-9a-f]+ <[^>]*> f008 1051 b 0000805a <foo\+0x805a>
|
|
[0-9a-f]+ <[^>]*> f008 1091 b 0000805e <foo\+0x805e>
|
|
[0-9a-f]+ <[^>]*> f008 1111 b 00008062 <foo\+0x8062>
|
|
[0-9a-f]+ <[^>]*> f008 1211 b 00008066 <foo\+0x8066>
|
|
[0-9a-f]+ <[^>]*> f008 1411 b 0000806a <foo\+0x806a>
|
|
[0-9a-f]+ <[^>]*> f008 2211 beqz v0,0000806e <foo\+0x806e>
|
|
[0-9a-f]+ <[^>]*> f008 2211 beqz v0,00008072 <foo\+0x8072>
|
|
[0-9a-f]+ <[^>]*> f008 2231 beqz v0,00008076 <foo\+0x8076>
|
|
[0-9a-f]+ <[^>]*> f008 2251 beqz v0,0000807a <foo\+0x807a>
|
|
[0-9a-f]+ <[^>]*> f008 2291 beqz v0,0000807e <foo\+0x807e>
|
|
[0-9a-f]+ <[^>]*> f008 2a11 bnez v0,00008082 <foo\+0x8082>
|
|
[0-9a-f]+ <[^>]*> f008 2a11 bnez v0,00008086 <foo\+0x8086>
|
|
[0-9a-f]+ <[^>]*> f008 2a31 bnez v0,0000808a <foo\+0x808a>
|
|
[0-9a-f]+ <[^>]*> f008 2a51 bnez v0,0000808e <foo\+0x808e>
|
|
[0-9a-f]+ <[^>]*> f008 2a91 bnez v0,00008092 <foo\+0x8092>
|
|
[0-9a-f]+ <[^>]*> f008 4a11 addiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 4a11 addiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 4a31 addiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 4a51 addiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 4a91 addiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5211 slti v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5211 slti v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5231 slti v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5251 slti v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5291 slti v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5a11 sltiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5a11 sltiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5a31 sltiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5a51 sltiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 5a91 sltiu v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 6a11 li v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 6a11 li v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 6a31 lui v0,0x4011
|
|
[0-9a-f]+ <[^>]*> f008 6a51 ori v0,0x4011
|
|
[0-9a-f]+ <[^>]*> f008 6a91 xori v0,0x4011
|
|
[0-9a-f]+ <[^>]*> f008 7211 cmpi v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 7211 cmpi v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 7231 cmpi v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 7251 cmpi v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 7291 cmpi v0,16401
|
|
[0-9a-f]+ <[^>]*> f008 9211 lw v0,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 9211 lw v0,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 9231 lw v0,16401\(gp\)
|
|
[0-9a-f]+ <[^>]*> f008 9251 lh v0,16401\(gp\)
|
|
[0-9a-f]+ <[^>]*> f008 9291 lhu v0,16401\(gp\)
|
|
[0-9a-f]+ <[^>]*> f008 b211 lw v0,000040f9 <foo\+0x40f9>
|
|
[0-9a-f]+ <[^>]*> f008 b211 lw v0,000040fd <foo\+0x40fd>
|
|
[0-9a-f]+ <[^>]*> f008 b231 lw v0,00004101 <foo\+0x4101>
|
|
[0-9a-f]+ <[^>]*> f008 b251 lw v0,00004105 <foo\+0x4105>
|
|
[0-9a-f]+ <[^>]*> f008 b291 lw v0,00004109 <foo\+0x4109>
|
|
[0-9a-f]+ <[^>]*> f008 d211 sw v0,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 d211 sw v0,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 d231 sw v0,16401\(gp\)
|
|
[0-9a-f]+ <[^>]*> f008 d251 sh v0,16401\(gp\)
|
|
[0-9a-f]+ <[^>]*> f008 d291 pref 0x8,17\(v0\)
|
|
[0-9a-f]+ <[^>]*> f008 6011 bteqz 00008136 <foo\+0x8136>
|
|
[0-9a-f]+ <[^>]*> f008 6011 bteqz 0000813a <foo\+0x813a>
|
|
[0-9a-f]+ <[^>]*> f008 6031 bteqz 0000813e <foo\+0x813e>
|
|
[0-9a-f]+ <[^>]*> f008 6051 bteqz 00008142 <foo\+0x8142>
|
|
[0-9a-f]+ <[^>]*> f008 6091 bteqz 00008146 <foo\+0x8146>
|
|
[0-9a-f]+ <[^>]*> f008 6111 btnez 0000814a <foo\+0x814a>
|
|
[0-9a-f]+ <[^>]*> f008 6111 btnez 0000814e <foo\+0x814e>
|
|
[0-9a-f]+ <[^>]*> f008 6131 btnez 00008152 <foo\+0x8152>
|
|
[0-9a-f]+ <[^>]*> f008 6151 btnez 00008156 <foo\+0x8156>
|
|
[0-9a-f]+ <[^>]*> f008 6191 btnez 0000815a <foo\+0x815a>
|
|
[0-9a-f]+ <[^>]*> f008 6211 sw ra,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 6211 sw ra,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 6231 sw ra,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 6251 sw ra,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 6291 sw ra,16401\(sp\)
|
|
[0-9a-f]+ <[^>]*> f008 6311 addiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 6311 addiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 6331 addiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 6351 addiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 6391 addiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f500 3260 sll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3260 sll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 extend 0x500
|
|
[0-9a-f]+ <[^>]*> 3264 sll v0,v1,1
|
|
[0-9a-f]+ <[^>]*> f500 extend 0x500
|
|
[0-9a-f]+ <[^>]*> 3268 sll v0,v1,2
|
|
[0-9a-f]+ <[^>]*> f500 extend 0x500
|
|
[0-9a-f]+ <[^>]*> 3270 sll v0,v1,4
|
|
[0-9a-f]+ <[^>]*> f501 extend 0x501
|
|
[0-9a-f]+ <[^>]*> 3260 sll v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f502 extend 0x502
|
|
[0-9a-f]+ <[^>]*> 3260 sll v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f504 extend 0x504
|
|
[0-9a-f]+ <[^>]*> 3260 sll v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f508 extend 0x508
|
|
[0-9a-f]+ <[^>]*> 3260 sll v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f510 extend 0x510
|
|
[0-9a-f]+ <[^>]*> 3260 sll v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f520 extend 0x520
|
|
[0-9a-f]+ <[^>]*> 3260 sll v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f500 3261 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3261 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3265 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3269 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3271 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f501 3261 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f502 3261 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f504 3261 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f508 3261 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f510 3261 dsll v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f520 3261 dsll v0,v1,52
|
|
[0-9a-f]+ <[^>]*> f500 3262 srl v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3262 srl v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 extend 0x500
|
|
[0-9a-f]+ <[^>]*> 3266 srl v0,v1,1
|
|
[0-9a-f]+ <[^>]*> f500 extend 0x500
|
|
[0-9a-f]+ <[^>]*> 326a srl v0,v1,2
|
|
[0-9a-f]+ <[^>]*> f500 extend 0x500
|
|
[0-9a-f]+ <[^>]*> 3272 srl v0,v1,4
|
|
[0-9a-f]+ <[^>]*> f501 extend 0x501
|
|
[0-9a-f]+ <[^>]*> 3262 srl v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f502 extend 0x502
|
|
[0-9a-f]+ <[^>]*> 3262 srl v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f504 extend 0x504
|
|
[0-9a-f]+ <[^>]*> 3262 srl v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f508 extend 0x508
|
|
[0-9a-f]+ <[^>]*> 3262 srl v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f510 extend 0x510
|
|
[0-9a-f]+ <[^>]*> 3262 srl v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f520 extend 0x520
|
|
[0-9a-f]+ <[^>]*> 3262 srl v0,v1,8
|
|
[0-9a-f]+ <[^>]*> f500 3263 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3263 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3267 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 326b sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 3273 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f501 3263 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f502 3263 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f504 3263 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f508 3263 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f510 3263 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f520 3263 sra v0,v1,20
|
|
[0-9a-f]+ <[^>]*> f500 e848 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f500 e848 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f500 e948 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f500 ea48 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f500 ec48 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f501 e848 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f502 e848 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f504 e848 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f508 e848 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f510 e848 dsrl v0,20
|
|
[0-9a-f]+ <[^>]*> f520 e848 dsrl v0,52
|
|
[0-9a-f]+ <[^>]*> f500 e853 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f500 e853 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f500 e953 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f500 ea53 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f500 ec53 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f501 e853 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f502 e853 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f504 e853 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f508 e853 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f510 e853 dsra v0,20
|
|
[0-9a-f]+ <[^>]*> f520 e853 dsra v0,52
|
|
[0-9a-f]+ <[^>]*> f008 fb11 daddiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 fb11 daddiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 fb31 daddiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 fb51 daddiu sp,16401
|
|
[0-9a-f]+ <[^>]*> f008 fb91 daddiu sp,16401
|
|
\.\.\.
|