From patchwork Thu Nov 5 17:01:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 1395134 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=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=jli0NWwd; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CRqZy3Q6jz9sRK for ; Fri, 6 Nov 2020 04:02:48 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A4AA3386F478; Thu, 5 Nov 2020 17:02:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4AA3386F478 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1604595764; bh=6OTOWPhVRDY27l0KLZ/lB7EpUXz5kS51DfF4/bktEbc=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=jli0NWwdEF/CWO9On/5qhK+sZIH7zUOIgmeop6PsyVu382COIvMDCC1LfCNuk7ycu Mp9CdlY+KvJee+8fV7+C64IPWIDmiwfge0T06JBrYU6qDsRbR6SWNEBnf0Yv2gHyRQ b6hFYUq+sGF5qve+FpqNTEJNJFFL0ssaX61Tw8kw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20070.outbound.protection.outlook.com [40.107.2.70]) by sourceware.org (Postfix) with ESMTPS id 97C103861878 for ; Thu, 5 Nov 2020 17:02:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 97C103861878 Received: from AM6PR04CA0015.eurprd04.prod.outlook.com (2603:10a6:20b:92::28) by DBBPR08MB4396.eurprd08.prod.outlook.com (2603:10a6:10:ca::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Thu, 5 Nov 2020 17:02:36 +0000 Received: from VE1EUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:92:cafe::59) by AM6PR04CA0015.outlook.office365.com (2603:10a6:20b:92::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Thu, 5 Nov 2020 17:02:36 +0000 X-MS-Exchange-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=pass 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 VE1EUR03FT034.mail.protection.outlook.com (10.152.18.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3520.15 via Frontend Transport; Thu, 5 Nov 2020 17:02:36 +0000 Received: ("Tessian outbound 9cb9038eacad:v64"); Thu, 05 Nov 2020 17:02:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2ee4cb9557d8e851 X-CR-MTA-TID: 64aa7808 Received: from 7253aba6bd30.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B2D53689-9E71-40B7-898C-1A1039AD8250.1; Thu, 05 Nov 2020 17:01:56 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7253aba6bd30.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 05 Nov 2020 17:01:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PLCU6SwVryZT/1/KNuCVd+iVlDfhJPnnxboArZD8JyWLkZ5LyzLFk2ZCTLiAy/7wUqGNFxCG58YSX0ADzMksodqShzmt2Sum4vVgbU1ls6EjJW27ixrqvc0DnIFREuleqJnIXwNkyvRRGm3YFYOu74GQvcQfzQJo99shzcfAnUBhQlohS3o7G0twmtSScFhNmaQ68qMs2m+P0qx05uS/iLfxXRKH63rEqBJ2alEAUsislb+HmGMBB9yaU5JixESJLEWPvnb3QzrLZ/GtMKKll2Rg4e0gyGgnfOp0mMD7b13s/0X+UPlcItBj0sqkL34fXL0gwLEW1QYpYn1OQWmpww== 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=6OTOWPhVRDY27l0KLZ/lB7EpUXz5kS51DfF4/bktEbc=; b=gTe1YGAnjJm/KtECV5+C4a3WCNwnuJwkh1jhN4SjtMdvLbHaSsCgn0w6EfndQhAdrP3zWxDpHJ6xP2aOf3gaXa7scC2L8MWd5wao59U0cZX5zQ1RV2EFz8W2at8ciUALTQ4J1+C48C9jxG4T5+PXPdCadR+44f62J7bOONhhNoz6l89VUsKO2vRLrQUPcQDmbno54QlazN/DsstQ2pZF3QfvGiVklZcUhsf9KjxB1JArvP14xqyW4vgvEVuhl7aO9H6F5PzaVcqsOmG6axSsloP/+vJ+vEATp3fk+BubK8gvVDFV6h9LsKaljUD5scqYFTMyjxqnN7C57bjpGfx0sg== 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 Authentication-Results-Original: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) by VI1PR08MB5328.eurprd08.prod.outlook.com (2603:10a6:803:13a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.27; Thu, 5 Nov 2020 17:01:55 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::d0e7:49cd:4dae:a2a2]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::d0e7:49cd:4dae:a2a2%6]) with mapi id 15.20.3499.032; Thu, 5 Nov 2020 17:01:54 +0000 Date: Thu, 5 Nov 2020 17:01:46 +0000 To: gcc-patches@gcc.gnu.org Subject: [committed][PATCH] middle-end: guard slp-11b.c testcase on vec_lanes Message-ID: Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [217.140.106.53] X-ClientProxiedBy: DM5PR11CA0010.namprd11.prod.outlook.com (2603:10b6:3:115::20) To VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.53) by DM5PR11CA0010.namprd11.prod.outlook.com (2603:10b6:3:115::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Thu, 5 Nov 2020 17:01:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: fde8935b-947d-4c98-698e-08d881ac9842 X-MS-TrafficTypeDiagnostic: VI1PR08MB5328:|DBBPR08MB4396: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: AWuLPnkBik7bFhtfMkV+dV69rLtviCaDwLSBA3XAxKIF06xWsmGOd5KAnzfY8iT5XA9EktQUUffnEkdeDXXQEicv1f8us7/sepOcoNwDCufL/B6dVrnptO3J02QfCaJqA0DR91ViZE5nl45yuE0nCJDFyDdfLoY7iUV/sxTgxUtLKawaZBL2prdp1Qm8c80TDIs8DHAvFF4Nws4EuouHZyGBHjlowRK4LZBfRPrFW2JbzNdBRXgEk4QcegNsIGcSIJ57P+WKdLA9Pumxk2OqKqGzDB5eX5ouVzu/xMIXMa2Rh5RIGeTP4D9FbkbfprbFReDnMm7py3PrfRkhrDjNYhuIeQswfRkoWZuW1HXD+rW9t4tThe6d8ar61eqp38N6U4r3VpB7GCsYD/pFkGhhkQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB5325.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(136003)(396003)(39850400004)(346002)(6666004)(8676002)(4743002)(55016002)(478600001)(6916009)(8886007)(8936002)(66946007)(44832011)(2906002)(2616005)(316002)(5660300002)(52116002)(956004)(235185007)(4326008)(186003)(86362001)(26005)(36756003)(66476007)(44144004)(33964004)(16526019)(7696005)(66616009)(66556008)(4216001)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: fnkgbVNGYbNkwLRMA9AQjx6QxXhTV31g3o8KBFSZXISamSvZy3JdPJZ8YS64yMfNC8x0XO/vcjlsFCfb9AAxQRVkqDx7KgwYynghuzzMid7adW1EcH4kpb9fMkrMvRzwXQYpk2Th5BpcPWzz3gnCwNnLnUJCQtcmulS4AuQI6rX/fkIU7Pv/td1+390Fkxyil3OoLm8R0e07LQNgKQKtvT4YD3s6yf1cZ+jXPag+a84mcJpRsoyERjGCFXdH9v21p6VyhGSB3EPApqVG95NYggwpNnj6ka60/R4UJ6cEGbNbgajKlHY0oOxQGhZcduJXUPydU0ToAIH23FzqTSWhr4AHm+0TGGztO2RVfadx+1pvDwX8pVxtkhWjLIuZxNh58MT6tkH2s8u78mEpDJ+CIW2koWFYcXeuSWw9SVQy1gL3CFUVHVyCM7LDX6rqhNvNjscailt7N+50qxUFo0SQxebXRf/5j5uQ0uGvANrnRqP1eMgKtowA+rtyIYSn0KgmLGlhfiIi3qVbxhIZp3zPj3zDZ5SVLBpHv6eAwc6b/Q3m2fPlnJqBrisa0hsSAWD95AvO6grtJWRNJSDhHUPx+EgyzTXYk9Os/P0i9vwuos9DJtgzZHvjeXLr8F24omK/EUnQWdJkZvmzhdFjMVj6yA== X-MS-Exchange-Transport-Forked: True X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB5328 Original-Authentication-Results: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: e7d0fe42-7a66-4423-675b-08d881ac7f7b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EyEgAQhYw/WMrVCSuY9zho1uMT9ogdVl8TpTqmYx9Axl5NIETC2v+otidJZkp8Fun4au66ndCjsANT5dqSKMpZpiLLeIAVddfqRimWiJrY5wERUVX2heVg7Sf9P2z/fGYdcL5eYw9oefIn1I8524uNVbjHPqVLUPVBW/FYbOcBSVGuM9msYBvJVU6aPSMNI2OD1gvPrJAMY8JaRn5N/pkhT3Mzp+u19JwrkXBJxd19pJnqp2ScLx8+YytkUGgUncpaFHpMbMpJrsG01o8h9AZCeSPalauzglzWlYE7kJ7BtNuOk6u8dK1Mn8BjCBoCQlpK7v3OK9eor/D4zZCgkiOvBfX4gKbR4XPl2QzTriMI9i3TSpxZhbK7vDmCpGXBLCVKwUAC1EzWmS88EOi5F0YPnMyyWuY/XzguhILwwDCEuB+H/m7RZbQFRWiUqdC1af X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(39850400004)(136003)(346002)(376002)(396003)(46966005)(356005)(86362001)(8886007)(55016002)(5660300002)(235185007)(44832011)(81166007)(6916009)(36906005)(82310400003)(316002)(26005)(8676002)(6666004)(8936002)(36756003)(70206006)(4326008)(47076004)(956004)(478600001)(7696005)(70586007)(107886003)(82740400003)(186003)(16526019)(336012)(4743002)(2906002)(2616005)(33964004)(44144004)(66616009)(4216001)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2020 17:02:36.0712 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fde8935b-947d-4c98-698e-08d881ac9842 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4396 X-Spam-Status: No, score=-14.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tamar Christina via Gcc-patches From: Tamar Christina Reply-To: Tamar Christina Cc: nd@arm.com, rguenther@suse.de, ook@ucw.cz Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi All, They say third time is the charm.. It looks like the testcase disables the cost model and so AArch64 we end up being able to do the permute but on x86 we can't. However when analyzing the testcase I didn't disable the cost model hence the difference. So I now guard the testcase on vect_load_lanes as there's not a "can do any permute" test directive and load lanes is what I will be fixing up next year so this should catch it. Regtested on aarch64-none-linux-gnu, x86_64-pc-linux-gnu (through the test harness) and no issues. Committed under the obvious rule... Thanks, Tamar gcc/testsuite/ChangeLog: * gcc.dg/vect/slp-11b.c: Guard statements. diff --git a/gcc/testsuite/gcc.dg/vect/slp-11b.c b/gcc/testsuite/gcc.dg/vect/slp-11b.c index 0cc23770badf0e00ef98769a2dd14a92dca32cca..0aece8092a83ebd5fbdcd8257537a6bb3838a2c2 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-11b.c +++ b/gcc/testsuite/gcc.dg/vect/slp-11b.c @@ -45,4 +45,5 @@ int main (void) /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_strided4 && vect_int_mult } } } } */ /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" { target { ! { vect_strided4 && vect_int_mult } } } } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" { target { ! vect_load_lanes } } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_load_lanes } } } } */