From patchwork Tue Jun 4 13:05:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 248582 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 10C012C00A2 for ; Tue, 4 Jun 2013 23:05:41 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=IuCLU+vqqLf0DBRFAbZyX1LJsWbFDiu/qrGru05y/KgY9Fyz/p ex4vN6a8yWB0AKPPYftovbCicPIcvfj9LB0J8WRhUX3NUExFMs7twKVF6RsA1hvm NbKMvIZRFKd0QiFhCHTlnPKPOk2QUDBywrPm9dlxuswYHUwk5nM3HjP8I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=rkgzjEyudbNhTdpI2dNabT4UHNE=; b=DQ22Ixf0znYXkAs3JsFv sI3Hq6AMDrrYblVSKq2mqYshxkzL65YPrcTk/Ag35xH2bi28EdXx7uXxkgBJkrpq CKCrX4QsCwKBWs3KMWbKwCElOwLXppyT1cWSReI8BWDIvmF3HAg+K/iTmgpoALe7 +bv+Qt534rh+PxKbmED/0vE= Received: (qmail 4496 invoked by alias); 4 Jun 2013 13:05:36 -0000 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 Received: (qmail 4487 invoked by uid 89); 4 Jun 2013 13:05:36 -0000 X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, SPF_PASS autolearn=ham version=3.3.1 Received: from mail-pd0-f181.google.com (HELO mail-pd0-f181.google.com) (209.85.192.181) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 04 Jun 2013 13:05:35 +0000 Received: by mail-pd0-f181.google.com with SMTP id bv13so210030pdb.26 for ; Tue, 04 Jun 2013 06:05:33 -0700 (PDT) X-Received: by 10.66.145.98 with SMTP id st2mr29268630pab.24.1370351133828; Tue, 04 Jun 2013 06:05:33 -0700 (PDT) Received: from bubble.grove.modra.org ([101.166.26.37]) by mx.google.com with ESMTPSA id fp2sm63252062pbb.36.2013.06.04.06.05.31 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 06:05:33 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 0D1F7EA0073; Tue, 4 Jun 2013 22:35:27 +0930 (CST) Date: Tue, 4 Jun 2013 22:35:27 +0930 From: Alan Modra To: gcc-patches@gcc.gnu.org Cc: David Edelsohn Subject: [RS6000] LE SFmode constants in toc Message-ID: <20130604130527.GA6878@bubble.grove.modra.org> Mail-Followup-To: gcc-patches@gcc.gnu.org, David Edelsohn MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) ppc64 SFmode constants in the TOC occupy the first word of a dword. For little-endian, we don't need to shift left. Bootstrapped etc. and committed as obvious revision 199646. * config/rs6000/rs6000.c (output_toc): Correct little-endian float constant output. Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 199644) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -22574,7 +22574,10 @@ output_toc (FILE *file, rtx x, int labelno, enum m fputs (DOUBLE_INT_ASM_OP, file); else fprintf (file, "\t.tc FS_%lx[TC],", l & 0xffffffff); - fprintf (file, "0x%lx00000000\n", l & 0xffffffff); + if (WORDS_BIG_ENDIAN) + fprintf (file, "0x%lx00000000\n", l & 0xffffffff); + else + fprintf (file, "0x%lx\n", l & 0xffffffff); return; } else