https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84700
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Jun 25 17:27:47 2018 New Revision: 262070 URL: https://gcc.gnu.org/viewcvs?rev=262070&root=gcc&view=rev Log: Backported from mainline 2018-03-05 Jakub Jelinek <ja...@redhat.com> PR target/84700 * combine.c (combine_simplify_rtx): Don't try to simplify if if_then_else_cond returned non-NULL, but either true_rtx or false_rtx are equal to x. * gcc.target/powerpc/pr84700.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.target/powerpc/pr84700.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/combine.c branches/gcc-6-branch/gcc/testsuite/ChangeLog