]> git.ipfire.org Git - thirdparty/gcc.git/commit
[RS6000] lqarx and stqcx. registers
authorAlan Modra <amodra@gmail.com>
Tue, 2 Feb 2016 01:29:58 +0000 (11:59 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 2 Feb 2016 01:29:58 +0000 (11:59 +1030)
commita1bc72c41e20c607c6cd3f6b59aac4501922d0bc
treef2585e326bce6f4410feebf9ad4f8713ea088abf
parent004de3043f74c959c1d446e2dbff240e10cf244f
[RS6000] lqarx and stqcx. registers

lqarx RT and stqcx. RS are valid only with even numbered gprs.  The
predicate to enforce this happens to allow a loophole, closed by this
patch.

PR target/69548
gcc/
* config/rs6000/predicates.md (quad_int_reg_operand): Don't
allow subregs.
gcc/testsuite/
* gcc.target/powerpc/pr69548.c: New test.

From-SVN: r233067
gcc/ChangeLog
gcc/config/rs6000/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr69548.c [new file with mode: 0644]