linux-atomic.asm (ATOMIC_TEST_AND_SET): Take unsigned extension into account.
authorKaz Kojima <kkojima@gcc.gnu.org>
Thu, 20 Mar 2008 23:25:41 +0000 (23:25 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Thu, 20 Mar 2008 23:25:41 +0000 (23:25 +0000)
commit06644a0738a2f2bc1399fc0d80a1fb622e57a6a9
tree2e8bd8bf38697d6745b57d29dddb918420fca9e9
parentad6003f260068a46bd378c5601604bc1cf077e74
linux-atomic.asm (ATOMIC_TEST_AND_SET): Take unsigned extension into account.

* config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
unsigned extension into account.
(ATOMIC_COMPARE_AND_SWAP): Likewise.
(ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
Do computations on a scratch register.

From-SVN: r133405
gcc/ChangeLog
gcc/config/sh/linux-atomic.asm