From patchwork Thu Sep 12 15:11:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 1984728 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=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=ZKDJsIoP; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=ZKDJsIoP; 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 4X4LYQ2YMTz1y1l for ; Fri, 13 Sep 2024 01:13:30 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 315B9385840B for ; Thu, 12 Sep 2024 15:13:28 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20603.outbound.protection.outlook.com [IPv6:2a01:111:f403:2613::603]) by sourceware.org (Postfix) with ESMTPS id 15FC83858D28 for ; Thu, 12 Sep 2024 15:11:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15FC83858D28 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 15FC83858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2613::603 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1726153903; cv=pass; b=YKx1uORYl3b1VpQqiwUT+44P+GUE11xtUQMb9VF3G2RzJMVRk1WJkpQVJjQ7hlods0LXNsACd2sdaJGdxLas/6P+yYXMtYOCIfb9ZZfNh6QF0RGv49JHmNdPh6A91pFTLyVH0PV2Hil6VEd8g9HzNT56cUDm2rnOHWG6zijtW2Y= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1726153903; c=relaxed/simple; bh=qhEh/N7s5hETXHJs5ksKvr897bfnLICkQ5KR9852BG0=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=coOjxYKkAKL2mI87uSfKyEsbYduehPqaTJCjaYu9jQMBTZ24XHSC7fOgjibeuw97001Wog7zp8r1JdWFWd1Kry8vNulrK8rXWf62iSBpu80fIzETvUtwWWgshqPPhsVblpywMk6WEphfKNUGUbj2jbPkZNs0f32Jm4Lz316s65s= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=FWif5n4SL6gD/7LosF9EYQUr1JS/k/07Bob1ynUtNEcSUSNVzCZ/weVBB4mfo/dAe5mBYtWockwXoWOUP27CiQaM9EFP3L1Mh36jFAiP9rOoahibHxAcFA1IBClaaAwer97zZOJc09AtAlIMEwRWkrasi1e765dw4HAlDTyRMvJQyihUHfV1OxKOoBPJoCv+G2lvG1u7vkXGXGPzgB7+VhSXyMHjuSn1uqklJEzgZfENGqOcZsen4qTttgh2HvRBz1BLETx/8WGAYsWvYUhx1ujSW5Lm2NHefoCNT+SaRj+UZfVEVGSc62+wy8OsyklA9qjrq+7fT0k3RjSmfNLQTQ== 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=U/iE3ht8bmMXn2KHo8duobO2UMuxXGje/QJDtyvDiUc=; b=rRxK8NziF5f9+8E8dNDC4mfa/x+8RTsc4Mezjf8FMRpMEmvbtKbaOODKnilab//36EZKINbf1wZqJcqyPw9ipRkGQCWh/5Gwz9+61f5uc/JmXmaYf6krVHIFLff9CqULMe99v+YeHRAqw+yTQ/oclmLw/DJf9VlbIJzR4FYnJ2RdNhOvyObA3hi2/q0AwOOAoY92V987SakrbXW6qTXrZj2zKZYUwYMumYwMlDUOR1d+hjAsJwNVSn1zvChsMygp85Lz2iCAte2xWTg/Sh14KJuE/McEgMsv9fz2Yp4GggcI2Y/qYUIP+4D9y/9YL1ApJy9t6YmvEh/uZr8ZIJ5Ozg== 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=U/iE3ht8bmMXn2KHo8duobO2UMuxXGje/QJDtyvDiUc=; b=ZKDJsIoP1fBiHVecGntJ2h15oAWGJ2TJIywIq+lP6NPoNVywhf+ofmtVlDxJJq/eX6eZKoj1aaSdAVx2WvW/22jfEa6x8z6v4brP3xXXMIHtUx0Qb3sFabb+mYQ9jXjyAD23UCRVb9TKOX6paIDJBA+3s8a/YJBS5rKYdlWQmg4= Received: from AS8P189CA0009.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:31f::19) by DU0PR08MB9002.eurprd08.prod.outlook.com (2603:10a6:10:467::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Thu, 12 Sep 2024 15:11:33 +0000 Received: from AM2PEPF0001C709.eurprd05.prod.outlook.com (2603:10a6:20b:31f:cafe::14) by AS8P189CA0009.outlook.office365.com (2603:10a6:20b:31f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.25 via Frontend Transport; Thu, 12 Sep 2024 15:11:33 +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 AM2PEPF0001C709.mail.protection.outlook.com (10.167.16.197) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Thu, 12 Sep 2024 15:11:33 +0000 Received: ("Tessian outbound 7047db86dc93:v441"); Thu, 12 Sep 2024 15:11:33 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: f420c1a245efe9cc X-CR-MTA-TID: 64aa7808 Received: from L52a2fb006201.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D3E809DA-F542-4700-8E64-C725ABEA1F21.1; Thu, 12 Sep 2024 15:11:26 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L52a2fb006201.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 12 Sep 2024 15:11:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=isOlRON+yS+VWfswyB9ZDyiWHtzTxhb2FZWw/HaVt6mLQfJrBnzrPZroDDMwA5U9vHR4OTbgkYIYaI54I3C+s7UdmbSgVz5vfTMWf7UBfNcu6U/PxBDHXQaSrC8QqCz/kkfuqXZxWXR4AoLesQ53XO9G24RHsbjOC9pwrNSUWAkQ31khRSTUcCF0SL8n83BJafN5KAG5pC+wNafvbG4eF5ztJ4CVBoIbm8/Xso3RCGz7/38V39Pd289teN/3AFcw6Vaiidk/4fBlINJAL5aM17OpzUaCobT14lo6XAwa16HcDIzcau9AUXzOJmDLt4XFrmBnx7I49y24AQDhhXhBRQ== 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=U/iE3ht8bmMXn2KHo8duobO2UMuxXGje/QJDtyvDiUc=; b=KZB6jVvIUe0vHNqPwUE07TP1uLp6CYrxNuXQaK5CLJZqioieFNECs3jtBJPI/BpElGk9sHo4qqZtVBdoeuJkFRWdt5jgTn647ek69yhtJ9AWihkHR1/zu/NOn6QuNq2ZHPVFjSVr+DdJXq/gX7hPVGEYL6TBYMhq+r9ccTNkFECHAXGD9pW74Y7qw9EuJzr3WpSi5987zfWTn3cQljhE/qiBEzxmNlMU+3FLAh4UdLNfU/JsIX9cy2wrINGderDA3Uo5MaWYJh4mwUR7ZEo72NNOYwDwf9sMNgUMQ5X3aWK9wYxaW3zmOaRkrBey2FRZYyN35iobMNWRE7HCwzbxGw== 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=U/iE3ht8bmMXn2KHo8duobO2UMuxXGje/QJDtyvDiUc=; b=ZKDJsIoP1fBiHVecGntJ2h15oAWGJ2TJIywIq+lP6NPoNVywhf+ofmtVlDxJJq/eX6eZKoj1aaSdAVx2WvW/22jfEa6x8z6v4brP3xXXMIHtUx0Qb3sFabb+mYQ9jXjyAD23UCRVb9TKOX6paIDJBA+3s8a/YJBS5rKYdlWQmg4= Received: from AS9PR06CA0379.eurprd06.prod.outlook.com (2603:10a6:20b:460::12) by AS2PR08MB10154.eurprd08.prod.outlook.com (2603:10a6:20b:62e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.12; Thu, 12 Sep 2024 15:11:22 +0000 Received: from AM3PEPF0000A794.eurprd04.prod.outlook.com (2603:10a6:20b:460:cafe::19) by AS9PR06CA0379.outlook.office365.com (2603:10a6:20b:460::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.25 via Frontend Transport; Thu, 12 Sep 2024 15:11:22 +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 AM3PEPF0000A794.mail.protection.outlook.com (10.167.16.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7918.13 via Frontend Transport; Thu, 12 Sep 2024 15:11:22 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 12 Sep 2024 15:11:21 +0000 Received: from e120077-lin.cambridge.arm.com (10.2.78.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 12 Sep 2024 15:11:21 +0000 From: Richard Earnshaw To: CC: Richard Earnshaw Subject: [PATCH 2/2] arm: testsuite: make use of -mcpu=unset/-march=unset Date: Thu, 12 Sep 2024 16:11:13 +0100 Message-ID: <20240912151113.4079992-3-rearnsha@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240912151113.4079992-1-rearnsha@arm.com> References: <20240912151113.4079992-1-rearnsha@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM3PEPF0000A794:EE_|AS2PR08MB10154:EE_|AM2PEPF0001C709:EE_|DU0PR08MB9002:EE_ X-MS-Office365-Filtering-Correlation-Id: 99b44f52-db6c-46c2-7633-08dcd33d3022 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info-Original: DLP/OHz36jxrM8XsJ54e2rLxXyGuRyu/pP26Oo0q0Tj6WWWofgDXxiBdmeU3wA3NZgeUHdY2dvY0CMpLuiyLyYx8zX/mKlaAai/r7PQvwC5CmYbbu5woXhwysALRFi1IbUSPRsw27NQfvdSOPHs7lmD6ag6hDEHEQ/yfokFssUmlOgqP0RvgTdF6GRCwUfp5MZFTlOodQGoq//78zbu5RxbY+t5MFnCvk/HEi24eDng/kmes79OFIOP+GiXXCv1HAXRWxLZooctpolhzeQo1DG3+W/4MU28RyIvK+v4jjX8Ft6zXZTH8bGZz33Od1vvJb6Ib2hJe9U7YbFESBPEM+ZqtHTFXQyaXZraMy6Tso5dqlcBp2zM7+4wlqJkt/u99sa+dvYAU/0nRh3WucETOjEIqsHtKiQJSPf+FvQTUO7eLIEog9SeBq9bO3YuP4MvgZU9kMuA20NwcEQqFGNZBvB30pfBvMyGfAevOiaV+SDBh5JTbAwLP8Ht0zilA07WtP8X6hmXgbDA7YAg4WLngIVgXXX1S2IlptPp2HI2+6/hQzxYf8nfGEJpZDaIZx+5Laf8yfDB4H5vUPpyYOOSCXqHmkJsV7cm9WA1TV86Y8iZIBolHcMfj9OY4PS4xfpSd63zvOEhomrb60EfxlUnEtSkrT65sXn7RPoQ8GdLNYRcvcXr0vUehRmY2oljx14d9XiVb3dokqMQQjKSzk3W5nKqYKPxbx5fdji5QBz/aCwMudixhngljDgeGaxq3pI5LS6abBcCoVYvupel8c3un2GcvvSOWQ4ZfKAkvoXHUq2gAwEre2ZejevDKk/qd/MgD7diwyz6dIshiCz46PYDAD1ZlO9z4RG6DCLeWsFvm8WbPvrsvveux4E2lUplsofPDJurK1UT4O7X+iyo8Ay3LwEjG5qF8f//D8Xt3QUiLAi3MFmtO39JNpfCueI9SqExwUz0OxdtQhh2QcobFp+SXwuDjHcr301P3IlI0eyP2e+ONVy464tw70gD5BRuMkWzSbAFFeWfRE8xQQO8bEP7T/+QpDgUx/s1PqIBblc6AkRVukefdkeqaWcJDrY6r4TgEO07PGfYROta7pgCGWOguSyZh0M3ds6w66x8H58kmUVx3yumkdkipeikipPGMO1mBx9HUvrEGwZzVs0Cy7isX95eJWBRGeIZFsG2C3y9TmMFPYysO0bHm6i8HixQcqqd4lDAddfxZ+SBLn95ExaPD4E3VHWHE9zFSjuDtp/DNpGpdJ4aUvxPMFTGDhczjJnJrs9d0dWOWj9YEEVeIUhqWHcMW9JD1ZiFyBXVJfS66JUN5RtzEnzbCUnlMXjy/wIiW9SISIk5Nvv+C+aMvUCjgyKebSON8qobAEKb0BRfc8hp07/TQqApbDE+mdBIthyqRV0oyt2yz4Cgl1QfXdixCQg== 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)(82310400026)(36860700013)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB10154 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:20b:460::12]; domain=AS9PR06CA0379.eurprd06.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM2PEPF0001C709.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e9280294-38c7-49fd-c176-08dcd33d29e1 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|35042699022|376014|82310400026; X-Microsoft-Antispam-Message-Info: oEEudQfLXkS3ZnNS/lPeTItI1qUSAea1/uE3Wp5eZmWWR8iE5JM15Fr9ahVIR3J+Ai42eGFvQjf8ihVuojB24UkW99Ei58+le0HsK+vdctlthLyGLx1osAlIX7gDoCdecx39DspcsIe/mT056Dz58HUZlrrwl/wTAXfi3/sa1s4EKeJKKyFv9TyhhSArQ2e00P3aIK2UDgiowzz9uN8rHZTCWQfFVUI+n6yFTz66nLv+Fl+YJFFl4E/r8PHVV6MRo4mxs3/b9LLR0HmyEAYFmogo5Eb9y51ezQNqiNy52uiLyfegPQQZmxFWlndnPKARUemfq64ze6q099rIJTTqm3pBcajsSgt+nrIZyBFK/wpstCJ7WNo8HVKHt5DuRIJPyK24FXEv4RKM3yOfy8HhaC86/WXRqVFA49yaN2SExlWWDeKYOXBziEPb7SZnVbG9nevNzIuCPJol9X/TJgeXDVGwCf6uwzYmCksisJ0x0HNnknFQrIh+fbKOAxAE+ApfDi/8bn3z0iNQMK8hl4eQLlkcGmdQnYibH3ew0MDIN9GLtdmiWokVRa1eZVioSZhym0KGNKvx70wOO3qqNT0RIph53wQWjvK5vucW5Z/66qCtzswcKvpyLLcuDXaztkS3wduZFAeUsBNbnjVC+moeax49HbjD6PEo+f5+YxNZn9HGY/IberTdgQfi2z5CSQbFyTg4WEVor9Rtl3+/Cun1fnRdTmQYuVDwkdiE+htXcKF0wHX2W/j17e4rmLgchuo9cd1SntDJGIJd/5jhBdeyo7xpVzXeaWTjiOHVjiTZUJ7IVT+GHyWPJdH0WDzaUTWswhvh3M3b2g1NLIv4+EduP+t3du3kxYe0F6BQ5da22dPQ3279pc58J576Y/GM2F2egaTttpjtpitphx8T7YUCvpRXwXuS1V5iqdn6MaewDZOyUipTGYTdElpFo4C3HswP6glYZ+xoVEZyhhdo91Bt4qixLUrB/1yT8uAG26ptNK7ooJwgrpZfTjasCXYQ+leoxBWztkgTQCLpkZ1KIUupdeX72LuRKMfeDt6EPT2hJ5Z5BV9wgX9XlayeaWzmkrDeByXzI+mGAK7PDFdRBU+Hx6rrtC80RoNccHs/10Vpd0La5l2QGB+bM7y0WJD73+U/sGpWTm+7kN6REOBJWa/X4wdN/iul3CJgbJWULst7v1JtiZAMyMfbqUbNzs7rEkbGq0Z+mvOzKX/WAJjapZMx8A8U9lty+X5OvpWCTMQ5IAVorqMTR5yRsYVteCmzAp0hlFt4hBa1gqsGe4zzFsJHjjqQmayRzaxeFjrl80nLdcUW5Ag5phgeiYFIP8zA0mBek/g7feJGSFPqXZkj8Fk3oIB8kZ8dqsk8ddaXuTj6E9IsnWN4mlavV9a9zZ1CNySnmLmqZ+aLPk/sI7F3Q98u6Q== 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)(1800799024)(35042699022)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2024 15:11:33.3173 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99b44f52-db6c-46c2-7633-08dcd33d3022 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: AM2PEPF0001C709.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9002 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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 This patch makes use of the new ability to unset the CPU or architecture flags on the command line to enable several more tests on Arm. It doesn't cover every case and it does enable some tests that now fail for different reasons when the tests are no-longer skipped; these were failing anyway for other testsuite configurations, so it's still an overall improvement. There's some restructuring required to fully implement this change: we could previously treat Xscale as an architecture, even though the option set -mcpu=, we now need to handle this correctly so that we unset the architecture rather than the CPU. To do this I've added a new table for these variants and renamed the template functions to use 'cpu' rather than 'arch'. This entailed updating the two XScale related tests accordingly. gcc/testsuite/ChangeLog: * lib/target-supports.exp: Move xscale to new generator table. (check_effective_target_arm_arch_FUNC_ok): Add -mcpu=unset to the list of flags. (add_options_for_arm_arch_FUNC): Likewise. (check_effective_target_arm_cpu_FUNC_ok): New function. (add_options_for_arm_cpu_FUNC): Likewise. (check_effective_target_arm_cpu_FUNC_link): Likewise. (check_effective_target_arm_cpu_FUNC_multilib): Likewise. * gcc.target/arm/g2.c: Update dg directives. * gcc.target/arm/scd42-2.c: Likewise. --- gcc/testsuite/gcc.target/arm/g2.c | 4 +- gcc/testsuite/gcc.target/arm/scd42-2.c | 4 +- gcc/testsuite/lib/target-supports.exp | 59 ++++++++++++++++++++++++-- 3 files changed, 60 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/g2.c b/gcc/testsuite/gcc.target/arm/g2.c index 04334c97713..7e43a907a4c 100644 --- a/gcc/testsuite/gcc.target/arm/g2.c +++ b/gcc/testsuite/gcc.target/arm/g2.c @@ -1,8 +1,8 @@ /* Verify that hardware multiply is preferred on XScale. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-require-effective-target arm_arch_xscale_arm_ok } */ -/* { dg-add-options arm_arch_xscale_arm } */ +/* { dg-require-effective-target arm_cpu_xscale_arm_ok } */ +/* { dg-add-options arm_cpu_xscale_arm } */ /* Brett Gaines' test case. */ diff --git a/gcc/testsuite/gcc.target/arm/scd42-2.c b/gcc/testsuite/gcc.target/arm/scd42-2.c index cd416885a80..a263c1fbff9 100644 --- a/gcc/testsuite/gcc.target/arm/scd42-2.c +++ b/gcc/testsuite/gcc.target/arm/scd42-2.c @@ -1,8 +1,8 @@ /* Verify that mov is preferred on XScale for loading a 2 byte constant. */ /* { dg-do compile } */ -/* { dg-require-effective-target arm_arch_xscale_arm_ok } */ +/* { dg-require-effective-target arm_cpu_xscale_arm_ok } */ /* { dg-options "-O" } */ -/* { dg-add-options arm_arch_xscale_arm } */ +/* { dg-add-options arm_cpu_xscale_arm } */ unsigned load2(void) __attribute__ ((naked)); unsigned load2(void) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index cb9971d5398..c4d2c33cf62 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5679,6 +5679,9 @@ proc check_effective_target_arm_fp16_hw { } { # Usage: /* { dg-require-effective-target arm_arch_v5_ok } */ # /* { dg-add-options arm_arch_v5t } */ # /* { dg-require-effective-target arm_arch_v5t_multilib } */ + +# This table should only be used to set -march= (and associated +# flags). See below for setting -mcpu foreach { armfunc armflag armdefs } { v4 "-march=armv4 -marm" __ARM_ARCH_4__ v4t "-march=armv4t -mfloat-abi=softfp" __ARM_ARCH_4T__ @@ -5690,7 +5693,6 @@ foreach { armfunc armflag armdefs } { v5te "-march=armv5te+fp -mfloat-abi=softfp" __ARM_ARCH_5TE__ v5te_arm "-march=armv5te+fp -marm" "__ARM_ARCH_5TE__ && !__thumb__" v5te_thumb "-march=armv5te+fp -mthumb -mfloat-abi=softfp" "__ARM_ARCH_5TE__ && __thumb__" - xscale_arm "-mcpu=xscale -mfloat-abi=soft -marm" "__XSCALE__ && !__thumb__" v6 "-march=armv6+fp -mfloat-abi=softfp" __ARM_ARCH_6__ v6_arm "-march=armv6+fp -marm" "__ARM_ARCH_6__ && !__thumb__" v6_thumb "-march=armv6+fp -mthumb -mfloat-abi=softfp" "__ARM_ARCH_6__ && __thumb__" @@ -5735,11 +5737,11 @@ foreach { armfunc armflag armdefs } { { return 0; } - } "FLAG" ] + } "-mcpu=unset FLAG" ] } proc add_options_for_arm_arch_FUNC { flags } { - return "$flags FLAG" + return "$flags -mcpu=unset FLAG" } proc check_effective_target_arm_arch_FUNC_link { } { @@ -5762,6 +5764,57 @@ foreach { armfunc armflag armdefs } { }] } +# Creates a series of routines that return 1 if the given CPU +# can be selected and a routine to give the flags to select that CPU +# Note: Extra flags may be added to disable options from newer compilers +# (Thumb in particular - but others may be added in the future). +# Usage: /* { dg-require-effective-target arm_cpu_xscale_ok } */ +# /* { dg-add-options arm_cpu_xscale } */ +# /* { dg-require-effective-target arm_xscale_multilib } */ + +# This table should only be used to set -mcpu= (and associated +# flags). See above for setting -march=. +foreach { armfunc armflag armdefs } { + xscale_arm "-mcpu=xscale -mfloat-abi=soft -marm" "__XSCALE__ && !__thumb__" + } { + eval [string map [list FUNC $armfunc FLAG $armflag DEFS $armdefs ] { + proc check_effective_target_arm_cpu_FUNC_ok { } { + return [check_no_compiler_messages arm_cpu_FUNC_ok assembly { + #if !(DEFS) + #error !(DEFS) + #endif + int + main (void) + { + return 0; + } + } "-march=unset FLAG" ] + } + + proc add_options_for_arm_cpu_FUNC { flags } { + return "$flags -march=unset FLAG" + } + + proc check_effective_target_arm_cpu_FUNC_link { } { + return [check_no_compiler_messages arm_cpu_FUNC_link executable { + #include + int dummy; + int main (void) { return 0; } + } [add_options_for_arm_cpu_FUNC ""]] + } + + proc check_effective_target_arm_cpu_FUNC_multilib { } { + return [check_runtime arm_cpu_FUNC_multilib { + int + main (void) + { + return 0; + } + } [add_options_for_arm_cpu_FUNC ""]] + } + }] +} + # Return 1 if GCC was configured with --with-mode= proc check_effective_target_default_mode { } {