From cdd4989877f0692d8424f4361a1cd6c768884c61 Mon Sep 17 00:00:00 2001 From: Chao-ying Fu Date: Thu, 13 Jun 2013 21:04:33 +0000 Subject: [PATCH] 2013-06-13 Chao-ying Fu * 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. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/mips/micromips@virt.d | 21 +++++++++++++++++++++ gas/testsuite/gas/mips/micromips@virt64.d | 13 +++++++++++++ gas/testsuite/gas/mips/mips.exp | 4 ++-- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 gas/testsuite/gas/mips/micromips@virt.d create mode 100644 gas/testsuite/gas/mips/micromips@virt64.d diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f39a4e879ef..9a11bb16422 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-06-13 Chao-ying Fu + + * 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 * 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 00000000000..631c2d1e969 --- /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 00000000000..04e68409d34 --- /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 cf797274bf9..a0ba48125ca 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] -- 2.30.2