From: Doug Evans Date: Thu, 7 Jan 1999 00:45:24 +0000 (+0000) Subject: * gas/m32r/interfere.s: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b4e5a82fe825c2e4fea266115a08280a2670dff;p=binutils-gdb.git * gas/m32r/interfere.s: New testcase. * gas/m32r/error.exp: Run it. pr 18634 --- diff --git a/gas/testsuite/gas/m32r/.Sanitize b/gas/testsuite/gas/m32r/.Sanitize index d288a8c2f0d..e76b6b7944d 100644 --- a/gas/testsuite/gas/m32r/.Sanitize +++ b/gas/testsuite/gas/m32r/.Sanitize @@ -15,7 +15,7 @@ Do-first: -m32rx_files="fslotx.s fslotx.d m32rx.s m32rx.d m32rx.exp error.exp wrongsize.s" +m32rx_files="fslotx.s fslotx.d m32rx.s m32rx.d m32rx.exp error.exp interfere.s wrongsize.s" if ( echo $* | grep keep\-m32rx > /dev/null ) ; then keep_these_too="${m32rx_files} ${keep_these_too}" else diff --git a/gas/testsuite/gas/m32r/interfere.s b/gas/testsuite/gas/m32r/interfere.s new file mode 100644 index 00000000000..775ecdef8b5 --- /dev/null +++ b/gas/testsuite/gas/m32r/interfere.s @@ -0,0 +1,14 @@ +; Test error messages in instances where output operands interfere. + +; { dg-do assemble { target m32r-*-* } } +; { dg-options -m32rx } + +interfere: + trap #1 || cmp r3, r4 ; { dg-error "write to the same" } + ; { dg-warning "same" "out->in" { target *-*-* } { 7 } } + rte || addx r3, r4 ; { dg-error "write to the same" } + ; { dg-warning "same" "out->in" { target *-*-* } { 9 } } + cmp r1, r2 || addx r3, r4 ; { dg-error "write to the same" } + ; { dg-warning "same" "out->in" { target *-*-* } { 11 } } + mvtc r0, psw || addx r1, r4 ; { dg-error "write to the same" } + ; { dg-warning "same" "out->in" { target *-*-* } { 13 } }