From 56629002aa739a052c825fd6216a225570362919 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 4 Feb 1999 22:15:12 +0000 Subject: [PATCH] * gas/m32r/outofrange.s: New testcase. * gas/m32r/error.exp: Run it. PR 19044 --- gas/testsuite/ChangeLog | 5 + gas/testsuite/gas/m32r/outofrange.s | 145 ++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+) create mode 100644 gas/testsuite/gas/m32r/outofrange.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index a254b0c962b..26d6ac5815c 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 + + * gas/m32r/outofrange.s: New testcase. + * gas/m32r/error.exp: Run it. + 1999-01-06 Doug Evans * 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 00000000000..570d311bdcd --- /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 } } + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 + ld24 r0,#0 +label: + jmp r14 -- 2.30.2