aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1996-02-19 10:48:27 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1996-02-19 10:48:27 +0000
commit753075b261cf3099628e4c252fa93a4c8587209c (patch)
tree0b4bc7ce5e54fa535db1f0d6b6427eb7fbc220b3 /gas
parentd8b42b96d174fc9e251c8ccc46e7830a8f171be8 (diff)
downloadgdb-753075b261cf3099628e4c252fa93a4c8587209c.zip
gdb-753075b261cf3099628e4c252fa93a4c8587209c.tar.gz
gdb-753075b261cf3099628e4c252fa93a4c8587209c.tar.bz2
* gas/sparc/{asi,membar,prefetch,rdpr,synth64,wrpr}.d: Pass -Av9
to gas. * gas/sparc/addend.exp: Execute for any sparc cpu. * gas/sparc/{mismatch.exp,mism-1.s}: New test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/sparc/.Sanitize2
-rw-r--r--gas/testsuite/gas/sparc/mism-1.s22
-rw-r--r--gas/testsuite/gas/sparc/mismatch.exp20
4 files changed, 51 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index e8428d0..bc50186 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+Mon Feb 19 02:43:36 1996 Doug Evans <dje@charmed.cygnus.com>
+
+ * gas/sparc/{asi,membar,prefetch,rdpr,synth64,wrpr}.d: Pass -Av9
+ to gas.
+ * gas/sparc/addend.exp: Execute for any sparc cpu.
+ * gas/sparc/{mismatch.exp,mism-1.s}: New test.
+
Wed Feb 14 13:49:59 1996 Ian Lance Taylor <ian@cygnus.com>
* gas/mips/jal-xgot.d, gas/mips/la-xgot.d: New tests.
diff --git a/gas/testsuite/gas/sparc/.Sanitize b/gas/testsuite/gas/sparc/.Sanitize
index 15f6837..ef14578 100644
--- a/gas/testsuite/gas/sparc/.Sanitize
+++ b/gas/testsuite/gas/sparc/.Sanitize
@@ -27,6 +27,8 @@ asi.d
asi.s
membar.d
membar.s
+mismatch.exp
+mism-1.s
prefetch.d
prefetch.s
rdpr.d
diff --git a/gas/testsuite/gas/sparc/mism-1.s b/gas/testsuite/gas/sparc/mism-1.s
new file mode 100644
index 0000000..fac5e48
--- /dev/null
+++ b/gas/testsuite/gas/sparc/mism-1.s
@@ -0,0 +1,22 @@
+! Test architecture mismatch warnings.
+! We don't test every possible mismatch, we just want to be reasonable sure
+! the mismatch checking code works.
+!
+! { dg-do assemble { target sparc*-*-* } }
+! { dg-options -Av6 }
+
+! sparclite
+
+ divscc %g1,%g2,%g3 ! { dg-error "mismatch|sparclite" "sparclite divscc mismatch" }
+
+ scan %g1,%g2,%g3 ! { dg-error "mismatch|sparclite" "sparclite scan mismatch" }
+
+! v9
+
+ movrz %g1,%g2,%g3 ! { dg-error "mismatch|v9" "v9 fp reg mismatch" }
+
+! v9a
+
+ shutdown ! { dg-error "mismatch|v9a" "v9a shutdown mismatch" }
+
+foo:
diff --git a/gas/testsuite/gas/sparc/mismatch.exp b/gas/testsuite/gas/sparc/mismatch.exp
new file mode 100644
index 0000000..6f89de2
--- /dev/null
+++ b/gas/testsuite/gas/sparc/mismatch.exp
@@ -0,0 +1,20 @@
+# Test architecture mismatch errors.
+#
+# GAS issues two lines of error text for each mismatch:
+#
+# mm-lite.s:7: Error: Architecture mismatch on "divscc".
+# mm-lite.s:7: (Requires sparclite; requested architecture is v8.)
+#
+# The suggested regexp argument to dg-error is "mismatch|<arch>".
+
+if [istarget sparc*-*-*] {
+
+ load_lib gas-dg.exp
+
+ dg-init
+
+ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/mism-*.s]] "" ""
+
+ dg-finish
+
+}