diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 06a2e865d9..6575f688c8 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 0000000000..0a1b4dfec3 --- /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 0000000000..bbb2abbac7 --- /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