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

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/ld/testsuite/ld-m68hc11/bug-1417.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
;;; Bug #1417:  Branch wrong after linker relaxation
 
2
;;; http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1417&group_id=2424
 
3
;;; 
 
4
        .sect .text
 
5
        .globl _start
 
6
_start:
 
7
        tst     table
 
8
        bne     L1              ; Branch was adjusted but it must not
 
9
        jsr     foo
 
10
L1:
 
11
        .relax  L2
 
12
        ldx     #table          ; Instruction removed
 
13
        bset    0,x #4          ; Changed to bset *table #4
 
14
L2:
 
15
        rts
 
16
foo:
 
17
        rts
 
18
 
 
19
        .sect .page0
 
20
        .globl table
 
21
table:  .long 0