aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1999-02-04 22:15:12 +0000
committerDoug Evans <dje@google.com>1999-02-04 22:15:12 +0000
commit56629002aa739a052c825fd6216a225570362919 (patch)
treeac4f40b226f9e74bfd0c7687e61d309425979d0f /gas
parentd0d495f601c2e5feff41e9b56d6344d7a17e436f (diff)
downloadfsf-binutils-gdb-56629002aa739a052c825fd6216a225570362919.zip
fsf-binutils-gdb-56629002aa739a052c825fd6216a225570362919.tar.gz
fsf-binutils-gdb-56629002aa739a052c825fd6216a225570362919.tar.bz2
* gas/m32r/outofrange.s: New testcase.
* gas/m32r/error.exp: Run it. PR 19044
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/m32r/outofrange.s145
2 files changed, 150 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index a254b0c..26d6ac5 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,4 +1,9 @@
start-sanitize-m32rx
+Thu Feb 4 14:13:32 1999 Doug Evans <devans@canuck.cygnus.com>
+
+ * gas/m32r/outofrange.s: New testcase.
+ * gas/m32r/error.exp: Run it.
+
1999-01-06 Doug Evans <devans@casey.cygnus.com>
* gas/m32r/interfere.s: New testcase.
diff --git a/gas/testsuite/gas/m32r/outofrange.s b/gas/testsuite/gas/m32r/outofrange.s
new file mode 100644
index 0000000..570d311
--- /dev/null
+++ b/gas/testsuite/gas/m32r/outofrange.s
@@ -0,0 +1,145 @@
+; Test error messages where branches are out of range.
+
+; { dg-do assemble { target m32r-*-* } }
+
+ .text
+ .global foo
+foo:
+ bl.s label
+ ; { dg-error "out of range" "out of range bl.s" { target *-*-* } { 8 } }
+ bnc.s label
+ ; { dg-error "out of range" "out of range bnc.s" { target *-*-* } { 10 } }
+ bra.s label
+ ; { dg-error "out of range" "out of range bra.s" { target *-*-* } { 12 } }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