~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to gas/testsuite/gas/m32r/interfere.s

  • Committer: Bazaar Package Importer
  • Author(s): James Troup
  • Date: 2004-05-19 10:35:44 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040519103544-17h3o6e8pwndydrg
Tags: 2.14.90.0.7-8
debian/rules: don't use gcc-2.95 on m68k.  Thanks to Adam Conrad for
pointing this out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; Test error messages in instances where output operands interfere.
 
2
 
 
3
; { dg-do assemble { target m32r-*-* } }
 
4
; { dg-options -m32rx }
 
5
 
 
6
interfere:
 
7
        trap #1      || cmp  r3, r4     ; { dg-error "write to the same" }
 
8
                ; { dg-warning "same" "out->in" { target *-*-* } { 7 } }
 
9
        rte          || addx r3, r4     ; { dg-error "write to the same" }
 
10
                ; { dg-warning "same" "out->in" { target *-*-* } { 9 } }
 
11
        cmp  r1, r2  || addx r3, r4     ; { dg-error "write to the same" }
 
12
                ; { dg-warning "same" "out->in" { target *-*-* } { 11 } }
 
13
        mvtc r0, psw || addx r1, r4     ; { dg-error "write to the same" }
 
14
                ; { dg-warning "same" "out->in" { target *-*-* } { 13 } }