bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/12854] New: ARM: Nonsensical argument shift specifications acce


From: dave.martin at linaro dot org
Subject: [Bug gas/12854] New: ARM: Nonsensical argument shift specifications accepted for LSL/LSR/ASR/ROR mnemonics
Date: Tue, 7 Jun 2011 14:06:57 +0000

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

           Summary: ARM: Nonsensical argument shift specifications
                    accepted for LSL/LSR/ASR/ROR mnemonics
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: address@hidden
        ReportedBy: address@hidden


gas accepts a trailing ", <shift-op> <register-or-immediate>" for
LSL/LSR/ASR/ROR instructions, but this is invalid syntax.

The shift specification appears to be ignored, with no effect on the assembly;
rather, this trailing junk should be rejected with an error:

Observed on trunk, 20110606:

binutils$ gas/as-new -o tst.o <<EOF && arm-linux-gnueabi-objdump -d tst.o
        asr     r0, r1, r2, ror #5
        ror     r0, r1, r2, lsl r3
EOF


tst.o:     file format elf32-littlearm


Disassembly of section .text:

00000000 <.text>:
   0:   e1a00251        asr     r0, r1, r2
   4:   e1a00271        ror     r0, r1, r2

-- 
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]