[Bug other/80492] Wrong code when unrolling a loop with inline asm and local regs

2017-04-23 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80492 --- Comment #2 from Georg-Johann Lay --- FYI, if the code is not executed in a loop but instead void do_syscalls_noloop (void) { syscall_7 (0, 8); syscall_7 (1, 9); syscall_7 (0, 8); syscall_7 (1, 9); } then the generated code i

[Bug other/80492] Wrong code when unrolling a loop with inline asm and local regs

2017-04-23 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80492 --- Comment #1 from Georg-Johann Lay --- Created attachment 41249 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41249&action=edit loopasm.s: Generated assembly Assembler output as generated with $ avr-gcc loopasm.c -O2 -dp -S -std=gnu99