[Bug inline-asm/67334] [4.7 arm inline-asm] inline assembly incorrect register allocation
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 24 09:12:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67334
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
That is:
__asm__ volatile ("\n"
" adds %0,%2,%4\n"
" adc %1,%3,$0"
: "=&r"(c),"=r"(d)
: "r"(a),"r"(b),"r"(i) : "cc");
Because the first (0th) operand gets clobbered (set) before you use the other
ones.
More information about the Gcc-bugs
mailing list