diff options
author | Chao-ying Fu <fu@mips.com> | 2013-06-13 21:04:33 +0000 |
---|---|---|
committer | Chao-ying Fu <fu@mips.com> | 2013-06-13 21:04:33 +0000 |
commit | cdd4989877f0692d8424f4361a1cd6c768884c61 (patch) | |
tree | 1ab7b51cb3534f462e4fb9c399d8b2a09d2c02d8 | |
parent | ba92f7fb59e3bb227b20b22b13cc75cf56caa1ce (diff) | |
download | gdb-cdd4989877f0692d8424f4361a1cd6c768884c61.zip gdb-cdd4989877f0692d8424f4361a1cd6c768884c61.tar.gz gdb-cdd4989877f0692d8424f4361a1cd6c768884c61.tar.bz2 |
2013-06-13 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
* gas/mips/micromips@virt.d: New file.
* gas/mips/micromips@virt64.d: New file.
* gas/mips/mips.exp: Enable virt and virt64 tests for micromips.
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/micromips@virt.d | 21 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/micromips@virt64.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 4 |
4 files changed, 42 insertions, 2 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f39a4e8..9a11bb16 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-06-13 Chao-ying Fu <Chao-ying.Fu@imgtec.com> + + * gas/mips/micromips@virt.d: New file. + * gas/mips/micromips@virt64.d: New file. + * gas/mips/mips.exp: Enable virt and virt64 tests for micromips. + 2013-06-12 Sandra Loosemore <sandra@codesourcery.com> * gas/nios2/movia.s: Add additional test case with negative diff --git a/gas/testsuite/gas/mips/micromips@virt.d b/gas/testsuite/gas/mips/micromips@virt.d new file mode 100644 index 0000000..631c2d1 --- /dev/null +++ b/gas/testsuite/gas/mips/micromips@virt.d @@ -0,0 +1,21 @@ +#objdump: -dr --prefix-addresses --show-raw-insn -Mvirt,cp0-names=mips32r2 +#name: virt instructions +#source: virt.s +#as: -32 -mvirt + +.*: +file format .*mips.* + +Disassembly of section \.text: +[0-9a-f]+ <[^>]*> 007d 04fc mfgc0 v1,c0_taghi +[0-9a-f]+ <[^>]*> 0174 2cfc mfgc0 t3,\$20,5 +[0-9a-f]+ <[^>]*> 02e2 06fc mtgc0 s7,c0_entrylo0 +[0-9a-f]+ <[^>]*> 00ee 16fc mtgc0 a3,\$14,2 +[0-9a-f]+ <[^>]*> 0000 c37c hypcall +[0-9a-f]+ <[^>]*> 0256 c37c hypcall 0x256 +[0-9a-f]+ <[^>]*> 0000 417c tlbginv +[0-9a-f]+ <[^>]*> 0000 517c tlbginvf +[0-9a-f]+ <[^>]*> 0000 017c tlbgp +[0-9a-f]+ <[^>]*> 0000 117c tlbgr +[0-9a-f]+ <[^>]*> 0000 217c tlbgwi +[0-9a-f]+ <[^>]*> 0000 317c tlbgwr + \.\.\. diff --git a/gas/testsuite/gas/mips/micromips@virt64.d b/gas/testsuite/gas/mips/micromips@virt64.d new file mode 100644 index 0000000..04e6840 --- /dev/null +++ b/gas/testsuite/gas/mips/micromips@virt64.d @@ -0,0 +1,13 @@ +#objdump: -dr --prefix-addresses --show-raw-insn -Mvirt,cp0-names=mips64r2 +#name: virt64 instructions +#source: virt64.s +#as: -64 -mvirt + +.*: +file format .*mips.* + +Disassembly of section \.text: +[0-9a-f]+ <[^>]*> 587d 00e7 dmfgc0 v1,c0_taghi +[0-9a-f]+ <[^>]*> 5974 28e7 dmfgc0 a7,\$20,5 +[0-9a-f]+ <[^>]*> 5ae2 02e7 dmtgc0 s7,c0_entrylo0 +[0-9a-f]+ <[^>]*> 58ee 12e7 dmtgc0 a3,\$14,2 + \.\.\. diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index cf79727..a0ba481 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -791,8 +791,8 @@ if { [istarget mips*-*-vxworks*] } { run_dump_test "lineno" run_dump_test "sync" - run_dump_test_arches "virt" [mips_arch_list_matching mips32r2 !micromips] - run_dump_test_arches "virt64" [mips_arch_list_matching mips64r2 !micromips] + run_dump_test_arches "virt" [mips_arch_list_matching mips32r2] + run_dump_test_arches "virt64" [mips_arch_list_matching mips64r2] run_dump_test_arches "mips32" [mips_arch_list_matching mips32] run_dump_test_arches "mips32-imm" [mips_arch_list_matching mips32] |