2013-06-13 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
authorChao-ying Fu <fu@mips.com>
Thu, 13 Jun 2013 21:04:33 +0000 (21:04 +0000)
committerChao-ying Fu <fu@mips.com>
Thu, 13 Jun 2013 21:04:33 +0000 (21:04 +0000)
* 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
gas/testsuite/gas/mips/micromips@virt.d [new file with mode: 0644]
gas/testsuite/gas/mips/micromips@virt64.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp

index f39a4e8..9a11bb1 100644 (file)
@@ -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 (file)
index 0000000..631c2d1
--- /dev/null
@@ -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 (file)
index 0000000..04e6840
--- /dev/null
@@ -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
+       \.\.\.
index cf79727..a0ba481 100644 (file)
@@ -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]