aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-08-30 01:34:34 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-08-30 01:34:34 +0000
commit66449f5b5e2e7ddc43f3b384dbce285a1b3cc42f (patch)
tree66dad266ef5fa71ecf11cd170a51c1e86a0439aa /gas
parent201bf50690b69d97b5b66f146daa61e439d3f7b0 (diff)
downloadgdb-66449f5b5e2e7ddc43f3b384dbce285a1b3cc42f.zip
gdb-66449f5b5e2e7ddc43f3b384dbce285a1b3cc42f.tar.gz
gdb-66449f5b5e2e7ddc43f3b384dbce285a1b3cc42f.tar.bz2
(membar): New testcase.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/sparc/.Sanitize2
-rw-r--r--gas/testsuite/gas/sparc/membar.d17
-rw-r--r--gas/testsuite/gas/sparc/membar.s12
3 files changed, 31 insertions, 0 deletions
diff --git a/gas/testsuite/gas/sparc/.Sanitize b/gas/testsuite/gas/sparc/.Sanitize
index 089e7d2..fa23092 100644
--- a/gas/testsuite/gas/sparc/.Sanitize
+++ b/gas/testsuite/gas/sparc/.Sanitize
@@ -25,6 +25,8 @@ Things-to-keep:
asi.d
asi.s
+membar.d
+membar.s
sparc.exp
Things-to-lose:
diff --git a/gas/testsuite/gas/sparc/membar.d b/gas/testsuite/gas/sparc/membar.d
new file mode 100644
index 0000000..1fe8259
--- /dev/null
+++ b/gas/testsuite/gas/sparc/membar.d
@@ -0,0 +1,17 @@
+#objdump: -dr
+#name: sparc64 membar
+
+.*: +file format .*sparc.*
+
+No symbols in .*
+Disassembly of section .text:
+0+0000 membar 0
+0+0004 membar #Sync|#MemIssue|#Lookaside|#StoreStore|#LoadStore|#StoreLoad|#LoadLoad
+0+0008 membar #Sync|#MemIssue|#Lookaside|#StoreStore|#LoadStore|#StoreLoad|#LoadLoad
+0+000c membar #Sync
+0+0010 membar #MemIssue
+0+0014 membar #Lookaside
+0+0018 membar #StoreStore
+0+001c membar #LoadStore
+0+0020 membar #StoreLoad
+0+0024 membar #LoadLoad
diff --git a/gas/testsuite/gas/sparc/membar.s b/gas/testsuite/gas/sparc/membar.s
new file mode 100644
index 0000000..d805e07
--- /dev/null
+++ b/gas/testsuite/gas/sparc/membar.s
@@ -0,0 +1,12 @@
+# Test membar args
+ .text
+ membar 0
+ membar 127
+ membar #Sync|#MemIssue|#Lookaside|#StoreStore|#LoadStore|#StoreLoad|#LoadLoad
+ membar #Sync
+ membar #MemIssue
+ membar #Lookaside
+ membar #StoreStore
+ membar #LoadStore
+ membar #StoreLoad
+ membar #LoadLoad