bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/14739] New: Incorrect opcode generated when adding to sp o


From: m.galante at centrosistemi dot it
Subject: [Bug binutils/14739] New: Incorrect opcode generated when adding to sp on M32C
Date: Thu, 18 Oct 2012 07:24:56 +0000


http://sourceware.org/bugzilla/show_bug.cgi?id=14739



             Bug #: 14739

           Summary: Incorrect opcode generated when adding to sp on M32C

           Product: binutils

           Version: 2.22

            Status: NEW

          Severity: critical

          Priority: P2

         Component: binutils

        AssignedTo: address@hidden

        ReportedBy: address@hidden

    Classification: Unclassified





m32c-elf-as 2.22 hosted on Windows XP.



The following source:



    add.l    #127,sp

    add.l    #128,sp

    add.l    #129,sp



assembles to:



   0:    b6 03 7f        add.l:s #127,sp

   3:    b6 03 80        add.l:s #-128,sp

   6:    b6 03 81        add.l:s #-127,sp



So it looks like immediate values are always treated as 8-bit signed constants.



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

------- You are receiving this mail because: -------

You are on the CC list for the bug.



reply via email to

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