diff options
author | Doug Evans <dje@google.com> | 1999-01-07 00:45:24 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1999-01-07 00:45:24 +0000 |
commit | 6b4e5a82fe825c2e4fea266115a08280a2670dff (patch) | |
tree | 261dfa2bfa0a20c4a8c5102a681716077e99bd38 /gas | |
parent | e0eaa63837a81b504e5eb85cb9c53b75159d6728 (diff) | |
download | gdb-6b4e5a82fe825c2e4fea266115a08280a2670dff.zip gdb-6b4e5a82fe825c2e4fea266115a08280a2670dff.tar.gz gdb-6b4e5a82fe825c2e4fea266115a08280a2670dff.tar.bz2 |
* gas/m32r/interfere.s: New testcase.
* gas/m32r/error.exp: Run it.
pr 18634
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/gas/m32r/.Sanitize | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/m32r/interfere.s | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/gas/testsuite/gas/m32r/.Sanitize b/gas/testsuite/gas/m32r/.Sanitize index d288a8c..e76b6b7 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 0000000..775ecde --- /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 } } |