aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/sh/err-be.s10
-rw-r--r--gas/testsuite/gas/sh/err-le.s10
3 files changed, 24 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 06a2e86..6575f68 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-16 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * gas/sh/err-le.s, gas/sh/err-be.s: New tests.
+
2001-10-13 matthew green <mrg@redhat.com>
* gas/ppc/booke.s (rfci, wrtee, wrteei, mfdcrx, mfdcr, mtdcrx,
diff --git a/gas/testsuite/gas/sh/err-be.s b/gas/testsuite/gas/sh/err-be.s
new file mode 100644
index 0000000..0a1b4df
--- /dev/null
+++ b/gas/testsuite/gas/sh/err-be.s
@@ -0,0 +1,10 @@
+! { dg-do assemble { target sh*-*-elf} }
+! { dg-options "-little" }
+! { dg-error "-big required" "" { target sh*-*-elf } 0 }
+
+! Check that a mismatch between command-line options and the .big
+! directive is identified.
+
+ .big
+start:
+ nop
diff --git a/gas/testsuite/gas/sh/err-le.s b/gas/testsuite/gas/sh/err-le.s
new file mode 100644
index 0000000..bbb2abb
--- /dev/null
+++ b/gas/testsuite/gas/sh/err-le.s
@@ -0,0 +1,10 @@
+! { dg-do assemble { target sh*-*-elf} }
+! { dg-options "-big" }
+! { dg-error "-little required" "" { target sh*-*-elf } 0 }
+
+! Check that a mismatch between command-line options and the .big
+! directive is identified.
+
+ .little
+start:
+ nop