From patchwork Thu Dec 12 18:04:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudakshina Das X-Patchwork-Id: 1208743 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515829-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="AIukyIro"; dkim=temperror (0-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="Fq2M/9j1"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="Fq2M/9j1"; 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 47YhXT3K0Jz9sNH for ; Fri, 13 Dec 2019 05:04:55 +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:from :to:cc:subject:date:message-id:content-type:mime-version; q=dns; s=default; b=o6su6bhaRDfpZKFsLkw7eyCGipEnRLrDfxTrdhYeqpGj4H3oha a6GSlz+G/Kb7eTNCXJxi5bISyn/ZWvAB97y0UDPuHNg2bQwEYUkq2FuKDQgNq1UC tFKoA360ZW89T7CnCm2R6AJP7Xdc3mUvdq7bjxJNVgM2IqC0MT+GkHMd0= 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:from :to:cc:subject:date:message-id:content-type:mime-version; s= default; bh=qeJdVbyOgY+hReQiUSIMcZfQ8Nw=; b=AIukyIroPbLd9bXDk0Cq mZwxXKiiBQF7U4abXQ8niyUbl/mv5aY0HFJQEk6nDWdCFx9X4o4phCJonoq017K2 zE+xWcw7Gri44a8GYDsksdWkEt7WtJj12ChLu9hJjoe3sr0jFMPcCLwH/pHrnpcB qeDBlQeI9Qge1g1yEBbHqXs= Received: (qmail 47300 invoked by alias); 12 Dec 2019 18:04:47 -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 47286 invoked by uid 89); 12 Dec 2019 18:04:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 spammy= X-HELO: EUR03-DB5-obe.outbound.protection.outlook.com Received: from mail-eopbgr40089.outbound.protection.outlook.com (HELO EUR03-DB5-obe.outbound.protection.outlook.com) (40.107.4.89) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Dec 2019 18:04:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pp7+iVt3KFWp6Nd5SLWHSvcf/e+KBTcWrqG45Jrht8Y=; b=Fq2M/9j19yt0jGlTISMQYzmSJS2TurAfgQjE+rwNb8qsXOnEdmk7aayD9KBPOYEw1U13mdwtcJSKiALX9+zoH668YgRBLCmYcBqaWXH6NW4N6pvxSr+/h9hu0Q0Jwo+a5X4ylF9KgMGQBTpbSIC5iB90HXvktmqF4RQ88gbT9Is= Received: from VI1PR08CA0106.eurprd08.prod.outlook.com (2603:10a6:800:d3::32) by DB6PR0802MB2502.eurprd08.prod.outlook.com (2603:10a6:4:a0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.12; Thu, 12 Dec 2019 18:04:39 +0000 Received: from VE1EUR03FT046.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::200) by VI1PR08CA0106.outlook.office365.com (2603:10a6:800:d3::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.16 via Frontend Transport; Thu, 12 Dec 2019 18:04:39 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; gcc.gnu.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT046.mail.protection.outlook.com (10.152.19.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.18 via Frontend Transport; Thu, 12 Dec 2019 18:04:39 +0000 Received: ("Tessian outbound 58ad627f3883:v37"); Thu, 12 Dec 2019 18:04:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 08c9ee3036f7df5f X-CR-MTA-TID: 64aa7808 Received: from 64a83915538f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CF6D06DC-8F5D-4C79-A2ED-978DB0F49357.1; Thu, 12 Dec 2019 18:04:33 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 64a83915538f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 12 Dec 2019 18:04:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hX76rGZMmKIfXQ0aF9Oe8OT8IfwcSfszsLT/8vu7LE/OEzahNncD/dzqRDHDyFekfmQUl7hbrwOO2uNn9COO0lDddg6Bb+8azoA2NTN7KsrwAtRLYSLSR/PTzR69rsxEBj6YJlnOiCr6rIrF4Cpk26cB3Oo8NIYHsjLvMyPoGxnscimVzWV42PXrA3/p0Noyg9BwBumx9NHQjg5cIcT+DD+I1DJkocIyVPyfD7CTFZTXY2SCoSrtxuyL0FBzfjF+N8C+efNIavq6ByXaCy3cq9i2uV74W7Ycb/kBSoI+PDJL/zPBZoblRdcLYe8yR9Bi88rIbxcfAQiZoRWirCQltg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pp7+iVt3KFWp6Nd5SLWHSvcf/e+KBTcWrqG45Jrht8Y=; b=cx7bsK35H6I7Vs1ppPIXE6tLtx59oF6NrOAmdVigyPL2djAqVxsZcW8hFNnt0fgoXBF6aZRLm96LyDf1YVEYpAZo7r8dnwEG5OmYQoaR+XwkkK396AJGkm4CidQw0c9dSRepEkpbrWFZbZlwPaUK6SQyYrcdOXUkruf9TOfpHqeQdhTWsx/Wy+zdjScuE0oWQh2uAgCoBqiUIOKy4v5azeJ3BeRAcmWsBTNk5RITQST6u7zzl31tlPDDcPBtdoTq6OKQ9EYCH/VY8BQw0pG290If8rwEV+I5Ada42q+mg34IqwO6orYSSCWwVTZdOVqpg/xcM3tmsyUlqsQGpAXQLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pp7+iVt3KFWp6Nd5SLWHSvcf/e+KBTcWrqG45Jrht8Y=; b=Fq2M/9j19yt0jGlTISMQYzmSJS2TurAfgQjE+rwNb8qsXOnEdmk7aayD9KBPOYEw1U13mdwtcJSKiALX9+zoH668YgRBLCmYcBqaWXH6NW4N6pvxSr+/h9hu0Q0Jwo+a5X4ylF9KgMGQBTpbSIC5iB90HXvktmqF4RQ88gbT9Is= Received: from VI1PR08MB3888.eurprd08.prod.outlook.com (20.178.14.20) by VI1PR08MB5535.eurprd08.prod.outlook.com (10.255.196.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.15; Thu, 12 Dec 2019 18:04:30 +0000 Received: from VI1PR08MB3888.eurprd08.prod.outlook.com ([fe80::40e5:42e4:9f0d:ce8a]) by VI1PR08MB3888.eurprd08.prod.outlook.com ([fe80::40e5:42e4:9f0d:ce8a%5]) with mapi id 15.20.2538.017; Thu, 12 Dec 2019 18:04:30 +0000 From: Sudakshina Das To: "gcc-patches@gcc.gnu.org" CC: Segher Boessenkool , Christophe Lyon Subject: [Committed, testsuite] Fix PR92870 Date: Thu, 12 Dec 2019 18:04:30 +0000 Message-ID: Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Sudi.Das@arm.com; x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:9508; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(136003)(39860400002)(366004)(376002)(346002)(396003)(54534003)(199004)(189003)(71200400001)(26005)(186003)(36756003)(2616005)(4744005)(5660300002)(52116002)(6506007)(4001150100001)(31686004)(6486002)(4326008)(2906002)(31696002)(316002)(478600001)(86362001)(54906003)(8936002)(81166006)(8676002)(81156014)(6512007)(6916009)(66446008)(66476007)(66556008)(66946007)(66616009)(64756008); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB5535; H:VI1PR08MB3888.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: JZebjYrIvsQbPOZrIfCTFdzIdyKSPbxM3QSWp4Ks5TbC1BZJ/xOza1aJYlcaRyF310v/cGEo35iWu/rzWYA9Jn1cej0+LlqZdauI5uY8QND5o7DlPTvnmTL/RY+3btvkEr5YICG3VTCApRIRZDnQacCFAyiubQC3VREOQZvU36nY508GBOX3P6yKWF88Y0zmMgZ4vvZ69T+ULYp4433mnJiZEyGPfdhS70shFMCgKXXAsKRzbgubTe3E5CQbBWbAJmrCYred97+pmHMShgknohaXh6lETXqmTTMlSRBfEZCR2CxzwlcGIUmKObk7RNUuK5CVZg6MUrVZcQtHvgn1PCMlX9SJP0hMQzN0AlZmsyJYtCM0GaYehyGccTSrEoyIYVpnDffUbTmt2gOOVf3Up9Bt6F8hpsLOZqZ686Xyu8j4Tz1TC8k6edYJ5XnIzEuyozZwqVkm2E0rQrZ438e01KSd4wiQgnCaofK6xx+PBF8TdurlWt+hkscteUpxLFQo x-ms-exchange-transport-forked: True MIME-Version: 1.0 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Sudi.Das@arm.com; X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: f7faa84e-febd-44fa-5d66-08d77f2dbbee X-IsSubscribed: yes Hi With my recent commit, I added a test that is not passing on all targets. My change was valid for targets that have a vector/scalar shift/rotate optabs (optab that supports vector shifted by scalar). Since it does not seem to be easy to find out which targets would support it, I am limiting the test to the target that I know pass. Committed as obvious r279310. gcc/testsuite/ChangeLog 2019-12-12 Sudakshina Das PR testsuite/92870 * gcc.dg/vect/vect-shift-5.c: Add target to scan-tree-dump. diff --git a/gcc/testsuite/gcc.dg/vect/vect-shift-5.c b/gcc/testsuite/gcc.dg/vect/vect-shift-5.c index c1fd4f2..68e517e 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-shift-5.c +++ b/gcc/testsuite/gcc.dg/vect/vect-shift-5.c @@ -16,4 +16,7 @@ int foo (uint32_t arr[4][4]) return (((uint16_t)sum) + ((uint32_t)sum >> 16)) >> 1; } -/* { dg-final { scan-tree-dump {vectorizable_shift ===[\n\r][^\n]*prologue_cost = 0} "vect" } } */ +/* For a target that has a vector/scalar shift/rotate optab, check + that we are not adding the cost of creating a vector from the scalar + in the prologue. */ +/* { dg-final { scan-tree-dump {vectorizable_shift ===[\n\r][^\n]*prologue_cost = 0} "vect" { target { aarch64*-*-* x86_64-*-* } } } } */