aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/cpu
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2003-12-20 12:44:11 -0500
committerJason Merrill <jason@gcc.gnu.org>2003-12-20 12:44:11 -0500
commit778e99e55fafd70194c7d8ff2ed0f51f3a1802fc (patch)
tree88183a67b2608e7c5e4b6cf5c21553b1c6792083 /libstdc++-v3/config/cpu
parent3914c31fc6095844415cef8f73d8efd858765cb7 (diff)
downloadgcc-778e99e55fafd70194c7d8ff2ed0f51f3a1802fc.zip
gcc-778e99e55fafd70194c7d8ff2ed0f51f3a1802fc.tar.gz
gcc-778e99e55fafd70194c7d8ff2ed0f51f3a1802fc.tar.bz2
fix thinko
From-SVN: r74889
Diffstat (limited to 'libstdc++-v3/config/cpu')
-rw-r--r--libstdc++-v3/config/cpu/powerpc/atomicity.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/config/cpu/powerpc/atomicity.h b/libstdc++-v3/config/cpu/powerpc/atomicity.h
index 6c474b4..3b44b7d 100644
--- a/libstdc++-v3/config/cpu/powerpc/atomicity.h
+++ b/libstdc++-v3/config/cpu/powerpc/atomicity.h
@@ -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 */"