Message ID | 20241106114613.2972987-4-tejas.belagod@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=EbFvCiQj; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=EbFvCiQj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4Xk3NB3XXwz1xxf for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2024 22:47:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9D1CF3858C62 for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2024 11:47:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2062c.outbound.protection.outlook.com [IPv6:2a01:111:f403:260c::62c]) by sourceware.org (Postfix) with ESMTPS id 1CBF43858D21 for <gcc-patches@gcc.gnu.org>; Wed, 6 Nov 2024 11:46:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1CBF43858D21 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 1CBF43858D21 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260c::62c ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1730893603; cv=pass; b=xC6mctbKvKwJlyGJMlo4fAf797tCuY5cG5M9LzFs69gJtZTe5sxrSZisOOa/0cRWNHXbnrdZzOlFbN0roKIrn5qBq9GhopmylKDDI/tQTs4lWj9eeFJZsBN7MnRSML5gdZM50TH+PBsBEIpnqgQKgeKWlVLl2nD9UGor/GvfrO0= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1730893603; c=relaxed/simple; bh=W+sO9NlhJGSwG9MlPE1l3+VeZA/yfVOHC5om+dSOxmw=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=ha7zYWhcHxzAVFyey0vjtmudmQ08gXQxqKEfHjQzD9plj3n5JLsxVamo2xIAEbCWE488zpZ4GebKkJ0tEtwXNntjd3z5nbxdkS0njjT6rLoESORPVUVa5vlEw5K/l/aLiIJPkInFz7cD7rjeqLzMDpSCVsF13ERt6OcQc92l/V4= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=Hhd6Wt158UKZdmo1J9cgoFHy3L/9c+ZDQqK55PGMqBh9apjrnrcT2IVFaxrguQ3xgbmUFkUDYQ2/IZ9XOb2goDT3gvmToVPVE6Ey9AxuGxiF4mnWebAAJp7IiDvH+qKf0RrcFo7sQGVZs56WpG22w/JxVvGjAoaMr/ipvIP7mKzzykr5lt8MC0Y72jBLhcDCVLR5rp26qxONz40QpfZunr84JyWvg4CHEkHSQtjphFzWq7iqH7/ufftXnxLOZfdCTcmLIH62EWnIoTKYVRO9+lFJV3GAEZme4s2EolkQFyRYfDseETzui2Ekt5EnCu5wbyKXalcHscdZC2gLPrJZRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=KvCakDw6iG2m9qoqojhEmx4VJGN+T+RvzzBL40pa3lo=; b=qgO8sToh55BBc+81xLnuIUOn0+lm4r+nQsFt1Z3l7qPDKHTj8Oxg1MPvOcn/HjJYt1hMyLCDGFs8yLD/rvvhoVWB4eKHrOye15TpjdQs5KMbVoJ9YSA3ZarOYmdSW3+YnCRnVFgL0Op7UCBtS/Axd7mIVYVVMxWG5sgPYYHrtaZ/tg684N27dEnNsWpVXF/UpOHH0dJJg4ppJnVjdRAeju59o3KN51HNXXn4J+jcmWuC/oZYgNJYj6liNWHmjys/v6jIw7kJvEYQBlDzaqBeYqNAjF1toxBYVc49fmHVIuQX/O0wmfiJ90gPVFxxN+JwRviU0aOHLMd5bggT6zfBkA== 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=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KvCakDw6iG2m9qoqojhEmx4VJGN+T+RvzzBL40pa3lo=; b=EbFvCiQj8fH9oMsNoYGR1aA7fUHI6CANELF+KlZjZqYZYhfDOr03k1HnewfUOhnOD5fQN/kxbpsu0ylXawTke5bNFx2SGVjyQFcGdzIruDlfysM0ENjYjySQbSCjJKJ3byLbXGu2EYSe2RMVJnf9fSlkt3lxys9QGbgrE1+eMT0= Received: from AS4P191CA0010.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:5d5::13) by DBAPR08MB5671.eurprd08.prod.outlook.com (2603:10a6:10:1a1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Wed, 6 Nov 2024 11:46:34 +0000 Received: from AM3PEPF0000A791.eurprd04.prod.outlook.com (2603:10a6:20b:5d5:cafe::bc) by AS4P191CA0010.outlook.office365.com (2603:10a6:20b:5d5::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19 via Frontend Transport; Wed, 6 Nov 2024 11:46:34 +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=arm.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 AM3PEPF0000A791.mail.protection.outlook.com (10.167.16.120) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Wed, 6 Nov 2024 11:46:34 +0000 Received: ("Tessian outbound 4f9bb016c0c5:v490"); Wed, 06 Nov 2024 11:46:33 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3a946603cb4cf555 X-TessianGatewayMetadata: S2dGYKFRLlOZzlylxTWYeTlFOW2uq83lBf2pGhGfk8Hx1jgc0wbhkVUGU08k1gQdcDQqq7xRLYww3vw3WbEcytDnaOKrSozwr6lhEXfF0kOW5KwIOSGsGnpyzVNORi8bl9SA/cQnaIVGTDZn1EpM8M1cz+ZnYpCmOx3NWaqnhpA= X-CR-MTA-TID: 64aa7808 Received: from L9d7efa4f4be7.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0E384A2C-28E8-4D31-8AFD-73CBFD5E19D2.1; Wed, 06 Nov 2024 11:46:27 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L9d7efa4f4be7.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 06 Nov 2024 11:46:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fk72WbuQCamiuuDYZH+kcgieG0uIrKsZEnEeItpZOpz5BJ+NBzU4qgWnuHy7H2xnL+n1ARpf6qI/otd1MCJMAc0/avGTtmrce9jBFcyqEaXXi/M6M/vq29oPbZR4iDnfbIRSAxVgDxfnxBdLb0MRVdnJeq087SfADPmQCZvc5SgjKwKCBzQhSX7hO0172odSPtKdaehKD+XgBKpzzm+X7B+9BlhhqTm7hO2Yc/4TC6+iQ+MG5zrkMeB8r22udVAujI1Qgd6EJ3aa9MraRZ8Pjk5nTrgZW9vA752EuTHi4bS500Cu7yg6t1qgN7cg77gLh7kBDd1Zn76x9GiAehcGRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=KvCakDw6iG2m9qoqojhEmx4VJGN+T+RvzzBL40pa3lo=; b=qY0/0yEEMBD1XREeTXdtqeyAqRlakAsAW/BP+DbjLgnHfYG1hURkkSjQwd2sFXBlZgmEj+g3qf/eJN0xvuq1Yse4ngwGfCuSPG+k+1yCX6UnkBdCYzn6ZyCSZVQkmUJGJA4Q6UE7FLW+rmXPA6RUCfPXo0g1K4DxNG3jm/Y8jEhhvLPey4ttqWozQ4NtMk220vn8KhL7/VzyQHuSFh75tDNZCSiWJfh7h1pPQkI6pAwcChdgY0rrE7rd+Z5zEEYnbyYUpE+Iptkk4C9W+s17esNqFUvhGdp1aXIKlVKTcr6PBTzFy3ZjXe/Ehe9K+HXTvJMPkDGZOPcxWgmTKh6Fdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KvCakDw6iG2m9qoqojhEmx4VJGN+T+RvzzBL40pa3lo=; b=EbFvCiQj8fH9oMsNoYGR1aA7fUHI6CANELF+KlZjZqYZYhfDOr03k1HnewfUOhnOD5fQN/kxbpsu0ylXawTke5bNFx2SGVjyQFcGdzIruDlfysM0ENjYjySQbSCjJKJ3byLbXGu2EYSe2RMVJnf9fSlkt3lxys9QGbgrE1+eMT0= Received: from DU7P251CA0015.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:551::6) by DB5PR08MB10214.eurprd08.prod.outlook.com (2603:10a6:10:4a9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Wed, 6 Nov 2024 11:46:24 +0000 Received: from DU6PEPF00009524.eurprd02.prod.outlook.com (2603:10a6:10:551:cafe::d7) by DU7P251CA0015.outlook.office365.com (2603:10a6:10:551::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19 via Frontend Transport; Wed, 6 Nov 2024 11:46:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DU6PEPF00009524.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8137.17 via Frontend Transport; Wed, 6 Nov 2024 11:46:24 +0000 Received: from AZ-NEU-EX05.Arm.com (10.240.25.133) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 6 Nov 2024 11:46:23 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX05.Arm.com (10.240.25.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 6 Nov 2024 11:46:22 +0000 Received: from a078660.blr.arm.com (10.162.46.14) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 6 Nov 2024 11:46:21 +0000 From: Tejas Belagod <tejas.belagod@arm.com> To: <gcc-patches@gcc.gnu.org> CC: Tejas Belagod <tejas.belagod@arm.com>, <richard.sandiford@arm.com>, <josmyers@redhat.com>, <jason@redhat.com>, <polacek@redhat.com> Subject: [PATCH 03/10] c: Range-check indexing of SVE ACLE vectors Date: Wed, 6 Nov 2024 17:16:06 +0530 Message-ID: <20241106114613.2972987-4-tejas.belagod@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241106114613.2972987-1-tejas.belagod@arm.com> References: <20241106114613.2972987-1-tejas.belagod@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU6PEPF00009524:EE_|DB5PR08MB10214:EE_|AM3PEPF0000A791:EE_|DBAPR08MB5671:EE_ X-MS-Office365-Filtering-Correlation-Id: 8952a2bf-7255-4f55-9901-08dcfe58a9f2 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info-Original: Dhh627QjbqlzBklzsZ1YuOSMv4w7uO5yQ/gL/UOnIWeGzO+ANRUrkxDR1vUlS0yIdp8hEzqfQdEBmVLXRgYIohLmqcPitQkiG1MCczyRGQt2M01Hw22SrYsN4j6vYZAjY7NnnKQ94ML1o121eTzkQRbjDhXnvVKWSGggJ2BVXndRnBaJVZ3t8w6VSzPVICZKfEiPEAQ061m5lSRaoV9N9a2J9mmy5V41xyfxq8WAHWZxyQD8KcX4JQI7CPfh4/dcOOU89/339hOccuCef7HEkySKbDzXSj+B/7o7PGDaFW8ZcrW598GGrVuGvSTkcWpnXA8R84YfxnFgi7DXOoazJ1BwN3mxsMJWOmxBTLPFgDqepKgYvFRtwp6AAsrjrZ6XmDg0b32RHjH4qR3sjkrkxbeGpiPdzEYBAzpHfKivqFB3dJ+UpJ/zzNfaowcRlZ96H0kQ37JyVg/Mk97WiDM6NLvyVfSZJdp/YH3bKTKQXm9CdgIhGhn7P8VOVrwKuXjUgd3lTSINrD8M658yvHnOikXnfe+JKeqpkxIWl+2bfynFwGg00IKGGbPatpgTIZIjvFTzn+LX2qEiPAZzN3DAwgd4effOg2I1SAFal5o3QU/3rtEyJH8QoMAAKspi0tgIZDHY+yNkfpLKwO/gRfhU7S2jtG/Fegj4/uP+xUGp+WTbtW1MQcP1l7KRrQfeloy/3XvMvKSaHX7NTg0smt0dRUzXvNh9QEhDpjJcFDO7Wg9zws1om82WkuhnR/9UMS75SR2hqV8BcZdaqhiuok02Fpy29avp3orhQ/0iXwQnOZrJBIqX4iFigYFJ1WKrnBS2v9+1VTsbRLsWtm834/R3oyUWbdeWF+vcUHcmXUAgJhY5HfJZAfYPky8xM+GruPbV0PJcm4G3Ljws+6921s9AF8590NlxhhxyLfyX+HYAmEZfVsaAh76rVo4IlV8Ej5IikzajlV9H5MPaV72LIlMnP4ugYru/ROQE3gFhL1ZiQMdhS8ePhhgpkU+h5KtSOIP5nyV/5Q8ROtPA7rXECZMg/qoS7aGbrSlodcvbrH2XbronBPdHmccqholoYkSGkgjkZtUBb3mJQh7DFI5ZhEgQ3xUWgvNYaY2/cD1hn3hj7dwJu7ToMT/F2JQYRYlcMZuDBnotimlalji3ZVTWVqJsbE1XiAmnVuWjTzf704Ttx57RgTgSMtJrWrdmKqSEeu9XtNU+lIOCQ1UkD628QAKscxVzUWZBJ9Pz0XDos2k6RpiCXpvlbsdzM0wo4cj/M55ZkKWLmoSqhd/L4tYiXLnkJ0jZZ21h0Q1zhtj7K9wUpkCt1KKzsMW+H75d+PEYax/qusyCyIH7zliOK4TKrkIeMKHfcLASND3UG51xWCLxQ7cvWNFEVs5FYTzzM683O4z2V/BQUdstRRcsnfgpw8Q/Pg== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB10214 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:551::6]; domain=DU7P251CA0015.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A791.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 0b6d10af-cda5-46ca-05f6-08dcfe58a43b X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|82310400026|1800799024|35042699022|14060799003; X-Microsoft-Antispam-Message-Info: 4XuAVhVF1m9OxMhkscB1thcOrENVbWRvnZpAK1U44+0FlnQIdm9ttmxm9fwfaQAcvzjT29ozDRAcha6VorG4vxIL2/kfD7FXe92zLSrJPs8IAefUyL6wMeQ5L91pofP8hh2u8zauRu4ZkcfTkM9U5GUChuDNsegNyjbP+AGrH2HsaU7BZ26w8XOzorMFWPDR7L7wpfPc8ruzFf2hjyJcIsda0dI+Z1Ki0cVXbBW+0XWDxp0EQ36pLwcdkG8GeYdqDXHrzoOBrsQbObh8428itIyKUFLAG00JSbfbinkYYIigFpowzRUQeyfb4/OmdcggOCjIFtB9NEBKItTnhu+jmOYfNlzx3wbS8tgzPTr5BXazjmHpdkWHiqtHXBAW2J5kJwXgbd/nqkt7NZXIzCl7MuwucddR38TLXROcQRU/f9gk8/xIY76QDvxFF+/hD1FkRUpaFez4l80vorSkb4alxkBpBF2NOPy3dYW6EWd3tkC8PP/J54NL4j1p8nv/KffLZXhD2VNNJjnvGMeqUaCM0jAnPanoQzMan3lg7Js+fyjW+8G9uD+OlUFh1/9Csx8Esd2QCitZMozIPjma+iUTCRq8h/AUJzhRoVYnFslGkiYgs2C7CSi1BhUJe3oH/j/jBaERg2AV13momU4NbhlNjRXeQ8OT85HcIMHPRliwsIZ034f5iyVigKEpeOf+wgXRsmAhhjp/8pFs8JqtktnIGEXk3M1RW88uhNovo7eIihtRGGPT+VaBbMWowhjPXf/2BbWsQ5zproQR8sjkuHJfo6/7we7uzNAGMISuDvII6UZ7wpMTAyUhSa7fU0PM7X473HD71CehNGeO1rkohnmgi8AL/opNIAEl0lk3kv1NAyyzsgGpFh/usvDdXQpMDtLZCZnxzKK1tPnPyj9kDZtPipvBKA7OvhlkwPQZ/6V3HfMeENNs8SlyrF0n5WJz0ZLSBGWHh3NV/vLhYkvnvCdLAGE5RZeDA3z/KLdysY2mjA407i9rkaK/SIXd2jv94ptsM6S9VMO2nNvMQhZKlYXVmfAodLfvLE0rfm1OQX7r3B6dpcmvVaw7yYgjj2zbsXfICqJUHWFqrQ4xN/DQuLwWoslCNtcfFsmzyYapl79hzTtsh7OuzOMUBxCTMqARnFbaivziT6utki1kLxnymQAiqjfAV2HPjaQcFQGie5WBsFstqJbBXxyEA53pDecOJX2tBRX5NdXaZSJyidTFUzLi3zB0jzlpHBr92CHtbGNi+meEo6oHu1q9KuxwO1+2+Y6LBs20O9Pb220ZrJWpcKZj5z19gtuRxal9tN1nOf/GbtrkTwmgSirWBtdn+d7kBrSLRaifW2y3dDqhvljFxlS05dD/qcOe9N5Yk8IJM8hfJIw3lzdFuUW9sb1WhLVO9tX1QYv4cY64v9KD9OierQP04A== 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:(13230040)(36860700013)(376014)(82310400026)(1800799024)(35042699022)(14060799003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 11:46:34.1124 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8952a2bf-7255-4f55-9901-08dcfe58a9f2 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: AM3PEPF0000A791.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5671 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
aarch64: Enable C/C++ operations on SVE ACLE types.
|
expand
|
diff --git a/gcc/c-family/c-common.cc b/gcc/c-family/c-common.cc index 06be2a37b4f..f78c5eadb17 100644 --- a/gcc/c-family/c-common.cc +++ b/gcc/c-family/c-common.cc @@ -9038,10 +9038,12 @@ convert_vector_to_array_for_subscript (location_t loc, ret = !lvalue_p (*vecp); index = fold_for_warn (index); - if (TREE_CODE (index) == INTEGER_CST) - if (!tree_fits_uhwi_p (index) - || maybe_ge (tree_to_uhwi (index), TYPE_VECTOR_SUBPARTS (type))) - warning_at (loc, OPT_Warray_bounds_, "index value is out of bound"); + /* Warn out-of-bounds index for vectors only if known. */ + if (poly_int_tree_p (index)) + if (!tree_fits_poly_uint64_p (index) + || known_ge (tree_to_poly_uint64 (index), + TYPE_VECTOR_SUBPARTS (type))) + warning_at (loc, OPT_Warray_bounds_, "index value is out of bound"); /* We are building an ARRAY_REF so mark the vector as addressable to not run into the gimplifiers premature setting of DECL_GIMPLE_REG_P