https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69548
--- Comment #3 from Alan Modra <amodra at gcc dot gnu.org> --- Author: amodra Date: Tue Feb 2 01:29:41 2016 New Revision: 233066 URL: https://gcc.gnu.org/viewcvs?rev=233066&root=gcc&view=rev Log: [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. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/powerpc/pr69548.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/rs6000/predicates.md branches/gcc-5-branch/gcc/testsuite/ChangeLog