From patchwork Thu Dec 8 03:05:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 703930 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tZ0bv4jL3z9t25 for ; Thu, 8 Dec 2016 14:05:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="WFMKJlwk"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=ukKcD Tbqwibv0R2y8wxHj4WYkaN/elNoTb717+HJWluSWFs9kllj+pM5rs8bKHVWJGMrY zHyCPcfLjFVWQLbi/41bjvSDHQXCZXUCeOfIXTsMZxBruEuiGuQi8QtzMUDusVqq mEiLyVfpj26bFipkrc46Z5iK4JVhNZn+L/bPV0= 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 :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=0px0yNbvL82 L4vChu5q0bAufkJE=; b=WFMKJlwkO0yUWNbm7OVjqLzaQWVELyUswCVKOPXw5zi UmdnK2G5O4zQtY5jOD1kIOJ0ZT+g8w53IEkoKUvp1J5CO83rwxf4LcUTVPM5G0dt MqI6o9+LHqlPiPJK2HAd2MJ6kFFj2RNR+gSyjI8Vkpo1xZtSMMGc7MVH0tWgtfz4 = Received: (qmail 43175 invoked by alias); 8 Dec 2016 03:05:22 -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 43162 invoked by uid 89); 8 Dec 2016 03:05:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RCVD_IN_SEMBACKSCATTER autolearn=no version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from 001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 08 Dec 2016 03:05:20 +0000 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uB833ldK065584 for ; Wed, 7 Dec 2016 22:05:18 -0500 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 276u96vbfr-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 07 Dec 2016 22:05:18 -0500 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 7 Dec 2016 22:05:17 -0500 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 7 Dec 2016 22:05:14 -0500 Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id E1D4638C8068; Wed, 7 Dec 2016 22:05:13 -0500 (EST) Received: from b01ledav03.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uB835Ef345940786; Thu, 8 Dec 2016 03:05:14 GMT Received: from b01ledav03.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EE848B2058; Wed, 7 Dec 2016 22:05:13 -0500 (EST) Received: from BigMac.local (unknown [9.80.220.149]) by b01ledav03.gho.pok.ibm.com (Postfix) with ESMTP id BDC4DB2046; Wed, 7 Dec 2016 22:05:13 -0500 (EST) To: GCC Patches , Segher Boessenkool From: Bill Schmidt Subject: [PATCH, rs6000] Fix 32-bit BE failure for gcc.target/powerpc/fold-vec-add-7.c Date: Wed, 7 Dec 2016 21:05:13 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16120803-0040-0000-0000-0000021145DB X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006212; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000195; SDB=6.00790809; UDB=6.00383015; IPR=6.00568549; BA=6.00004951; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013569; XFM=3.00000011; UTC=2016-12-08 03:05:15 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16120803-0041-0000-0000-000006035E42 Message-Id: <86fc8d56-e1d4-7932-37ce-af18fb3036ed@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-12-08_01:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612080043 X-IsSubscribed: yes Hi, Andreas Schwab observed that the subject test case fails on 32-bit big-endian because the test is not restricted to targets that support __int128. This patch rectifies that. Tested on powerpc64-unknown-linux-gnu and verified that the test is flagged as unsupported for BE, but runs correctly on LE. Tested on powerpc64le- unknown-linux-gnu and verified that the test runs correctly there. Is this ok for trunk? Thanks, Bill 2016-12-07 Bill Schmidt * gcc.target/powerpc/fold-vec-add-7.c: Require effective target to support __int128. Index: gcc/testsuite/gcc.target/powerpc/fold-vec-add-7.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/fold-vec-add-7.c (revision 243331) +++ gcc/testsuite/gcc.target/powerpc/fold-vec-add-7.c (working copy) @@ -3,6 +3,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ +/* { dg-require-effective-target int128 } */ /* { dg-options "-maltivec -mvsx -mpower8-vector" } */ /* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */