[Bug middle-end/46164] Local variables in specified registers don't work correctly with inline asm operands
tp+gcc at pambor dot com
gcc-bugzilla@gcc.gnu.org
Wed Aug 13 07:47:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46164
--- Comment #4 from Tim Pambor <tp+gcc at pambor dot com> ---
Created attachment 33307
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33307&action=edit
testcase for gcc 4.9.1
I think this bug is still present in gcc 4.9.1 and 4.8.4.
I could reproduce the problem with the attached testcase using gcc 4.8.4 with
-O1 and -Og and 4.9.1 with -O1. -O0, -O2, -O3, -Os generated correct code. It
generated the following assembler code:
...
mov r0, r0 @ r0
mov r4, r4 @ r1
mov r2, r2 @ r2
...
Expected would have been:
...
mov r0, r0 @ r0
mov r1, r1 @ r1
mov r2, r2 @ r2
...
More information about the Gcc-bugs
mailing list