re PR target/69644 (ICE with -O on __sync_bool_compare_and_swap with short in extract...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Feb 2016 22:38:56 +0000 (23:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Feb 2016 22:38:56 +0000 (23:38 +0100)
commiteadb8035ac4b259f199b8a82a88e46764f17c95b
tree7385197301156976f03b41c738131cbaf797b422
parentb12d4923c4fddc7597eecc8273e7e02a78641268
re PR target/69644 (ICE with -O on __sync_bool_compare_and_swap with short in extract_insn, at recog.c:2286)

PR target/69644
* config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
Force oldval into register if it does not satisfy reg_or_short_operand
predicate.  Fix up formatting.

* gcc.dg/pr69644.c: New test.

From-SVN: r233113
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr69644.c [new file with mode: 0644]