This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New testcase for MIPS jal overflow/misalignment mismatch


On Tue, 17 Sep 2002, Thiemo Seufer wrote:
> diff -BurpNX /bigdisk/src/gcc-exclude source-orig/gas/testsuite/gas/mips/jal-range.s source/gas/testsuite/gas/mips/jal-range.s
> --- source-orig/gas/testsuite/gas/mips/jal-range.s	Thu Jan  1 01:00:00 1970
> +++ source/gas/testsuite/gas/mips/jal-range.s	Sat Sep 14 10:51:03 2002
> @@ -0,0 +1,6 @@
> +# Source file use to test border cases of jumps
> +
> +	jal	0x0
> +	jal	0x7fffffc
> +	jal	0x7fffffd
> +	jal	0x8000000
> diff -BurpNX /bigdisk/src/gcc-exclude source-orig/gas/testsuite/gas/mips/jal-range.l source/gas/testsuite/gas/mips/jal-range.l
> --- source-orig/gas/testsuite/gas/mips/jal-range.l	Thu Jan  1 01:00:00 1970
> +++ source/gas/testsuite/gas/mips/jal-range.l	Sat Sep 14 10:52:00 2002
> @@ -0,0 +1,4 @@
> +.*: Assembler messages:
> +.*:5: Error: jump to misaligned address \(0x7fffffd\)
> +.*:5: Error: jump address range overflow \(0x7fffffd\)
> +.*:6: Error: jump address range overflow \(0x8000000\)

For the record, a test like this could also have been
implemented using the dg-runtest machinery.  Then you'd have
only one file per test, with both source and error messages.
It'd require an additional "driver" like gas/mmix/mmix-err.exp,
though; I don't see one in gas/mips/.

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]