aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2002-09-17 08:38:27 +0000
committerThiemo Seufer <ths@networkno.de>2002-09-17 08:38:27 +0000
commitf697dfed60b262d971688aab024152241d4b6638 (patch)
tree93a1dd225dcc869cd8cadeab21923cbdf44f6e17
parent75d12d11a0a7ba4e8b6c49bd6d0c5f26dcc5cab0 (diff)
downloadgdb-f697dfed60b262d971688aab024152241d4b6638.zip
gdb-f697dfed60b262d971688aab024152241d4b6638.tar.gz
gdb-f697dfed60b262d971688aab024152241d4b6638.tar.bz2
2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* gas/mips/jal-range.s: Check for jal overflows. * gas/mips/jal-range.l: List file for it. * gas/mips/mips.exp: Use it.
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/jal-range.l4
-rw-r--r--gas/testsuite/gas/mips/jal-range.s6
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
4 files changed, 17 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index d0c0d85..944f543 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * gas/mips/jal-range.s: Check for jal overflows.
+ * gas/mips/jal-range.l: List file for it.
+ * gas/mips/mips.exp: Use it.
+
2002-09-08 Ben Elliston <bje@redhat.com>
* gas/hppa/basic/basic.exp: Update DejaGnu mail address.
diff --git a/gas/testsuite/gas/mips/jal-range.l b/gas/testsuite/gas/mips/jal-range.l
new file mode 100644
index 0000000..79a2509
--- /dev/null
+++ b/gas/testsuite/gas/mips/jal-range.l
@@ -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 --git a/gas/testsuite/gas/mips/jal-range.s b/gas/testsuite/gas/mips/jal-range.s
new file mode 100644
index 0000000..4d843b1
--- /dev/null
+++ b/gas/testsuite/gas/mips/jal-range.s
@@ -0,0 +1,6 @@
+# Source file use to test border cases of jumps
+
+ jal 0x0
+ jal 0x7fffffc
+ jal 0x7fffffd
+ jal 0x8000000
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index fa1dbf8..3059977 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -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" }