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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils