2008-11-06 Chao-ying Fu <fu@mips.com>
authorChao-ying Fu <fu@mips.com>
Thu, 6 Nov 2008 19:43:00 +0000 (19:43 +0000)
committerChao-ying Fu <fu@mips.com>
Thu, 6 Nov 2008 19:43:00 +0000 (19:43 +0000)
* gas/mips/mips32-sync.d, gas/mip/mips32-sync.s: New tests.
* gas/mips/mips.exp: Run them.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips32-sync.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips32-sync.s [new file with mode: 0644]

index 871913471d8151751dbfcace1b2dca1b5d399816..7fec9324024f8b6a4bcb3dd2c3f333bb2509b382 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-06  Chao-ying Fu  <fu@mips.com>
+
+       * gas/mips/mips32-sync.d, gas/mip/mips32-sync.s: New tests.
+       * gas/mips/mips.exp: Run them.
+
 2008-11-04  Bob Wilson  <bob.wilson@acm.org>
 
        * gas/xtensa/all.exp: Run jlong test.
index e48b81f08c96dcb74874ff0d8908d6adecf07e8a..f1445bc050a0aa2e0124d7a8a7b30f8c66b36e56 100644 (file)
@@ -833,5 +833,7 @@ if { [istarget mips*-*-vxworks*] } {
 
     run_dump_test "mips16-vis-1"
     run_dump_test "call-nonpic-1"
+    run_dump_test "mips32-sync"
+
     if $has_newabi { run_dump_test "cfi-n64-1" }
 }
diff --git a/gas/testsuite/gas/mips/mips32-sync.d b/gas/testsuite/gas/mips/mips32-sync.d
new file mode 100644 (file)
index 0000000..a86783d
--- /dev/null
@@ -0,0 +1,14 @@
+#objdump: -dr --prefix-addresses --show-raw-insn -mmips:isa32
+#name: MIPS32 sync instructions
+#as: -32 -mips32
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+0+0000 <foo> 0000000f[         ]*sync
+0+0004 <foo\+0x4> 0000000f[    ]*sync
+0+0008 <foo\+0x8> 0000004f[    ]*sync  0x1
+0+000c <foo\+0xc> 0000008f[    ]*sync  0x2
+0+0010 <foo\+0x10> 0000078f[   ]*sync  0x1e
+0+0014 <foo\+0x14> 000007cf[   ]*sync  0x1f
+#pass
diff --git a/gas/testsuite/gas/mips/mips32-sync.s b/gas/testsuite/gas/mips/mips32-sync.s
new file mode 100644 (file)
index 0000000..bab4b1b
--- /dev/null
@@ -0,0 +1,10 @@
+       .text
+foo:
+       .ent foo
+       sync
+       sync    0
+       sync    1
+       sync    2
+       sync    30
+       sync    31
+       .end foo