From patchwork Tue Aug 21 15:05:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 179076 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 32F5A2C008E for ; Wed, 22 Aug 2012 01:08:06 +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=1346166486; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Date:From:To:Cc:Subject:Message-ID:Reply-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=S1HbqKCFUeAfw3iWSF54 9+6m5Ts=; b=XoGc+8XiXKDaRZnTf2DhDIjftPrTaeSjzJNp2hYgNw+uKSar+K6K 17lcyk9Va/0dCEY8Fab551qvWJuVrHEZ/gQ/EsbCRGtPycYYng7a5wt4SiVT5TV6 dV+lEnLChGD6kyGB4F47oUrRJioj3kfImuDKrgzS3zLWaWZVr8cfsMU= 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:X-ExtLoop1:Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Un+eA9geUEeLNJhGPSmoq62uGdbyF2pWBy05hqNeXrgtCI+MWsiuRQPOCk0So3 5IweaJz9EWiMnoH5K+Ovt8uo4IZBxZGPBLCSWAc5k0pckW676rH1qtbpvEvVaVrN ip1cAhJtArEZAvOdrvk8MVWtKBaswMIG1yXHudxu4/PEA=; Received: (qmail 18774 invoked by alias); 21 Aug 2012 15:07:50 -0000 Received: (qmail 18724 invoked by uid 22791); 21 Aug 2012 15:07:48 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, NO_DNS_FOR_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Aug 2012 15:07:20 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by fmsmga101.fm.intel.com with ESMTP; 21 Aug 2012 08:05:28 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by azsmga001.ch.intel.com with ESMTP; 21 Aug 2012 08:05:28 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 0BFB0805BE; Tue, 21 Aug 2012 08:05:27 -0700 (PDT) Date: Tue, 21 Aug 2012 08:05:27 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: PATCH: PR target/54347: REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used in i386 Message-ID: <20120821150527.GA22965@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 Hi, long double may not be 80-bit on i386. We can't use REAL_VALUE_TO_TARGET_LONG_DOUBLE for XFmode. This patch replaces REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target. OK to install? Thanks. H.J. --- 2012-08-21 H.J. Lu PR target/54347 * config/i386/i386.c (ix86_split_to_parts): Replace REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5da4da2..a6fc45b 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -20743,7 +20743,9 @@ ix86_split_to_parts (rtx operand, rtx *parts, enum machine_mode mode) parts[2] = gen_int_mode (l[2], SImode); break; case XFmode: - REAL_VALUE_TO_TARGET_LONG_DOUBLE (r, l); + /* We can't use REAL_VALUE_TO_TARGET_LONG_DOUBLE since + long double may not be 80-bit. */ + real_to_target (l, &r, mode); parts[2] = gen_int_mode (l[2], SImode); break; case DFmode: