re PR target/37640 (__sync_lock_test_and_set on PPC64 causes ICE)
commit4b49d9cebcb3e228467db4f45adfe00986f26f30
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Sun, 28 Sep 2008 23:07:01 +0000 (28 23:07 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 28 Sep 2008 23:07:01 +0000 (28 16:07 -0700)
tree9f196ee3834f09ea3f8097275cea07421e2990e8
parent30deaaf309195b515d474935c283620973a1fb3e
re PR target/37640 (__sync_lock_test_and_set on PPC64 causes ICE)

2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/37640
        * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
        address to a register before taking the lower part.

2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/37640
        * gcc.c-torture/compile/sync-3.c: New testcase to check that
addresses of non zero offset works.

From-SVN: r140740
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/sync-3.c [new file with mode: 0644]