OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [testsuite/] [ld-m68hc11/] [bug-3331.s] - Diff between revs 38 and 156

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 156
;;; Bug #3331:  Invalid group relaxation, bset uses an invalid address
;;; Bug #3331:  Invalid group relaxation, bset uses an invalid address
;;; http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3331&group_id=2424
;;; http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3331&group_id=2424
;;; 
;;; 
        .sect .text
        .sect .text
        .globl _start
        .globl _start
_start:
_start:
        .relax  L1
        .relax  L1
        ldx     #foo            ;; This relax group must not be changed.
        ldx     #foo            ;; This relax group must not be changed.
        bset    0,x #4
        bset    0,x #4
L1:
L1:
        ldd     #2
        ldd     #2
        std     table           ;; This instruction uses a symbol in page0
        std     table           ;; This instruction uses a symbol in page0
                                ;; and it triggered the relaxation of the
                                ;; and it triggered the relaxation of the
                                ;; previous relax group
                                ;; previous relax group
        rts
        rts
 
 
        .sect .page0
        .sect .page0
        .globl table
        .globl table
table:  .long 0
table:  .long 0
 
 
        .sect .data
        .sect .data
        .globl foo
        .globl foo
foo:    .long 0
foo:    .long 0
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.