From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11203 invoked by alias); 14 Sep 2012 12:38:03 -0000 Received: (qmail 11183 invoked by uid 22791); 14 Sep 2012 12:38:02 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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, 14 Sep 2012 12:37:49 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54564] [4.8 Regression] Broken __builtin_ia32_vfmadds[sd]3 Date: Fri, 14 Sep 2012 12:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.2 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" 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-09/txt/msg01094.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54564 --- Comment #6 from Jakub Jelinek 2012-09-14 12:36:41 UTC --- Author: jakub Date: Fri Sep 14 12:36:33 2012 New Revision: 191297 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191297 Log: PR target/54564 * config/i386/sse.md (fmai_vmfmadd_): Use (match_dup 1) instead of (match_dup 0) as second argument to vec_merge. (*fmai_fmadd_, *fmai_fmsub_): Likewise. Remove third alternative. (*fmai_fnmadd_, *fmai_fnmsub_): Likewise. Negate operand 2 instead of operand 1, but put it as first argument of fma. * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss, _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead of the first. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog --- Comment #7 from Jakub Jelinek 2012-09-14 12:37:32 UTC --- Author: jakub Date: Fri Sep 14 12:37:16 2012 New Revision: 191298 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191298 Log: PR target/54564 * config/i386/sse.md (fmai_vmfmadd_): Use (match_dup 1) instead of (match_dup 0) as second argument to vec_merge. (*fmai_fmadd_, *fmai_fmsub_): Likewise. Remove third alternative. (*fmai_fnmadd_, *fmai_fnmsub_): Likewise. Negate operand 2 instead of operand 1, but put it as first argument of fma. * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss, _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead of the first. Modified: trunk/gcc/config/i386/fmaintrin.h trunk/gcc/config/i386/sse.md