bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/9856] New: generates "illegal" opcodes in unified mode instead


From: bastian dot schick at sciopta dot com
Subject: [Bug gas/9856] New: generates "illegal" opcodes in unified mode instead of error
Date: 17 Feb 2009 12:48:20 -0000

GAS generates "illegal" opcodes instead of showing a warning or error if
wrong assembly code is entered in unified mode. 
Worse: E.g. XScale excecutes the illegal opcodes.

Example: arm-none-eabi-as -mcpu=xscale

        .syntax unified
        .code 16
        mov     r1,r0
        movs    r1,r0

Result:
0000000 <.text>:
  0:   4601            mov     r1, r0
  2:   1c01            adds    r1, r0, #0

0: - Illegal opcode for XScale, move w/o setting flags.

Note:
According ARM ARM the opcode is valid, but the old syntax does not allow to
choose two lower registers.
IMHO, a warning should be issued if a none-T2 cpu is selected.

-- 
           Summary: generates "illegal" opcodes in unified mode instead of
                    error
           Product: binutils
           Version: 2.19
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: bastian dot schick at sciopta dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: arm-none-eabi


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

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




reply via email to

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