From patchwork Sat Jul 14 19:35:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 171016 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id AFB7F2C00D5 for ; Sun, 15 Jul 2012 05:35:58 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1342899359; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=L5GhZmc v+gLOfrvtvvqI7rHoJGY=; b=ZPP4SoYN5S60jNd55qQV4pNEoei0aH4gjDdZiPC 2GEUxwQ6HHL8FHDX0QlIEgKhAu4eas0PpyP2uFyb7vUvHPl/LxWnD6mCZYjnv4Wr TqVSrJ6rPFCZktoMsalrXU2M2ol1l4tmArkWWel6tLatkXbP9Fqwg1OQUkbp0viE GpEU= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=TuSbJSy11Hct49rVUPb+k2YLUC99YHO/exlmO2weKbDV8yYvxDZN3bWg3HbBNj 92NO4AZJdD/HgrrErTvOIeyikdyVhUWNza/dXPvmubZOVSAdvDJeTDWLAlKC5e1M HprWqkSuE3MvoFJFkM4jn+0IDbl9+9mLlKLUKQ2qKdk5U=; Received: (qmail 723 invoked by alias); 14 Jul 2012 19:35:54 -0000 Received: (qmail 585 invoked by uid 22791); 14 Jul 2012 19:35:53 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Jul 2012 19:35:40 +0000 Received: by pbbrq2 with SMTP id rq2so7806089pbb.20 for ; Sat, 14 Jul 2012 12:35:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.73.70 with SMTP id j6mr11144949pav.5.1342294539878; Sat, 14 Jul 2012 12:35:39 -0700 (PDT) Received: by 10.66.11.130 with HTTP; Sat, 14 Jul 2012 12:35:39 -0700 (PDT) Date: Sat, 14 Jul 2012 21:35:39 +0200 Message-ID: Subject: [PATCH, i386]: Fix ix86_set_reg_reg_cost w.r.t. TFmode From: Uros Bizjak To: gcc-patches@gcc.gnu.org Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hello! Recently, gcc was switched to enable TFmode moves in XMM registers also for TARGET_SSE. Sync reg-reg move cost calculation. 2012-07-14 Uros Bizjak * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode for TARGET_SSE. Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN. Uros. Index: config/i386/i386.c =================================================================== --- config/i386/i386.c (revision 189478) +++ config/i386/i386.c (working copy) @@ -31962,7 +31962,7 @@ ix86_set_reg_reg_cost (enum machine_mode mode) break; case MODE_FLOAT: - if ((TARGET_SSE2 && mode == TFmode) + if ((TARGET_SSE && mode == TFmode) || (TARGET_80387 && mode == XFmode) || ((TARGET_80387 || TARGET_SSE2) && mode == DFmode) || ((TARGET_80387 || TARGET_SSE) && mode == SFmode)) @@ -31970,7 +31970,7 @@ ix86_set_reg_reg_cost (enum machine_mode mode) break; case MODE_COMPLEX_FLOAT: - if ((TARGET_SSE2 && mode == TCmode) + if ((TARGET_SSE && mode == TCmode) || (TARGET_80387 && mode == XCmode) || ((TARGET_80387 || TARGET_SSE2) && mode == DCmode) || ((TARGET_80387 || TARGET_SSE) && mode == SCmode))