fix thinko

From-SVN: r74889
This commit is contained in:
Jason Merrill 2003-12-20 12:44:11 -05:00
parent 3914c31fc6
commit 778e99e55f
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ __exchange_and_add(volatile _Atomic_word* __mem, int __val)
"/* Inline exchange & add */\n"
"0:\t"
"lwarx %0,0,%3 \n\t"
"add%I3 %1,%0,%4 \n\t"
"add%I4 %1,%0,%4 \n\t"
_STWCX " %1,0,%3 \n\t"
"bne- 0b \n\t"
"/* End exchange & add */"
@ -66,7 +66,7 @@ __atomic_add(volatile _Atomic_word* __mem, int __val)
"/* Inline atomic add */\n"
"0:\t"
"lwarx %0,0,%2 \n\t"
"add%I2 %0,%0,%3 \n\t"
"add%I3 %0,%0,%3 \n\t"
_STWCX " %0,0,%2 \n\t"
"bne- 0b \n\t"
"/* End atomic add */"