Specify that the input to a gnu asm statemnt is also an output so gcc knows the value in the register gets clobbered (bug 749486, r=jbramley)

This commit is contained in:
Marty Rosenberg 2012-04-27 14:58:03 -07:00
parent adf48063d1
commit 92f5f2e21b

View File

@ -226,8 +226,8 @@ ToInt32(double d)
// will result in a conversion of '0'.
" mov %0, #0\n"
"9:\n"
: "=r" (i), "=&r" (tmp0), "=&r" (tmp1), "=&r" (tmp2)
: "r" (d)
: "=r" (i), "=&r" (tmp0), "=&r" (tmp1), "=&r" (tmp2), "=&r" (d)
: "4" (d)
: "cc"
);
return i;