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

« back to all changes in this revision

Viewing changes to ld/testsuite/ld-m68hc11/bug-3331.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
;;; Bug #3331:  Invalid group relaxation, bset uses an invalid address
 
2
;;; http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3331&group_id=2424
 
3
;;; 
 
4
        .sect .text
 
5
        .globl _start
 
6
_start:
 
7
        .relax  L1
 
8
        ldx     #foo            ;; This relax group must not be changed.
 
9
        bset    0,x #4
 
10
L1:
 
11
        ldd     #2
 
12
        std     table           ;; This instruction uses a symbol in page0
 
13
                                ;; and it triggered the relaxation of the
 
14
                                ;; previous relax group
 
15
        rts
 
16
 
 
17
        .sect .page0
 
18
        .globl table
 
19
table:  .long 0
 
20
 
 
21
        .sect .data
 
22
        .globl foo
 
23
foo:    .long 0