From patchwork Tue Aug 6 14:07:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 95381 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8BC3C3858410 for ; Tue, 6 Aug 2024 14:09:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:2612::601]) by sourceware.org (Postfix) with ESMTPS id A0C1C385841D for ; Tue, 6 Aug 2024 14:08:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A0C1C385841D 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 A0C1C385841D Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2612::601 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1722953335; cv=pass; b=gll5arIx+T1j8aNcd6JE3ll2dcfGCrwEeLKDjZw3elW90vYGZC49zaznDTQMeGO3oUQt99Vz01uUmm8vczF4GQQ/C00wpXYgT4afGdGCFPS/9ppNRCuz8YxVX0v2S2twXpfZvvBpwTrXPIN0rousrRgE1uovSjVIBVHGHz0Ll3Q= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1722953335; c=relaxed/simple; bh=n4LepmIpjXuzXH2gw6rvPKwbrj7YCjEB9AAK9aA9Hjg=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=M2RZ/gmu0EdLYJLR6vKKmeEpIMUtXX8qgM+zBUt4El4YM4Wi0C0Wr2pRUvHcrOJBhFJMntG60BvQav7NnBKKgGQG1yr4ch6PKHL8wSXT92Ckjbcawk6ERw1aPr0RvkiW/BQ+w5Ke1pvLWctGITTZu9qtkTMtwSWKAjDg/ZQcobw= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=ytMNu9ojgFvbCf0rUMcWzwnhQ7lw8PqBHvXSPwKHUjPdLKgJ1JGJiH66itWVOA3Y+Bj/+OQZaQdpZk191e1W2OdRLW67dVcM/DPghLC6zFXHITTgZcfLLduhlKayX+h9k7TzDBdI4yF63i8pK1nNahbT6utwBC4Q1vad2lBgblyRYjufiPC64xmUTLcEAgr7sseAL7Yr3SJ9U7bro5huKCxNgXuD/i93qq+XlhzIWi1iBiLHjbvT6UzEt0+PyflTNRzKAIFkH701+98JAX0BmvhziCqE406RS2Xs+uwSInrpg3DTjEg2YxipdKXu2NFFCJPl7EjcO9di5I9cvJ/zvw== 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=MdnCcF8v6OtQtIh1E/eWEv+HBPBaOa5Hy4WibfBGjxI=; b=rlfaiWQf11V6+QuYre3SzALWRqMiPT/jkGHtCCqQsgVfOPR1L69R0ci+8+/HLZglH0XgcKWVQnqslekmseE/P+4TeAYyiL2ZDJeA37UiAZrfAnXK0j7D6I6y6eItSKIz5OKGCAJQmUW0VTFizN3KVsf+t4y7Pq1529kq98WA0xK0wC76uqkUUMHeBjoce1mHAdp1brIXtCK+tpwHd/vjZNTt+hagb8sgMTtPjKb5mXQUE1i6o3Ilh7PvYS+dAWiAihmeCQ+jdnY5jMZoOhmk2D1lNII2dmzmnUa26vPAKlMcZcLj6RLA02yHfRjLX/6pxJEhXA6LWmLS9LHjVizlWg== 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=MdnCcF8v6OtQtIh1E/eWEv+HBPBaOa5Hy4WibfBGjxI=; b=CLwe0tleyEcU8n9Qp3H5yqg8Jet4k5hy/FMw1kpKJLFkp9TNClnJxyMiQhcyeDsMvI7eQ67QDjkVgvHQcgy7qAXmmvlBbHYQEN0nS7u5pEg72b7ULWZTnDp9X8ZnZmMzHS+dU9bVAWdtn8t/42VbThyvpDeReJJz7rey9SiU/iw= Received: from DB9PR01CA0003.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::8) by GV1PR08MB11004.eurprd08.prod.outlook.com (2603:10a6:150:1f5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 14:08:44 +0000 Received: from DU2PEPF0001E9BF.eurprd03.prod.outlook.com (2603:10a6:10:1d8:cafe::bf) by DB9PR01CA0003.outlook.office365.com (2603:10a6:10:1d8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27 via Frontend Transport; Tue, 6 Aug 2024 14:08:44 +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 DU2PEPF0001E9BF.mail.protection.outlook.com (10.167.8.68) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7849.8 via Frontend Transport; Tue, 6 Aug 2024 14:08:44 +0000 Received: ("Tessian outbound 6ceac6be275b:v365"); Tue, 06 Aug 2024 14:08:44 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2739788cf8457b64 X-CR-MTA-TID: 64aa7808 Received: from Le143bbabb129.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 29E9BF1B-2692-4FF3-AF56-CFD731879886.1; Tue, 06 Aug 2024 14:08:38 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id Le143bbabb129.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 06 Aug 2024 14:08:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WdpAwEwHVfLDijdrrCZAoZCliGePFLA4/oDRHblNT6KpfjDxvOxCgmIBYtaP1gaeVoVVq4sMMWgdqvae8M8Vb6wNLmR3e3BaEExLqKy9Y+MZDyH24eEvVP5VJ+meIpzDclFlpvKtasxc8oX+GYohrI3YrJIXP/0zruceK0Xs+85nMwJ2ur3APF0BW9D5vAwBZDq9NrxVziRRG7Ug4jsYFqsl1mlBgdndA3B7HqTfyriBH2UUUTR0dHxpwev903RurSWEVgbFUnIBZElWKy5g5FGT0kHa12BaGJYdHiZvD6zTBv78aXpfUk5j14U70vC59okSdo1wgGhwttko9maOQA== 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=MdnCcF8v6OtQtIh1E/eWEv+HBPBaOa5Hy4WibfBGjxI=; b=DQ8Yrzx37gFse/qqfm1JZx8xNWMrbftHiI2Qa4upk5DIfmQRDhRac964GJ1haosszBYQDglt8lD5dinJmR6ixQlXx2L0Uo90ZSwUNWH8QK8OYQ1oVAIkIbiRWSGc10M9BtmZGLeJ3xq+GZKz2l0SUP9AAR3XDsjox/hKxUvR98oXdYVLCsc+7dmDgeR6ezXrxOy0LCuKORs/AK1DeX2Cu2mYcqZvw46XFVDlD3fATM+EzcI3u13hhxn5kSd0vxSG7HGAU0gqJbc+qwoO3x3DMVDTos18MO9h1fNDNCazZwy6ONJpMI8eTVyKCkXVn4jyPZUl5BqyRXJtehyvPdgekg== 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=MdnCcF8v6OtQtIh1E/eWEv+HBPBaOa5Hy4WibfBGjxI=; b=CLwe0tleyEcU8n9Qp3H5yqg8Jet4k5hy/FMw1kpKJLFkp9TNClnJxyMiQhcyeDsMvI7eQ67QDjkVgvHQcgy7qAXmmvlBbHYQEN0nS7u5pEg72b7ULWZTnDp9X8ZnZmMzHS+dU9bVAWdtn8t/42VbThyvpDeReJJz7rey9SiU/iw= Received: from DU2PR04CA0206.eurprd04.prod.outlook.com (2603:10a6:10:28d::31) by GVXPR08MB11010.eurprd08.prod.outlook.com (2603:10a6:150:1f8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 14:08:36 +0000 Received: from DB5PEPF00014B8E.eurprd02.prod.outlook.com (2603:10a6:10:28d:cafe::2) by DU2PR04CA0206.outlook.office365.com (2603:10a6:10:28d::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27 via Frontend Transport; Tue, 6 Aug 2024 14:08:35 +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 DB5PEPF00014B8E.mail.protection.outlook.com (10.167.8.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7849.8 via Frontend Transport; Tue, 6 Aug 2024 14:08:35 +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; Tue, 6 Aug 2024 14:08:35 +0000 Received: from PW070M4K.cambridge.arm.com (10.57.67.155) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Tue, 6 Aug 2024 14:08:34 +0000 From: Matthieu Longo To: CC: Richard Earnshaw , Richard Sandiford , "David S . Miller" , "Eric Botcazou" , Jason Merrill , "Cary Coutant" , Matthieu Longo Subject: [PATCH v1 3/4] aarch64 testsuite: explain expectections for pr94515* tests Date: Tue, 6 Aug 2024 15:07:43 +0100 Message-ID: <20240806140744.1082602-4-matthieu.longo@arm.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806140744.1082602-1-matthieu.longo@arm.com> References: <20240806140744.1082602-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DB5PEPF00014B8E:EE_|GVXPR08MB11010:EE_|DU2PEPF0001E9BF:EE_|GV1PR08MB11004:EE_ X-MS-Office365-Filtering-Correlation-Id: c1235014-edbf-416b-ac20-08dcb621486b x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026|41080700001; X-Microsoft-Antispam-Message-Info-Original: q2/wVi8O35OF0LztlVrNgPmSvHQUjW+7v+4VqDI8BXrUduDCWfqyRK04zrvZCGq3hJO7R1HJ+gL6WKccVegD9DA9QDmG2YrTp2pEZ8kZyrY5Ie06JBy0rk1+MPrG1mHyLM/52Bx9nD9tLOXbkkJ3xlaC/WJHfhQ+hCGYjB3wxDKMqj2Q2Ct4LMmJze4ZF+aCJnUuidQ21YX6woU3EodX/w2teBQ5RbLByb6hp9D4N9js8+SEDefMDOFSXEHAx+etv2KW0ESplv8Is/TQQK5SCGjIoeNVraiZXvqNqBtYtSEK82efUalPM1y1VseKtjdVTJ8xQqVlKJQwhDHT7WoqzAmRha0TqGqIhQu/FIZ1TADYHYGOVZFplNla4K9eJxD8PVwq//sOWZecxf6a9F3kbjFOGFuU6AyC3NV1GqEaXLgRTTctDPV1d+8u1tmxqMHNjRrXES3XLVknFvBRx5EPCNuIB25fR/wN9c38k3ChDa96+QCE4pXzebTZk4M/HUVp4I7lqV9XMKzFiPv6C6zgXYaOXFu0oSRyI50Vcy6UbdDdn2WLts2B1223bucytEJwMIaXjuzgVhrsD6EF3myyEhVub5MUmu63trHmH/uWFjIv+xQihQEqZ8b5gTolztwlvrg8Oa4hA49nxaiQUmEudPlJIsTyL3frGV9icZ91EDu+OiVKC6v2U8W0uVCckvj2vEgX0SpHN+hiP6x+NcCskg36rBE1RhVn90dOl+aN/SlZvNrwVK7g+yq6p0GwOGrVBIx2h1Op3Qei1cpiWQSmU4HFgTeqemZt8Lkwz2NC0khXD1JjnS8Pmw0rcklUR/JY7F1lbngzSGb9uXrFBdwACTetL5uPxpGaKcQTvCyA8/aSvNC7UkggXCGGd552wgOS/SVJUozEpVGtiwYY3EGokOJ65H2B3SfEjXGjvZZ3nfnphp67UKvxcrB5dR9zKp+2ule2BWQ8nctf860cVhIlpTu9BcV+xJOtXt+CofiLAikRwkd2QIkd15OSVtFhF12COhxWuj8HSBFeeoY30gf+dmfWvD6N/03sbtTQ2Hr30Xf/C0RS9TI2D6lq9nnpMxO/21Qm3epCXNysepv6reWmLYweA88RP7Gryt6NdkA64VCXfpoou1NYEmyCveD61zR9l7uK/yPPp+GBLJg2/gVPWaLU7gvNvg+uyvoRbpdwGp0u5oddlM7751Wk7Ui+i9AtrXLrEDkEyzuNyc2fmYnmqGCDBcXPEyxVhVbhjhjaUK3UE7ZSfIbHU2afz4lQtfs3ZiEroVJziPO/WuyTOjtL7XRd/8yKhOOZvOQMEyU1mqXK+lGZ48DCjXS4eJVdI8I5Z4lFqJ3zoL6D+2IymsXUHVbryGKuODLlf5lM9wFMlZ86pUwfsoTL83dHR6aN6oYwGB03qmlZI4pGegjtbmcC5qoy0TE4Wvlt0jcrXCAUMmdTBuYXQpL3ki4yVpoj4N34M7F2tiPiBFwBgxOi9YD79A== 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)(1800799024)(36860700013)(376014)(82310400026)(41080700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR08MB11010 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:28d::31]; domain=DU2PR04CA0206.eurprd04.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF0001E9BF.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 790bd0f1-9343-4e3e-3529-08dcb6214333 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|35042699022|82310400026|376014; X-Microsoft-Antispam-Message-Info: 3hmktQYH588XIPnyjQkc9rfTApqa1FzURbhsk5QCob5WNl1PbHUtP+1aQkj8iVT/6MFj/5BG7tzb6g/S9oH9jNfWx+JSGBPTOlMR1esppYSBk4o7FXChLiEM1g1R4VKYW24zJbKkhONWHH6VjhBJTinelgJPAP7VqsQMit6z57XfAq7HiVp74qotMyCQvydNzJ+G6idY7qdKZ3dx4DE5waKT5iTS3iJT16m4B6yvFPO230FitLgWk00Ro6eu1uK77SvCCu4OMmrX/eNyIstl/2TnMcbkDWS3/v5sWcV0HI9ccVLuFcGjtqXN527e5XxRBanPnIS5V+OXWRrUresZpJaMJLH6ecnERkykZliROUXf9i95BlmFQcrRqFBtuQs7uRvNvhBIfvsIEIP7wLqmoRVphZpinrqPCuVwbBq8plMgM20Jtwe85uOurD0W4Ab+dowCUBDmcePbrJnBDleaS/VKVgIj7T23D6MKCoM54izXih2O6ayj8B8IEohQXyAfx0RfdLZ68FfdcSyCjrVeqTPuPi/rtjiBiLypc1MPhWcn+5888zsGZEGfRsYD4FwclcVarmuU12camsAxLxaabvyvMXfe5wDZZ68SEGWFecSHhAYNArt9/cjCwPLM/1Ma3t4Z2/YQZTaJvK33CUhzpDj87Ly2ZYZakYBaMCv2MJCAWRfjASqUZ84HmlzevTDnlUdYEWR5L58c+ddWlt011G9t7r7R9RgTKpTgqP8AZz3F+jSuVD+3ypD3qp8m0Jk9Pk8+7dWGHZVIVvibaXZagSWaI5N5heS+6+iZHlHgPf/D0H2NfuZgeoDE1kWj4BGeJYU0Iy5jZNJCQbJ7CfwI5flWqpGyGXef0YRNH5gmGzn59idhSTJkjjDThva1K5qVS5//UJnc4T2s9G9I/bVVcz1Ep2Nx7m9UtZ0JVfxjI3gBFabvsnE8+adF21fkWqmTcJKhsEWNkart1zs/JxQQZbTB57BMn/itGfOQqVtnEgQpiWJF+1Kefo+hvhpMTgjf4zM06fIhaNGRBCYgaJ8jI+OA50BE0KcmlcQiT36LDwTpcKT9IRjGNRfuNUb7zumne79a19auSCZcpgMGHGywTLPO8+4i+R0uSSRoQOUo0iwMonQpBxD0ScgFY2JU+JbfKucl7+C54jCZXwPe2xyDQDlKg9tuf9Ey4fHM5wFcT88JcElVX8GKeHnU1jcGEVV6bhwN8FNmB66vRIOkiSB6IU7tuvhuzFLDeauxA+ZyfDf9Sv6SoM0vYrU9cIXb5WxLp+HM8B4GCnIMengx51buBO3rcesheM9c/4sqO8yLOUEVSuuh8j1A00yHJi5de92EB2KCYDbIoU03wSQ3QIyEDvzq7nRTY/BAOrWNVSG1PUksTFyyxP6aybNKUxU/d+b6kaurUhVqTD18fl+YDZ8yKXtbmgnV+fMmQ/2nvrrSQNIu4WOUDuioWJo2INfzt+jf 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)(82310400026)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 14:08:44.4803 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1235014-edbf-416b-ac20-08dcb621486b 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: DU2PEPF0001E9BF.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB11004 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, 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~patchwork=sourceware.org@gcc.gnu.org gcc/testsuite/ChangeLog: * g++.target/aarch64/pr94515-1.C: Improve test documentation. * g++.target/aarch64/pr94515-2.C: Same. --- gcc/testsuite/g++.target/aarch64/pr94515-1.C | 8 ++++++ gcc/testsuite/g++.target/aarch64/pr94515-2.C | 28 +++++++++++++++----- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/g++.target/aarch64/pr94515-1.C b/gcc/testsuite/g++.target/aarch64/pr94515-1.C index d5c114a83a8..359039e1753 100644 --- a/gcc/testsuite/g++.target/aarch64/pr94515-1.C +++ b/gcc/testsuite/g++.target/aarch64/pr94515-1.C @@ -15,12 +15,20 @@ void unwind (void) __attribute__((noinline, noipa, target("branch-protection=pac-ret"))) int test (int z) { + // paciasp -> cfi_negate_ra_state: RA_no_signing -> RA_signing_SP if (z) { asm volatile ("":::"x20","x21"); unwind (); + // autiasp -> cfi_negate_ra_state: RA_signing_SP -> RA_no_signing return 1; } else { + // 2nd cfi_negate_ra_state because the CFI directives are processed linearily. + // At this point, the unwinder would believe that the address is not signed + // due to the previous return. That's why the compiler has to emit second + // cfi_negate_ra_state to mean that the return address is still signed. + // cfi_negate_ra_state: RA_no_signing -> RA_signing_SP unwind (); + // autiasp -> cfi_negate_ra_state: RA_signing_SP -> RA_no_signing return 2; } } diff --git a/gcc/testsuite/g++.target/aarch64/pr94515-2.C b/gcc/testsuite/g++.target/aarch64/pr94515-2.C index f4a3333beed..af6b128b8fd 100644 --- a/gcc/testsuite/g++.target/aarch64/pr94515-2.C +++ b/gcc/testsuite/g++.target/aarch64/pr94515-2.C @@ -6,6 +6,7 @@ volatile int zero = 0; int global = 0; +/* This is a leaf function, so no .cfi_negate_ra_state directive is expected. */ __attribute__((noinline)) int bar(void) { @@ -13,29 +14,44 @@ int bar(void) return 0; } +/* This function does not return normally, so the address is signed but no + * authentication code is emitted. It means that only one CFI directive is + * supposed to be emitted at signing time. */ __attribute__((noinline, noreturn)) void unwind (void) { throw 42; } +/* This function has several return instructions, and alternates different RA + * states. 4 .cfi_negate_ra_state and a .cfi_remember_state/.cfi_restore_state + * should be emitted. + */ __attribute__((noinline, noipa)) int test(int x) { - if (x==1) return 2; /* This return path may not use the stack. */ + // This return path may not use the stack. This means that the return address + // won't be signed. + if (x==1) return 2; + + // All the return paths of the code below must have RA mangle state set, and + // the return address must be signed. int y = bar(); if (y > global) global=y; - if (y==3) unwind(); /* This return path must have RA mangle state set. */ - return 0; + if (y==3) unwind(); // authentication of the return address is not required. + return 0; // authentication of the return address is required. } +/* This function requires only 2 .cfi_negate_ra_state. */ int main () { + // paciasp -> cfi_negate_ra_state: RA_no_signing -> RA_signing_SP try { test (zero); - __builtin_abort (); + __builtin_abort (); // authentication of the return address is not required. } catch (...) { + // autiasp -> cfi_negate_ra_state: RA_signing_SP -> RA_no_signing return 0; } - __builtin_abort (); -} + __builtin_abort (); // authentication of the return address is not required. +} \ No newline at end of file