re PR target/88188 (ICE in print_operand, at config/rs6000/rs6000.c)
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Dec 2018 19:41:52 +0000 (20:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Dec 2018 19:41:52 +0000 (20:41 +0100)
commitf698917d45cc12703603b85fb9bb3ea378984269
treedbaaaf710169dfa637848913a8c25bd3a678e231
parent22f309bc29de788fc686f9f98b194996b109b218
re PR target/88188 (ICE in print_operand, at config/rs6000/rs6000.c)

PR target/88188
* config/rs6000/rs6000.c (ccr_bit): Return -1 instead of assertion
failures.
(print_operand): Use REG_P instead of GET_CODE == REG.
<case 'D'>: Also check CR_REGNO_P (REGNO (x)).
<case 't'>: Likewise.  Remove GET_MODE check.
* config/rs6000/rs6000.md (scc patterns): Assert ccr_bit didn't
return -1.

* gcc.target/powerpc/pr88188-2.c: New test.

From-SVN: r266794
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr88188-2.c [new file with mode: 0644]