This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/88188] ICE in print_operand, at config/rs6000/rs6000.c
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Dec 2018 19:42:24 +0000
- Subject: [Bug target/88188] ICE in print_operand, at config/rs6000/rs6000.c
- Auto-submitted: auto-generated
- References: <bug-88188-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88188
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Dec 4 19:41:52 2018
New Revision: 266794
URL: https://gcc.gnu.org/viewcvs?rev=266794&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.target/powerpc/pr88188-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c
trunk/gcc/config/rs6000/rs6000.md
trunk/gcc/testsuite/ChangeLog