[PATCH] New testcase for MIPS jal overflow/misalignment mismatch
Thiemo Seufer
ica2_ts@csv.ica.uni-stuttgart.de
Tue Sep 17 01:54:00 GMT 2002
More information about the Binutils mailing list
Tue Sep 17 01:54:00 GMT 2002
- Previous message (by thread): [PATCH] New testcase for MIPS jal overflow/misalignment mismatch
- Next message (by thread): [PATCH] New testcase for MIPS jal overflow/misalignment mismatch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thiemo Seufer wrote: > Hi All, > > this adds a check for misaligned/overflowed jal to the testsuite. > > > Thiemo > > > 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> > > /gas/testsuite/ChangeLog > * gas/mips/jal-range.l: Check for jal overflows. > * gas/mips/mips.exp: Use it. Which, of course, needs also the *.s file i left out. I applied the following, approved by Eric. Thiemo 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> /gas/testsuite/ChangeLog * gas/mips/jal-range.s: Check for jal overflows. * gas/mips/jal-range.l: List file for it. * gas/mips/mips.exp: Use it. 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\) diff -BurpNX /bigdisk/src/gcc-exclude source-orig/gas/testsuite/gas/mips/mips.exp source/gas/testsuite/gas/mips/mips.exp --- source-orig/gas/testsuite/gas/mips/mips.exp Wed Sep 4 23:01:59 2002 +++ source/gas/testsuite/gas/mips/mips.exp Tue Sep 17 04:24:25 2002 @@ -77,6 +77,7 @@ if { [istarget mips*-*-*] } then { if $elf { run_dump_test "jal-empic-elf" } if $elf { run_dump_test "jal-empic-elf-2" } if $elf { run_dump_test "jal-empic-elf-3" } + run_list_test "jal-range" "" if !$aout { run_dump_test "la" } if $elf { run_dump_test "la-svr4pic" } if $elf { run_dump_test "la-xgot" }
- Previous message (by thread): [PATCH] New testcase for MIPS jal overflow/misalignment mismatch
- Next message (by thread): [PATCH] New testcase for MIPS jal overflow/misalignment mismatch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list