From c37c4e7627d00003f34a0e40ffac4ddb680b5d8c Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Tue, 16 Oct 2001 02:39:43 +0000 Subject: [PATCH] * gas/sh/err-le.s, gas/sh/err-be.s: New tests. --- gas/testsuite/ChangeLog | 4 ++++ gas/testsuite/gas/sh/err-be.s | 10 ++++++++++ gas/testsuite/gas/sh/err-le.s | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 gas/testsuite/gas/sh/err-be.s create mode 100644 gas/testsuite/gas/sh/err-le.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 06a2e865d..6575f688c 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-10-16 Hans-Peter Nilsson + + * gas/sh/err-le.s, gas/sh/err-be.s: New tests. + 2001-10-13 matthew green * 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 000000000..0a1b4dfec --- /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 000000000..bbb2abbac --- /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 -- 2.11.4.GIT