aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-10-16 02:39:43 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-10-16 02:39:43 +0000
commita3366758ce10f5bc06f1a128c4eb82cf2a82e455 (patch)
tree802611eb5898ad16132373c79823257e8316594a /gas
parent05982cacb924d76c8a040683149ef0e58c208016 (diff)
downloadgdb-a3366758ce10f5bc06f1a128c4eb82cf2a82e455.zip
gdb-a3366758ce10f5bc06f1a128c4eb82cf2a82e455.tar.gz
gdb-a3366758ce10f5bc06f1a128c4eb82cf2a82e455.tar.bz2
* gas/sh/err-le.s, gas/sh/err-be.s: New tests.
Diffstat (limited to 'gas')
-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