bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/17763] New: Parser bug in comment after immediate operand


From: martin at NetBSD dot org
Subject: [Bug gas/17763] New: Parser bug in comment after immediate operand
Date: Sat, 27 Dec 2014 12:45:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17763

            Bug ID: 17763
           Summary: Parser bug in comment after immediate operand
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: martin at NetBSD dot org

The following code demonstrates what might be a parser bug, this is armv7
assembly (and happened in real NetBSD code):

#define AWIN_SRAM_VER_R_EN      (1<<15)

        # this works

        # it's bit 15
        orr     r1, r1, #(AWIN_SRAM_VER_R_EN << 8)

        # this fails
        orr     r1, r1, #(AWIN_SRAM_VER_R_EN << 8)      # it's bit 15


Save as test.S, invoke gcc like: 

> armv7--netbsdelf-eabihf-gcc -c test.S
test.S: Assembler messages:
test.S:9: Error: garbage following instruction -- `orr
r1,r1,#((1<<15)<<8)#it115bit 15'

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