From patchwork Wed Jan 25 22:41:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 719909 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 3v80Qs5Gdpz9s3s for ; Thu, 26 Jan 2017 09:41:35 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="aBdxNOij"; 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 :subject:from:to:cc:content-type:date:mime-version :content-transfer-encoding:message-id; q=dns; s=default; b=TKX6K PxLr1DcvvOVy+5AuIErNIJCfIZBYS95Ugjl6g0W0ilM5il4NlZCx1Bc4oBIbscpD jTcPMe39H2QCuyDtfBxbPkKhOe4oZKbw3gKqs4dfjsSb4LX27cGKW0owJlc2TtDx jHecdIJ7sM3Ix3h+ZqD/OmD1lOtHGxf4SiQG6k= 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 :subject:from:to:cc:content-type:date:mime-version :content-transfer-encoding:message-id; s=default; bh=jPE8RKjtg4j 7kZiYFvSkKsgqMIw=; b=aBdxNOijDTFuAD84BFcZ/e0mRo3FHczB6fnRRAAtDyP 8egZRTiuCT5dEvHqzUl9GxKcTK+TwxkCmOk4+HkERLGT4yhEgvUGqqPKfKj3qB3d ryWeKutqYGZiB5xgEQiPEHJUtspU8V7WRh1A8JsLCwPMWGbiBOIWG9IVGcfpBQR8 = Received: (qmail 21909 invoked by alias); 25 Jan 2017 22:41:25 -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 21895 invoked by uid 89); 25 Jan 2017 22:41:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=sk:wschmid, U*wschmidt, wschmidtlinuxvnetibmcom, wschmidt@linux.vnet.ibm.com X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Jan 2017 22:41:13 +0000 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v0PMcgSj141152 for ; Wed, 25 Jan 2017 17:41:11 -0500 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0a-001b2d01.pphosted.com with ESMTP id 2872ru4mtv-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 25 Jan 2017 17:41:11 -0500 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 25 Jan 2017 15:41:10 -0700 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 25 Jan 2017 15:41:08 -0700 Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 851751FF0021; Wed, 25 Jan 2017 15:40:46 -0700 (MST) Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v0PMf5gW39780596; Wed, 25 Jan 2017 22:41:07 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C5E94AE04E; Wed, 25 Jan 2017 17:41:07 -0500 (EST) Received: from [9.85.133.42] (unknown [9.85.133.42]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id 738E6AE03B; Wed, 25 Jan 2017 17:41:07 -0500 (EST) Subject: [PATCH, rs6000] Fix PR79160 (vsx-elemrev-4.c) From: Bill Schmidt To: gcc-patches@gcc.gnu.org Cc: segher@kernel.crashing.org, dje.gcc@gmail.com Date: Wed, 25 Jan 2017 16:41:06 -0600 Mime-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17012522-0020-0000-0000-00000B2EDCEE X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006498; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000200; SDB=6.00812677; UDB=6.00396362; IPR=6.00590095; BA=6.00005090; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014048; XFM=3.00000011; UTC=2017-01-25 22:41:09 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17012522-0021-0000-0000-0000598878AE Message-Id: <1485384066.5423.13.camel@oc8801110288.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-01-25_16:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1701250211 X-IsSubscribed: yes Hi, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79160 records that gcc.target/powerpc/vsx-elemrev-4.c fails on powerpc64 big-endian. The test was developed just prior to the introduction of D-form memory access instructions lxv and stxv, so it relied on output of X-form instructions lxvx and stxvx. Either would be acceptable, but with the introduction of the D-form instructions, they are preferred by the code generator when they apply. I've changed the test case to accept either the D-form or the X-form instructions. Tested adn veriried on powerpc64-unknown-linux-gnu. Ok for trunk? Thanks, Bill 2017-01-25 Bill Schmidt * gcc.target/powerpc/vsx-elemrev-4.c: Change expected code generation to accept D-mode memory accesses. Index: gcc/testsuite/gcc.target/powerpc/vsx-elemrev-4.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/vsx-elemrev-4.c (revision 244824) +++ gcc/testsuite/gcc.target/powerpc/vsx-elemrev-4.c (working copy) @@ -3,8 +3,8 @@ /* { dg-options "-mcpu=power9 -O0" } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-skip-if "" { powerpc*-*-aix* } { "*" } { "" } } */ -/* { dg-final { scan-assembler-times "lxvx" 40 } } */ -/* { dg-final { scan-assembler-times "stxvx" 40 } } */ +/* { dg-final { scan-assembler-times "lxv" 40 } } */ +/* { dg-final { scan-assembler-times "stxv" 40 } } */ #include