rs6000.c (rs6000_emit_sync): For QI or HI mode used_m...
authorJakub Jelinek <jakub@redhat.com>
Thu, 30 Aug 2007 08:25:36 +0000 (10:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 30 Aug 2007 08:25:36 +0000 (10:25 +0200)
commitc75c6d11bcc4a54e608d46a203a19e62cda55785
tree47d702ba085795189fe469e869366223fc7c596c
parenta996720c4e3629eb39b2fd02e4c3053f04a3c6dd
rs6000.c (rs6000_emit_sync): For QI or HI mode used_m...

* config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
used_m, even if it is 32-bit aligned, adjust used_m MEM to have
SImode and update m.  Don't run gen_lowpart_common on arbitrary
memory address, force it to register first.

* gcc.dg/sync-2.c (AI_ALIGN): Define if not defined.
(AI): Add AI_ALIGN.
* gcc.dg/sync-3.c: New test.

From-SVN: r127922
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/sync-2.c
gcc/testsuite/gcc.dg/sync-3.c [new file with mode: 0644]