mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
* gas/m32r/interfere.s: New testcase.
* gas/m32r/error.exp: Run it. pr 18634
This commit is contained in:
@ -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
|
||||
|
14
gas/testsuite/gas/m32r/interfere.s
Normal file
14
gas/testsuite/gas/m32r/interfere.s
Normal file
@ -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 } }
|
Reference in New Issue
Block a user