The following patch introduces bunch of checks for usage of sp and pc registers
as operands for thumb instructions:
http://sourceware.org/ml/binutils/2009-01/msg00363.html

In particular, it rejects, for example, the following two instructions:

addw sp, sp, #0
subw sp, sp, #0

here sp is used as destination register and this is perfectly allowed according
to ARM documentation. Only pc as destination register lead to unpredictable
results. See e.g. A8.6.215 SUB (SP minus immediate) of ARMv7-A / ARMv7-R
Architecture Reference Manual.

-- 
           Summary: Too strict checks for addw / subw instructions
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: asl at math dot spbu dot ru
                CC: bug-binutils at gnu dot org,joseph at codesourcery dot
                    com
GCC target triplet: arm-none-linux-gnueabi


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to