aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2008-11-06 19:43:00 +0000
committerChao-ying Fu <fu@mips.com>2008-11-06 19:43:00 +0000
commit5fb8dac1536c9f06fdfcf467830c2ac4a515b539 (patch)
treef1e9fa892f14fbc2a9390d7bcb9facffc22ec295 /gas
parent4dc48ef654a577ab5a55e7b791a6ff7892599b35 (diff)
downloadgdb-5fb8dac1536c9f06fdfcf467830c2ac4a515b539.zip
gdb-5fb8dac1536c9f06fdfcf467830c2ac4a515b539.tar.gz
gdb-5fb8dac1536c9f06fdfcf467830c2ac4a515b539.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/mips.exp2
-rw-r--r--gas/testsuite/gas/mips/mips32-sync.d14
-rw-r--r--gas/testsuite/gas/mips/mips32-sync.s10
4 files changed, 31 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 8719134..7fec932 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -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.
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index e48b81f..f1445bc 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -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
index 0000000..a86783d
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips32-sync.d
@@ -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
index 0000000..bab4b1b
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips32-sync.s
@@ -0,0 +1,10 @@
+ .text
+foo:
+ .ent foo
+ sync
+ sync 0
+ sync 1
+ sync 2
+ sync 30
+ sync 31
+ .end foo