~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/gas/testsuite/gas/arc/warn.s

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; Test ARC specific assembler warnings
 
2
;
 
3
; { dg-do assemble { target arc-*-* } }
 
4
 
 
5
        b.d foo
 
6
        mov r0,256      ; { dg-warning "8 byte instruction in delay slot" "8 byte instruction in delay slot" }
 
7
 
 
8
        j.d foo         ; { dg-warning "8 byte jump instruction with delay slot" "8 byte jump instruction with delay slot" }
 
9
        mov r0,r1
 
10
 
 
11
foo:
 
12
.extCoreRegister roscreg,45,r,can_shortcut
 
13
.extCoreRegister woscreg,46,w,can_shortcut
 
14
        .section .text
 
15
         add    r0,woscreg,r1   ; { dg-warning "Error: attempt to read writeonly register" }
 
16
         add    roscreg,r1,r2   ; { dg-warning "Error: attempt to set readonly register" }