mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
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:
parent
adf48063d1
commit
92f5f2e21b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user