summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/octeon@mips32r2-sync.d
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2010-09-14 23:49:03 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2010-09-14 23:49:03 +0000
commit562fc53964505926d0b948a97878cd55b54affcf (patch)
tree22a80c4f7b65990eec26b0ac6185e00984d07601 /gas/testsuite/gas/mips/octeon@mips32r2-sync.d
parent29e1299e0a0c458d96e48e1a9f6e579386bfe0fe (diff)
downloadbinutils-redhat-562fc53964505926d0b948a97878cd55b54affcf.tar.gz
opcodes/
* mips-opc.c (mips_builtin_opcodes): Add "sync_acquire", "sync_mb", "sync_release", "sync_rmb" and "sync_wmb". gas/testsuite/ * gas/mips/mips32r2-sync.d: New test for MIPS32r2 "sync" instruction variants. * gas/mips/octeon@mips32r2-sync.d: Likewise, Octeon version. * gas/mips/mips32r2-sync.s: Source for the new test. * gas/mips/mips.exp: Run the new test.
Diffstat (limited to 'gas/testsuite/gas/mips/octeon@mips32r2-sync.d')
-rw-r--r--gas/testsuite/gas/mips/octeon@mips32r2-sync.d29
1 files changed, 29 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/octeon@mips32r2-sync.d b/gas/testsuite/gas/mips/octeon@mips32r2-sync.d
new file mode 100644
index 0000000000..aaf835db25
--- /dev/null
+++ b/gas/testsuite/gas/mips/octeon@mips32r2-sync.d
@@ -0,0 +1,29 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS32r2 sync instructions
+#as: -32
+#source: mips32r2-sync.s
+
+# Check MIPS32r2 sync instructions assembly and disassembly (Octeon).
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+[0-9a-f]+ <[^>]*> 0000000f sync
+[0-9a-f]+ <[^>]*> 0000008f synciobdma
+[0-9a-f]+ <[^>]*> 0000010f syncw
+[0-9a-f]+ <[^>]*> 0000020f sync 0x8
+[0-9a-f]+ <[^>]*> 0000040f sync_mb
+[0-9a-f]+ <[^>]*> 0000044f sync_acquire
+[0-9a-f]+ <[^>]*> 0000048f sync_release
+[0-9a-f]+ <[^>]*> 000004cf sync_rmb
+[0-9a-f]+ <[^>]*> 0000060f sync 0x18
+[0-9a-f]+ <[^>]*> 0000000f sync
+[0-9a-f]+ <[^>]*> 0000008f synciobdma
+[0-9a-f]+ <[^>]*> 0000010f syncw
+[0-9a-f]+ <[^>]*> 0000020f sync 0x8
+[0-9a-f]+ <[^>]*> 0000040f sync_mb
+[0-9a-f]+ <[^>]*> 0000044f sync_acquire
+[0-9a-f]+ <[^>]*> 0000048f sync_release
+[0-9a-f]+ <[^>]*> 000004cf sync_rmb
+[0-9a-f]+ <[^>]*> 0000060f sync 0x18
+ \.\.\.