bug-binutils
[Top][All Lists]
Advanced

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

Assembler incorrectly rejects valid ARM/thumb code


From: Torbjorn Granlund
Subject: Assembler incorrectly rejects valid ARM/thumb code
Date: Wed, 27 Mar 2013 21:58:06 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix)

Test case:

        .syntax unified
        .thumb
        .text
        it        al
        subal     r3, r3, #1

This is valid code.  But gas 2.23.2 complains:

gas/as-new ~/x.s
/home/tege/x.s: Assembler messages:
/home/tege/x.s:5: Error: instruction not allowed in IT block -- `subal
r3,r3,#1'

(If one changes the condition from 'al' to anything else, for example
'eq', the assembler works correctly.)

-- 
Torbjörn



reply via email to

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