From patchwork Tue Apr 16 05:41:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 1923995 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=aIQZCzih; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=aIQZCzih; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VJXww1DXDz1yZ2 for ; Tue, 16 Apr 2024 15:42:08 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4214B3858C41 for ; Tue, 16 Apr 2024 05:42:06 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2088.outbound.protection.outlook.com [40.107.15.88]) by sourceware.org (Postfix) with ESMTPS id 2D88F3858D32 for ; Tue, 16 Apr 2024 05:41:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D88F3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2D88F3858D32 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.88 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1713246106; cv=pass; b=I4DbygwYD2H9n8E9GbkaVe76xCPB3w7UjucXB9PYSXaIwNuUMbY6ICw1OqE/QOn+hS9NUeGWB50o+fxLZArUFvGdk9k2uyHcGLOxSupMqrOAMOprdrAIaBTvzSXPIq1nfZsl76CtZOJZAPt7GzS1aa652DcZdL8sjPH+pABSpRY= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1713246106; c=relaxed/simple; bh=DMKLlcvN7dc5BpPuSXAs9pnbcOzoneikDBiaxYr8c8k=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=bs/bh5tIqWJUUSEa7PA5X0oYvR+wSOs0yo8AXqRco7/i87K5uzgO3akL5qxS6ZV5U5XbRow+BW4l9CMJ6ViVODMaszI6oRU/T+zHZygidrx8IuZBEw05wCDEhCkNuWbDGsn6DkV2bkf/NySVJ+jNLH7KSg6k4TAAsGSrllpgC5I= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=VYW/OTJFjTdpx/eFv5Y+BIqYlmrcqLcvVj8yWZzf5KylkhLqBtY2NfiPVdPYn2aV05OagqisblAwkyCndLH7i93m2UvYfDtO0GkF98/JLuu8mKsEyaHZbulkadwXl19Kb+rmXVpspRhhxnPJ0YPRikqL5fWdHx4FQbDcyvl7ZHAzCbDYiWPmibhr/ofSU4aRNH0AUD/LdYZmEOwaxjxJpx02aQ1729ER5bnIbuLzDGvEaDQG+xtnkC7s/Ei8r9tekNmR12lbjERGcIlGmkjsq5o8gnO+VM5lJ8Ccd++s8zgZHnztfA6hQWEzXsO9kns+8yi/KXshY2BDEnt5VjJkBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5tiyrMFop9LmJV1vLF4/uEGj3evfjW3lQnvgUZmgc/I=; b=F/itqsS3lngAXcF7rGiRQGUCw9qBqwSsJdagNmhuIdJH463se2MclpSOzQkYDx81cnxomQioHGDWammM7XAInixkWT2qD7mRV9R+6jOMoSSe6y7fxIsASuHOt1PxNjyQkn9OL+1o2GuOIhy9gGTFEI2wHWyYgB7NyY05jk+8fe0LTXHzOHC2y+bpbgCU4zD//gl/xR8H7a9MUA8ZEtszM7r3ZoCRQm7XAlTK9o4iZf+4tTiR4bsEe9mOfHJYZxY1z57cVSQJ5LCsBUR6kyxzmfioz5vaLcj1LpGBmAJ7YwQvBAJmffh5PjGtSwPuY7twkENWf9EuK+0BywwwWKBgHA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) 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=5tiyrMFop9LmJV1vLF4/uEGj3evfjW3lQnvgUZmgc/I=; b=aIQZCzihjRIssZncV6a8D8mmvnDFdTVqyPclkqMur9J8gPwh72n3nbvBDPEH1wl147eJVhYt0Kh4KxpSYZkiG30uW0rQp4+17r12wjFiMLsFd+QoiMFION+JryNAefti3/xG3c6OvNdYMsZ3yt+qybLsqvL3buWxtOBdAouxBCk= Received: from DUZPR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bb::24) by DB3PR08MB8841.eurprd08.prod.outlook.com (2603:10a6:10:43c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Tue, 16 Apr 2024 05:41:39 +0000 Received: from DU2PEPF00028CFF.eurprd03.prod.outlook.com (2603:10a6:10:4bb:cafe::4d) by DUZPR01CA0099.outlook.office365.com (2603:10a6:10:4bb::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.34 via Frontend Transport; Tue, 16 Apr 2024 05:41:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DU2PEPF00028CFF.mail.protection.outlook.com (10.167.242.183) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Tue, 16 Apr 2024 05:41:38 +0000 Received: ("Tessian outbound 01a47eb2eb85:v313"); Tue, 16 Apr 2024 05:41:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 139e311c6ba21d06 X-CR-MTA-TID: 64aa7808 Received: from dcb5a4362999.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 078B0C24-BA94-44CB-B9ED-B3C2043351B0.1; Tue, 16 Apr 2024 05:41:32 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id dcb5a4362999.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 16 Apr 2024 05:41:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FJ+qdkeeiw9nENhaDaq9lBNDDriqHUhgEyu5rKZHRgK6MRawx8z0RhGa8RyxfuL+VGAq0xjkJZ+/mcP81l2MPQLCYHcimXJ7spI15ygsKw3MFUYb6w/FfC+KLdpKUuCPC1HCZ1/6lZ7+QeoJrXtgCPfyE2E/ht8d3IcH/QXbHB/iS3SEwOxXk1FbYJ+OaE8CCXiCLVTYkUYeJDgprYlTXSk8UYJNbUGGt9J6gGRlWU724qnAWFUSNzipMuHdSGyNw4Xs4lQ9iM1bf/vFppz0vKE77EcfG3hah9A3pytIBbIp2ds/SQxeu3oal9607AJZHGvyvcq8qg31CUivlSSe0A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5tiyrMFop9LmJV1vLF4/uEGj3evfjW3lQnvgUZmgc/I=; b=XLS4E4bD3Zty3fPRA6FIuuzD1YoYJ61xGz3DljdUCdV1nlSqxaQ43w3Kt22TAL/zFS1oaGA+o+Cp9zWu6F+UwTBBJPbpt4NwAVeuJzpnkv3PP3ApDDLTcEU/wH5QtZJ9sZSo7QZzfxmHHLxMDqqDsCIMZVAcjO2IbYTeJ96wJYl/+0EZ0HII8weGPgWhLsQz5SCAv0SSB/dW7UO4IMASunkHKzBpfpjH0PxeMHAAUZ+AJ/5e7R3gHMLdQ2JR8C7i4Q/mHniVtTCDzmhzUVFWiXCg+wRuMtFUkVDt5qBH8vnRu1gvQTAleGs+FUKU/4XEKHul1FQu9HrPkmgKotbduw== 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=5tiyrMFop9LmJV1vLF4/uEGj3evfjW3lQnvgUZmgc/I=; b=aIQZCzihjRIssZncV6a8D8mmvnDFdTVqyPclkqMur9J8gPwh72n3nbvBDPEH1wl147eJVhYt0Kh4KxpSYZkiG30uW0rQp4+17r12wjFiMLsFd+QoiMFION+JryNAefti3/xG3c6OvNdYMsZ3yt+qybLsqvL3buWxtOBdAouxBCk= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) by DBBPR08MB6074.eurprd08.prod.outlook.com (2603:10a6:10:1f6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Tue, 16 Apr 2024 05:41:30 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::a0e:800c:c8b2:5ff0]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::a0e:800c:c8b2:5ff0%4]) with mapi id 15.20.7452.049; Tue, 16 Apr 2024 05:41:30 +0000 Date: Tue, 16 Apr 2024 06:41:28 +0100 From: Tamar Christina To: gcc-patches@gcc.gnu.org Cc: nd@arm.com, rguenther@suse.de, jlaw@ventanamicro.com Subject: [PATCH]middle-end: skip vectorization check on ilp32 on vect-early-break_124-pr114403.c Message-ID: Content-Disposition: inline X-ClientProxiedBy: LO2P265CA0200.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9e::20) To VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB5325:EE_|DBBPR08MB6074:EE_|DU2PEPF00028CFF:EE_|DB3PR08MB8841:EE_ X-MS-Office365-Filtering-Correlation-Id: af274c6f-bfd0-4b15-749b-08dc5dd7e312 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Lm4eEICCPQ+7ptztoxrZm0cfxhDQz2s0gaWHRqRgNDL27MAdjdoCgXUuK/2Y23PximW5TEKY4np/PAX9jFvIeav1PF9p26QFS4sYebcUUjNNtLoyfotkJD0OaiFl16qY2k27qonhOheNJB6IGKIQyZdFFbDwnSeVabzY83sUHjhBhMdQu9WFEzP341+AOOgVA32cA20lNNM0GMRy73cqhx9fGMS8dtzs2NpukO2pCKObJ2kwo8Tv2t2cXdGxYcw0PyE2L53rMkgSBfDgs3eTHpzN8IbH5V0I4361zIG8qoyh5OwGIfnq/HumXDwuqpt8UeZSm17xJs6CDJIOwvIpIycc+lwOHlbpzxUzOU0jf8nxvkbcX1HlgG11bH1bv6FswLulUwx6nQkAAezZuqLrdLU75mzYf66f4no5N4TfChN5j963Ey6SisaBagDg8R04+vSQRiwzCzj+eQFpiib3id4iSxXEgbtrT+RTBpBFvoDObxtuHN6n78Im2STxpTGIR+pbFXh+tOmOO/aBqiBMiliNaT/QHo0FvX6531xiyMidJ3+0IiP8zLdMseMwALF/EWDmhBV298CofJFJBBH809FR1O2btkR9EflM97BOyuA= 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:(13230031)(376005)(1800799015)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6074 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028CFF.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 323bec3e-2779-4fda-e630-08dc5dd7ddeb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a2Fvs9j2wN+H2NA2ECnIXqp/7kdNsAFR+UtBqIPGma9bvEj8IQkn8jcNYkW3D/oaEMwmfWF6Xd8YCv6q+7OzwLvLsCYyGtyKcXk3kqmoNcWzczPAqor6NIqjeyYj+YdMP6Tt6M11EZF/2qJ5hAjaLsNPxaeJ9IgeYL+pJ31ZbVUDz8d/6OyJ4XcKv8D4U+qxx319AmjnD1bVio19lMNNYV9XELBZWhfjyMgICx7usoDHXAx+PzgogRmKo0VDAl9SjKA9+F/Io79Z8cHGby1LlXuGk9ozFolNS/mUgd7t/fhM8zKtAiudhgoRPmtLdHO8xikgwUhRkI02AHsLPZimXoPB1mRQZ47uUoyFxnYBl43vPg1ncXdKwYGBFBrzqsnnLbjQq+NlbzzldQzbyoU3hMtUJcJMB57+BPJvXHoCLZYJ9nh+tSn1/tKnMGXGOheq52HyBUihr3Ozg8fq1xIfT6RLrntE8YPfs//GDs/y459f33zdEd9T+WEU4ra/GcWMTVlVlM1EiNkwHjoAO4WhDpXgebmuzKhxZKjw/7mqvQXkimvFxDlhoV/QVyPHen7Cjj7Vv/jtnV5yLVgnPTL/1BQiuBkk7ll1WZTXXS0i8leho/ALsM/sAHbFGgj3vWgjfJpjigRBLmP78o4fm/wMWjOicdJjhd6XB+lCObTrYr74nC5Fs6TzTWOTbRMlE1HvsGCx0/WVZvO2hqk8exmi7Q== 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:(13230031)(36860700004)(376005)(1800799015)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2024 05:41:38.8757 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af274c6f-bfd0-4b15-749b-08dc5dd7e312 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: DU2PEPF00028CFF.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR08MB8841 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi all, The testcase seems to fail vectorization on -m32 since the access pattern is determined as too complex. This skips the vectorization check on ilp32 systems as I couldn't find a better proxy for being able to do strided 64-bit loads and I suspect it would fail on all 32-bit targets. Regtested on x86_64-pc-linux-gnu with -m32 and no issues. Ok for master? Thanks, Tamar gcc/testsuite/ChangeLog: PR tree-optimization/114403 * gcc.dg/vect/vect-early-break_124-pr114403.c: Skip in ilp32. --- -- diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c index 1751296ab813fe85eaab1f58dc674bac10f6eb7a..db8e00556f116ca81c5a6558ec6ecd3b222ec93d 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c +++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c @@ -2,11 +2,11 @@ /* { dg-require-effective-target vect_early_break_hw } */ /* { dg-require-effective-target vect_long_long } */ -/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */ +/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target { ! ilp32 } } } } */ #include "tree-vect.h" -typedef unsigned long PV; +typedef unsigned long long PV; typedef struct _buff_t { int foo; PV Val;