~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/m68k/p2663.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
|
 
2
| This code generates an incorrect pc relative offset 
 
3
|
 
4
bug:       movel  #4,%d7
 
5
           jsr    table(%pc,%d7.w)            | wrong
 
6
           jsr    %pc@(table-.-2:b,%d7:w)     | correct but cryptic
 
7
           nop
 
8
           nop
 
9
table:
 
10
           bra    junk
 
11
           bra    junk
 
12
           bra    junk
 
13
 
 
14
junk:
 
15
    nop
 
16
    rts