bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in "as" 2.13.1


From: Torbjorn Granlund
Subject: Bug in "as" 2.13.1
Date: 05 Dec 2002 04:06:49 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Source package: binutils-2.13.1

Environment: sparcv9-sun-solaris2.8

Command: as -xarch=v9 tco.s

Problem description:

The line with "lduh" contains questionable assembly
(unfortunately generated by gcc 3.2.1).  The assembler
should give an error message for this.  Instead of flagging
the error, it produces an object file with two relocs
generated for the location...


Here is the test case tco.s:

        .global tab
        .section        ".data"
        .align 2
        .type   tab,#object
        .size   tab,4
tab:
        .half   2989, -13570
        .section        ".text"
        .align 4
        .global foo
        .type   foo,#function
        .proc   04
foo:
        !#PROLOGUE# 0
        !#PROLOGUE# 1
        sethi   %hh(tab), %o0
        or      %o0, %hm(tab), %o0
        sllx    %o0, 32, %o0
        sethi   %lm(tab), %o1
        add     %o0, %o1, %o0
        retl
        lduh    [%o0+%lo(tab)+1], %o0
.LLfe1:
        .size   foo,.LLfe1-foo

-- 
Torbjörn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]