From patchwork Thu Feb 8 20:44:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Bergner X-Patchwork-Id: 871138 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-472897-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="t5l0f17K"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zcqtZ4v0Hz9ryT for ; Fri, 9 Feb 2018 07:44:21 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=geB0Y VOXjI5pTC01UBKSgnV/saqClsRzLa0EjPTORUPrinVq/d81qBRzIMQadx3seQIWz tk045vwx3+x/r4mDkxrvsmZJLwOMDX3sndhNFpt5aEqJLjf2POQg0X9AZMnmzvTC L2J0pegl+x/XNopai/X1sVoEhrrKNo2dKapikE= 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:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=kXHsby6c8fp gT/6MS/tX8kAt5eg=; b=t5l0f17Ka5KNrnahupoo3TmfD3HMYm97Z1+qQZdVHHP lpV8tsUypeV9EYi6ZvzgYQ2Zome3L6E5x0itcxWcKoLvDPNywNLT8VJjD6/A93DW WjTlysBs0TkxqQkWmxkt45W1AdbnY6tHGfPhzkw2ic+lbpT0TXLNvyX3UD5UgQzU = Received: (qmail 11912 invoked by alias); 8 Feb 2018 20:44:14 -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 11901 invoked by uid 89); 8 Feb 2018 20:44:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 08 Feb 2018 20:44:13 +0000 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w18KdlDg152589 for ; Thu, 8 Feb 2018 15:44:11 -0500 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0b-001b2d01.pphosted.com with ESMTP id 2g0sc8v8tj-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 08 Feb 2018 15:44:11 -0500 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Feb 2018 13:44:10 -0700 Received: from b03cxnp08027.gho.boulder.ibm.com (9.17.130.19) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 8 Feb 2018 13:44:07 -0700 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w18Ki7bC11403624; Thu, 8 Feb 2018 13:44:07 -0700 Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0CA5A6E040; Thu, 8 Feb 2018 13:44:07 -0700 (MST) Received: from otta.rchland.ibm.com (unknown [9.10.86.175]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP id CCDB96E038; Thu, 8 Feb 2018 13:44:06 -0700 (MST) To: GCC Patches Cc: Segher Boessenkool From: Peter Bergner Subject: [PATCH, rs6000, committed] Fix PR81143 Date: Thu, 8 Feb 2018 14:44:06 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 18020820-8235-0000-0000-00000CFCDDFE X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008498; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000250; SDB=6.00986875; UDB=6.00500873; IPR=6.00766234; BA=6.00005820; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019446; XFM=3.00000015; UTC=2018-02-08 20:44:09 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18020820-8236-0000-0000-00003F986F39 Message-Id: <5f11d26b-de6e-e8fe-3d79-6793925cb090@vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-02-08_11:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802080239 X-IsSubscribed: yes I have committed the following obvious testsuite patch to fix PR81143. The "bug" is that __ORDER_LITTLE_ENDIAN__ is always defined for both little and big endian compiles. I checked and this is the only use of this in the gcc.target/powerpc/ directory. Peter PR target/81143 * gcc.target/powerpc/pr79799-2.c: Use __LITTLE_ENDIAN__. Index: gcc/testsuite/gcc.target/powerpc/pr79799-2.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/pr79799-2.c (revision 257503) +++ gcc/testsuite/gcc.target/powerpc/pr79799-2.c (revision 257504) @@ -8,7 +8,7 @@ /* Optimize x = vec_insert (vec_extract (v2, N), v1, M) for SFmode if N is the default scalar position. */ -#if __ORDER_LITTLE_ENDIAN__ +#if __LITTLE_ENDIAN__ #define ELE 2 #else #define ELE 1