From: Doug Evans Date: Thu, 4 Feb 1999 22:15:12 +0000 (+0000) Subject: * gas/m32r/outofrange.s: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56629002aa739a052c825fd6216a225570362919;p=binutils-gdb.git * gas/m32r/outofrange.s: New testcase. * gas/m32r/error.exp: Run it. PR 19044 --- 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