From patchwork Tue Nov 19 16:54:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weigand X-Patchwork-Id: 292496 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 586522C012B for ; Wed, 20 Nov 2013 03:59:27 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:to:date:from:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=KPjea8P/kSprvIHM 2g7LNDunDe3bVx1Yhmbu8pE4dYq7HQM6Smmp+18+CE/eLR7L3g6CQ8bM1oxfLXwm iZh8mXaqs9SZYEZGnxNyEP+WN88g9Xkg3tKQVw/uxGEKrOB6RYqOlkwgFd99jHvH fwxmyG303qr8liEbUvevz2+LZrE= 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 :message-id:subject:to:date:from:mime-version:content-type :content-transfer-encoding; s=default; bh=A9NVY2OAChnpgFYOzLRK5i 4VfmY=; b=R4Ok4VXAAvcFCsUlAa0GNPCCEbpdT32xN246/qd+x5jn55R+ojjidt EB7bmyHS8PX2jd16Cc77BfXKWPtx6ZrFk1Ssy1PUwXTWKEcdBAXCgj1yCB+sZsJ5 4hqps/hAY6N3zb4EJg9ls9zwWX8dNhaExmN1fm+mhrrdS05oythgA= Received: (qmail 11130 invoked by alias); 19 Nov 2013 16:56:29 -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 11106 invoked by uid 89); 19 Nov 2013 16:56:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, MSGID_FROM_MTA_HEADER, RDNS_NONE, SPF_PASS autolearn=no version=3.3.2 X-HELO: e06smtp15.uk.ibm.com Received: from Unknown (HELO e06smtp15.uk.ibm.com) (195.75.94.111) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 19 Nov 2013 16:55:08 +0000 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 19 Nov 2013 16:54:59 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 19 Nov 2013 16:54:58 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 5E9EE219005E for ; Tue, 19 Nov 2013 16:54:58 +0000 (GMT) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rAJGsjFg57868452 for ; Tue, 19 Nov 2013 16:54:45 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rAJGsvxV031743 for ; Tue, 19 Nov 2013 09:54:57 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with SMTP id rAJGst2C031642; Tue, 19 Nov 2013 09:54:55 -0700 Message-Id: <201311191654.rAJGst2C031642@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 19 Nov 2013 17:54:55 +0100 Subject: [PATCH, rs6000] Make darwin-longlong.c test case endian-safe To: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com Date: Tue, 19 Nov 2013 17:54:55 +0100 (CET) From: "Ulrich Weigand" MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13111916-0342-0000-0000-000006E9A9A1 Hello, another test case fix: darwin-longlong.c implements a "msw" routine extracting the most significant word from a long long. This of course needs to be updated for little-endian ... Tested on powerpc64le-linux. OK for mainline? Bye, Ulrich ChangeLog: * gcc.target/powerpc/darwin-longlong.c (msw): Make endian-safe. Index: gcc/testsuite/gcc.target/powerpc/darwin-longlong.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/darwin-longlong.c (revision 205009) +++ gcc/testsuite/gcc.target/powerpc/darwin-longlong.c (working copy) @@ -11,7 +11,11 @@ int i[2]; } ud; ud.ll = in; +#ifdef __LITTLE_ENDIAN__ + return ud.i[1]; +#else return ud.i[0]; +#endif } int main()