From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27628 invoked by alias); 25 May 2012 15:56:22 -0000 Received: (qmail 27487 invoked by uid 22791); 25 May 2012 15:56:19 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 May 2012 15:56:06 +0000 From: "wschmidt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/53487] New: [4.8 Regression] Unrecognizable insn for conditional move Date: Fri, 25 May 2012 16:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wschmidt at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-05/txt/msg02486.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53487 Bug #: 53487 Summary: [4.8 Regression] Unrecognizable insn for conditional move Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: wschmidt@gcc.gnu.org CC: bergner@gcc.gnu.org, meissner@gcc.gnu.org, pinskia@gcc.gnu.org Host: powerpc64-linux Target: powerpc64-linux Build: powerpc64-linux Created attachment 27496 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D27496 Reduced testcase The attached test (reduced from 456.hmmer) fails to compile beginning with r187183, as shown: wschmidt@bns:~/delta> gcc -c -o cluster.o -m64 -O3 -mcpu=3Dpower7 -ffast-m= ath -misel cluster.i cluster.i: In function =E2=80=98Cluster=E2=80=99: cluster.i:30:1: error: unrecognizable insn: } ^ (insn 156 155 157 8 (set (reg:SI 289) (if_then_else:SI (ge (reg:SF 291) (const_double:SF 0.0 [0x0.0p+0])) (subreg/s:SI (reg/v:DI 258 [ i+-4 ]) 4) (subreg/s:SI (reg/v:DI 265 [ row+-4 ]) 4))) -1 (nil)) cluster.i:30:1: internal compiler error: in extract_insn, at recog.c:2130 } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. This form of conditional move insn isn't recognized on powerpc64 because the floating-point comparison is incompatible with a conditional move of integer arguments. Prior to this revision, code generation recognized the incompatibility and did not generate the conditional move. r187183 is: 2012-05-04 Andrew Pinski * expr.c (get_def_for_expr_class): New function. (convert_tree_comp_to_rtx): New function. (expand_cond_expr_using_cmove): New function. (expand_expr_real_2 ): Call expand_cond_expr_using_cmove first and return if it succeeds. Remove the check for HAVE_conditional_move since we should have already converted it to a conditional move. * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison modes of DImode for 32bits and TImode.