aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-08-29 22:30:13 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-08-29 22:30:13 +0000
commitdfcb88ec92527df214242a4352f9d99b2f78ab37 (patch)
tree38d9d86a20eb0b18eee65d5895b759a2f7a33c47 /gas
parent3332ea9c4f3f042c6879a06ae11507567342a357 (diff)
downloadgdb-dfcb88ec92527df214242a4352f9d99b2f78ab37.zip
gdb-dfcb88ec92527df214242a4352f9d99b2f78ab37.tar.gz
gdb-dfcb88ec92527df214242a4352f9d99b2f78ab37.tar.bz2
Start of sparc generic testsuite.
asi.[ds]: new test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/sparc/.Sanitize34
-rw-r--r--gas/testsuite/gas/sparc/asi.d33
-rw-r--r--gas/testsuite/gas/sparc/asi.s28
-rw-r--r--gas/testsuite/gas/sparc/sparc.exp8
4 files changed, 103 insertions, 0 deletions
diff --git a/gas/testsuite/gas/sparc/.Sanitize b/gas/testsuite/gas/sparc/.Sanitize
new file mode 100644
index 0000000..089e7d2
--- /dev/null
+++ b/gas/testsuite/gas/sparc/.Sanitize
@@ -0,0 +1,34 @@
+# .Sanitize for devo/gas/testsuite/gas/sparc.
+
+# Each directory to survive it's way into a release will need a file
+# like this one called "./.Sanitize". All keyword lines must exist,
+# and must exist in the order specified by this file. Each directory
+# in the tree will be processed, top down, in the following order.
+
+# Hash started lines like this one are comments and will be deleted
+# before anything else is done. Blank lines will also be squashed
+# out.
+
+# The lines between the "Do-first:" line and the "Things-to-keep:"
+# line are executed as a /bin/sh shell script before anything else is
+# done in this
+
+Do-first:
+
+# All files listed between the "Things-to-keep:" line and the
+# "Files-to-sed:" line will be kept. All other files will be removed.
+# Directories listed in this section will have their own Sanitize
+# called. Directories not listed will be removed in their entirety
+# with rm -rf.
+
+Things-to-keep:
+
+asi.d
+asi.s
+sparc.exp
+
+Things-to-lose:
+
+Do-last:
+
+# End of file.
diff --git a/gas/testsuite/gas/sparc/asi.d b/gas/testsuite/gas/sparc/asi.d
new file mode 100644
index 0000000..3e69bca
--- /dev/null
+++ b/gas/testsuite/gas/sparc/asi.d
@@ -0,0 +1,33 @@
+#objdump: -dr
+#name: sparc64 asi
+
+.*: +file format .*sparc.*
+
+No symbols in .*
+Disassembly of section .text:
+0+0000 lda \[ %g1 \] \(0\), %g2
+0+0004 lda \[ %g1 \] \(255\), %g2
+0+0008 lda \[ %g1 \] #ASI_AIUP, %g2
+0+000c lda \[ %g1 \] #ASI_AIUS, %g2
+0+0010 lda \[ %g1 \] #ASI_AIUP_L, %g2
+0+0014 lda \[ %g1 \] #ASI_AIUS_L, %g2
+0+0018 lda \[ %g1 \] #ASI_P, %g2
+0+001c lda \[ %g1 \] #ASI_S, %g2
+0+0020 lda \[ %g1 \] #ASI_PNF, %g2
+0+0024 lda \[ %g1 \] #ASI_SNF, %g2
+0+0028 lda \[ %g1 \] #ASI_P_L, %g2
+0+002c lda \[ %g1 \] #ASI_S_L, %g2
+0+0030 lda \[ %g1 \] #ASI_PNF_L, %g2
+0+0034 lda \[ %g1 \] #ASI_SNF_L, %g2
+0+0038 lda \[ %g1 \] #ASI_AIUP, %g2
+0+003c lda \[ %g1 \] #ASI_AIUS, %g2
+0+0040 lda \[ %g1 \] #ASI_AIUP_L, %g2
+0+0044 lda \[ %g1 \] #ASI_AIUS_L, %g2
+0+0048 lda \[ %g1 \] #ASI_P, %g2
+0+004c lda \[ %g1 \] #ASI_S, %g2
+0+0050 lda \[ %g1 \] #ASI_PNF, %g2
+0+0054 lda \[ %g1 \] #ASI_SNF, %g2
+0+0058 lda \[ %g1 \] #ASI_P_L, %g2
+0+005c lda \[ %g1 \] #ASI_S_L, %g2
+0+0060 lda \[ %g1 \] #ASI_PNF_L, %g2
+0+0064 lda \[ %g1 \] #ASI_SNF_L, %g2
diff --git a/gas/testsuite/gas/sparc/asi.s b/gas/testsuite/gas/sparc/asi.s
new file mode 100644
index 0000000..6ade410
--- /dev/null
+++ b/gas/testsuite/gas/sparc/asi.s
@@ -0,0 +1,28 @@
+# Test asi's.
+ .text
+ lduwa [%g1]0,%g2
+ lduwa [%g1]255,%g2
+ lduwa [%g1]#ASI_AIUP,%g2
+ lduwa [%g1]#ASI_AIUS,%g2
+ lduwa [%g1]#ASI_AIUP_L,%g2
+ lduwa [%g1]#ASI_AIUS_L,%g2
+ lduwa [%g1]#ASI_P,%g2
+ lduwa [%g1]#ASI_S,%g2
+ lduwa [%g1]#ASI_PNF,%g2
+ lduwa [%g1]#ASI_SNF,%g2
+ lduwa [%g1]#ASI_P_L,%g2
+ lduwa [%g1]#ASI_S_L,%g2
+ lduwa [%g1]#ASI_PNF_L,%g2
+ lduwa [%g1]#ASI_SNF_L,%g2
+ lduwa [%g1]#ASI_AS_IF_USER_PRIMARY,%g2
+ lduwa [%g1]#ASI_AS_IF_USER_SECONDARY,%g2
+ lduwa [%g1]#ASI_AS_IF_USER_PRIMARY_L,%g2
+ lduwa [%g1]#ASI_AS_IF_USER_SECONDARY_L,%g2
+ lduwa [%g1]#ASI_PRIMARY,%g2
+ lduwa [%g1]#ASI_SECONDARY,%g2
+ lduwa [%g1]#ASI_PRIMARY_NOFAULT,%g2
+ lduwa [%g1]#ASI_SECONDARY_NOFAULT,%g2
+ lduwa [%g1]#ASI_PRIMARY_LITTLE,%g2
+ lduwa [%g1]#ASI_SECONDARY_LITTLE,%g2
+ lduwa [%g1]#ASI_PRIMARY_NOFAULT_LITTLE,%g2
+ lduwa [%g1]#ASI_SECONDARY_NOFAULT_LITTLE,%g2
diff --git a/gas/testsuite/gas/sparc/sparc.exp b/gas/testsuite/gas/sparc/sparc.exp
new file mode 100644
index 0000000..8071966
--- /dev/null
+++ b/gas/testsuite/gas/sparc/sparc.exp
@@ -0,0 +1,8 @@
+#
+# Some generic SPARC and SPARC64 tests
+#
+if [istarget sparc*-*-*] then {
+ set sparc64 [istarget sparc64*-*-*]
+
+ if $sparc64 { run_dump_test "asi" }
+}