From patchwork Wed Sep 18 14:05:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 1986831 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=RyKqPZRh; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=RyKqPZRh; 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 4X80pV0bylz1y2j for ; Thu, 19 Sep 2024 00:07:28 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C8D29385C6C6 for ; Wed, 18 Sep 2024 14:07:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20608.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::608]) by sourceware.org (Postfix) with ESMTPS id 90501385842D for ; Wed, 18 Sep 2024 14:06:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 90501385842D 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 90501385842D Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::608 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1726668418; cv=pass; b=sw8T7cvx81Bea0UCnzy0XX+I3iDo+27KL3B7kZXQFf9+V8He7Cp2ritdv4mb5GgKWIsm8rlz5A0c5k7ywIT5hlzoeQ7Q2grehk9OOjBRaKGRrF3TTwK0amH9QVo8JHIm1SIlB4Gba0fM0ordqMsDTqkhbuQ4RMEm3S9JNlkaUq8= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1726668418; c=relaxed/simple; bh=HNz+yMtAeKq65fG/vAPmLxTFyCQk9g5ipiNC7laFnno=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=qTDbvzZgI4x3zGKQgJlFsmG8CC39sAhUqFCPpds0FrV/pQ+nGgc+cObfyhHFOEkbbWRJMF+QZ4d03LKSG40YSDV4evRmfCCrECSF79CSDBZSJVf5RD17Mw+YqJXH4AQPqBm5cdK811c0Y/XiIz484p/0gQyyvGnoHm0k3lHQjm4= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=rMAQLKvErVt4rqqmqKSHztWWIC3M2VB4PLKrhMSEWHfBBjL5+YmjO/cMhmhfBYrfk74MzQOCPT+pNSh/ya77DDbwJQYfqspar8SLuhBltq200ihHAN3zWMJO3w1f0/hBeUqbx1mMBcq901DW4DO3jCGRq6t4som+VGXdSpZNg9YdFBb5l66Y3lhGqgN0CfO4Deb5VdcRjlxl8WrXTtVc19K9bcliWWHRQRo8G9U4NZr7trTcird4bb8lqcAu/khLa20adiEJPRcU+GiA8fAO7qDX4stPr/ST0giNAkne07yeajBDxVAg9J6atQ1KpIb3ZaGpvaWjiGdpxnZD5lFvYw== 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=SlStQSWRJQlg0GDl5FdPDqjCDhUrQS3IjUlxoI3E2FQ=; b=e9XXH9esf/9OpJXuTu+RV2yVbIAw0zLOnI0ATdkpC9Eds6KDg4YOOw8+ixtgxiq6GTxaaCrklD49Hpk/2JyKwWpnWWz3p6vLQiNIv0/E5R5XTSK/Ib8SEC+KTCxgEUmV8nN3PL0swdGZZMFagE+STL9+OIargG9tu3ZF20xZzQ03ELtvD2xFRg6F6pO3ikQZymLokKx1yiiNh6SQyIaY0DhBDp95Txw97rszD8v3ptqe6N2AaHchDLjDHv4CfVCOowLk6K+CziTuoH4Hr5aLhnhBjiQQITXmQgC9f/wIQT0TsSD2I7iQMZVnEgUpMpSoSvqytLKsdy4T4OaqlN450A== 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=SlStQSWRJQlg0GDl5FdPDqjCDhUrQS3IjUlxoI3E2FQ=; b=RyKqPZRh12jcEYGru4R4X/FqBL9jVqG17RfJO6+Wu25O9H9zJls364yxY9PXStxGTFkk9q/QK/rQOI9N7soKybdXQ9PYIGwx6zSiCuYjdk7gOwaORAghoKwEa80KLp6/cotoPf9/39Py7iVXa07mPwFqhFSoigLFi9pw4REWuwQ= Received: from DU7P189CA0028.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:552::33) by AS2PR08MB9198.eurprd08.prod.outlook.com (2603:10a6:20b:579::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.14; Wed, 18 Sep 2024 14:06:53 +0000 Received: from DU6PEPF00009526.eurprd02.prod.outlook.com (2603:10a6:10:552:cafe::29) by DU7P189CA0028.outlook.office365.com (2603:10a6:10:552::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.25 via Frontend Transport; Wed, 18 Sep 2024 14:06:53 +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 DU6PEPF00009526.mail.protection.outlook.com (10.167.8.7) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Wed, 18 Sep 2024 14:06:52 +0000 Received: ("Tessian outbound 0881e36152ee:v457"); Wed, 18 Sep 2024 14:06:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9d2ff856a34abe83 X-TessianGatewayMetadata: +NB8bxoPBUeDptgYQvBXaYP8jw6I0GCZkZFfm74fkl6UM9ZGi2pKdFYG3QsUZUwEICNgXER54v7SQpfXy+gwUBfiOal/p2U87Ss824XkuIrk+7gBVJpOOCk4loXVzsjnGi5IbRlHVQvcS9/ivthgXG+ed+MBxRBxjQM9kZJiyI0= X-CR-MTA-TID: 64aa7808 Received: from L4da5b89b2819.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4B8D5121-3A71-4495-9001-F078F56B0733.1; Wed, 18 Sep 2024 14:06:45 +0000 Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L4da5b89b2819.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 18 Sep 2024 14:06:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=p+oYj3zRalGYt7kQ8CYN8DmkEo+8/SiB85dW74hOIIqfeZqG4aYZZboJ65wG8Zg3W1QF3dDoHRNanRA03l64pXQVGicNIJa2D19+ozE6M1MVB3gciSXKEV1pGFFwg64RcmFoyws2r5aNuh63KLMG9I6/Yfb/cBQ4YbWyDKcUE7lPPMxiB/N/SfRpxRLfDgmxz+F9vGLJFd8qa53h69LqQe6ikOx/P3g9UL/B92lT3fZ85SQIJkVP//WcVy1mPGiYlPSwJkRseLBuB+HROJAhhUAVbv2t/OYd9hPzB8IgPeQY2Vy+58L6wKSUlNHNdn4ESVymLSwWfQG6/JQ96JdbWw== 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=SlStQSWRJQlg0GDl5FdPDqjCDhUrQS3IjUlxoI3E2FQ=; b=Eut2QS7dkMxRewsqptM01tB58AWsXZcurTnQ42aYLMXgJ2NB+Ccd0dkPz+1zrS095yCgqg7hM+hv8EfI0OqvzEJI1hgEsGLezRBT546NnJZ+VIrjrd3+c6MfxbNKXvuAI8OAjbWbCg7mGRIRxFymVDMiqzBBhvWa8fzEEeJYpk1cU+DZJ/xj+3efY7G9zfOnsofQjDmSFtwzimiemLlY6xrM6yTfrX3ColBRmlCQNjGQQZ7rCAdGNSNvOAsazzHYzz+JRsbmsLpkzoD5q3ymvksELbaafPM8lO3nXWYoNzBfeef9Qiq6wkk5QM6Zw+lfzvePg7VBSxczYjuaXgCoRw== 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=SlStQSWRJQlg0GDl5FdPDqjCDhUrQS3IjUlxoI3E2FQ=; b=RyKqPZRh12jcEYGru4R4X/FqBL9jVqG17RfJO6+Wu25O9H9zJls364yxY9PXStxGTFkk9q/QK/rQOI9N7soKybdXQ9PYIGwx6zSiCuYjdk7gOwaORAghoKwEa80KLp6/cotoPf9/39Py7iVXa07mPwFqhFSoigLFi9pw4REWuwQ= Received: from AS9PR05CA0098.eurprd05.prod.outlook.com (2603:10a6:20b:498::22) by AM9PR08MB5985.eurprd08.prod.outlook.com (2603:10a6:20b:286::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.7; Wed, 18 Sep 2024 14:06:41 +0000 Received: from AMS0EPF000001B7.eurprd05.prod.outlook.com (2603:10a6:20b:498:cafe::a1) by AS9PR05CA0098.outlook.office365.com (2603:10a6:20b:498::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.25 via Frontend Transport; Wed, 18 Sep 2024 14:06:41 +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 AMS0EPF000001B7.mail.protection.outlook.com (10.167.16.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7918.13 via Frontend Transport; Wed, 18 Sep 2024 14:06:40 +0000 Received: from AZ-NEU-EX06.Arm.com (10.240.25.134) 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; Wed, 18 Sep 2024 14:06:10 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX06.Arm.com (10.240.25.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 18 Sep 2024 14:06:10 +0000 Received: from PW070M4K.cambridge.arm.com (10.57.76.20) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 18 Sep 2024 14:06:09 +0000 From: Matthieu Longo To: CC: Richard Earnshaw , Richard Sandiford , "David S . Miller" , "Eric Botcazou" , Jason Merrill , "Cary Coutant" , Jakub Jelinek , "Matthieu Longo" Subject: [PATCH v2 3/4] aarch64 testsuite: explain expectections for pr94515* tests Date: Wed, 18 Sep 2024 15:05:34 +0100 Message-ID: <20240918140535.1538392-4-matthieu.longo@arm.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240918140535.1538392-1-matthieu.longo@arm.com> References: <20240918140535.1538392-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS0EPF000001B7:EE_|AM9PR08MB5985:EE_|DU6PEPF00009526:EE_|AS2PR08MB9198:EE_ X-MS-Office365-Filtering-Correlation-Id: d0d04118-76a5-4abb-9629-08dcd7eb2584 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700013|1800799024|376014|82310400026|41080700001; X-Microsoft-Antispam-Message-Info-Original: 3PhY3gq5kDpOxMmx9F+8qVG/4b6qfVgsz1jggbl+3hNmEFWFCInOjfTP8lZIyWpzR3nFHwWYbvIVkm7EFht+RA0+rKeiZ1BW/fJTD1L7iUmDrxsbuZVKLUgJR0EYbDE8llWVmL2ehykBbESKBX7iAb5fBuVgkLoqWRRrW77SeeAYAOCFCPAeLsAiwCxI51bAaPeBOeSlTI0OiqlD/ZqnznQDySfiw2mF+klIuFSEJpOH6dhq2II+WJZD2F1eHZc4FmBx7RaQgZT4uaYyDtXpFNe0QPwO+OFYJz+wyHCQ9fnZEWsf0d9mnyZHe/+qdXoNE1wzbdR+CQoyu4wegl06JWBpTbD+HsmqEtjs3bwE8JEhMhQ0NlbULRa9o7JSXbOSD6Yxxc5GzCAZPHmNrEdpfDkcm77yAXbJH6Jhgon0n/Y30E/cMER1zFj8dU8S8QvGSThmN3/5hvm5IetQ4HR5h0B4Ghv8xvEIW+vBGH2gFZ9Q/SDcLTxx/gvd2IFfyyAF3taG6zgJ8djC3BlVb7t7Snidsg8iU1VZGkbl5UhtaHXBY0Yf4dhNZhYruuvHw3xF0xSyqs/qQtAS7iKp4DexEP+1PomYhequ+rZFQ8HU32TxadgK9zUkghoMp4fBxaaKcrzV1WgiC7goQ3iLBDueMtYdVjFqXT7IOxF7blNJDtWBTuI+beBEcM1pnE9X2ObNziuXoITZZ7M+ayX475oc4arXzUB0K5T2HJ4ngGPceGvIEwsZwS1KJ1UpeaZFiHZqEooa9YzheObU1Guff2NDYNjWJgJ4Zw3qNqlHPAzu1RumP+wJzhUejxxDreMd3qkd3ovJwfjUTQIfaZm/65Xon/EWht3qism+Xd4hVs9cGdxZDEfnJK+6uTIdakVieqoJQI6uJ4N8icv5HUtMZPRDH2Doyew1uwOu1ObdHdkdaQT/oBKWmymhZD3LOw4wd/irL6bJ6jDA8E/iPUkKcW6FMtILx/fN3h0jKb7lmX7V4f7bcvNkxVA0Xz7LYwR/0lnbVeN8uzOdfWKGtoeVMrQP3o5Xzdu8/TtpHZ+vqbgI7TMT/S+qw3IPrKp4VA+3jlGD/7DmZ5UIHbaSSHoarpfugmEdoFn9ZuApV29c/BAxlmmguDL146viyE4TSg1AmpIU3iyx+8MynpzlVac2nXoIaPJzgfplI1t3HDKehSrBdIx3TFOL80B8ePEQc7GarrKhxvL0ck3/jU0v75ifAyeABxlP/MZ1LVXZftZlcMu0C9VZHrA6+XtTpyE5ghYSowN+j/WO+V1wV1V6JJy1fFQOFWPT11XhHTHbAsU4E4LW4mUeq6vzupVnuyqWuxReKOuP4hlYhH4YqQnPNz8q3LdbY8f7uRtUKdS79oU5qf1RWqzNHJZqirG/iyOL6rzMIRRU7AW+xMrEdMHPAgTmxY2P6WaEMNZlAptENgrasfKAImqcsHIJY0anavh8jRnsw/AW4F8KsxHvS8qrtpFM4ycaYg== 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)(36860700013)(1800799024)(376014)(82310400026)(41080700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5985 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:20b:498::22]; domain=AS9PR05CA0098.eurprd05.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF00009526.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e3481cc5-d029-4200-9b95-08dcd7eb1e70 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700013|35042699022|1800799024|376014; X-Microsoft-Antispam-Message-Info: N8Q2ERThlfWfU/PYg6cAbylEayin+6GDUcqzM1ys/MRHdowuziFvKuXTI/3G9kDssOim+PoGZRnyH03gun4813z8c5Q2cIWb54NjEc2DRfoJhDw42OKyTaEzQ78vkkerkyFiwHw5+7WqWV8JlxC+06LTuwfmsKk6qNeLy5OToAacdyiqeZT9Qz3lge0B7WasFtFho6kgSrCSf4rf42FOBzqvIV6aFTxH7rL1LBIqk3gRbr9uTfPzmEoPT6+xYnfP28/22wloQZtarmPWeQz+NsboNE1QEvrAC8x7GUMFQ82p682rJuqQ5AwOkeGi6aSg5u4rq3PwTkZy8+Rb1VrDmMJ1VvTmWlbB0szZodtj6r6vDIaHmhk7r5NNXfwiJIKyETzavt+j5Fa7otmYK9icl+vsNNyh8J0cvbT0ZNr8oznZg8VtXVwveblN8UIS8txSKcxo8WCPCc2CXTmjQjcnXAodnLjqavfZnZ+ZwY9W5qe9EAE1b1pKTufTML1ybvlHpSGzgqSw04QReZX9+vB8Zn76dw6u+5tvskJ3MFBx7K+cZdRllYGYxf8/2GBSzkpTwO6ZuTA1qeWvdZGbvzeha3IBpZmPo7Bby4FNaoq1cGr7eKiwd0zuRl5FiA9okTC+DSTp9BKmrrkHqCAq1JFJAQodmk5fPB4zo6qu6oI4g0JZxF11MmIjE7ez2q2/QsDgEXUZk7yK7AI33pnOfjniEVw1EGvbdTuAz0TcjmQSG5irdyzCyDV+ftJBIhroCMYKqNCxgr5ljPcMrrXHXIHVO4GRXuOYLRzNOYZARCA4LxYHaqNq1wvpTabrvVCqAm4pAklG77EJf4YWY2WpOKs1Fu8fJO079uR1qobd7Skb/q5iB3SO9aF0ZqAUbchxnX+a0p/35LWvdYAcuMCzWJDfTFIprQr/Pjlb0f/aiRzGVrExzfosP/FfNUCDzSBbijLsnEFW6kWhvzvzGjpc11YCjs+SURAQEkk7vl6JpkSW/AyD2Ul2MKPRzxm9AKNzYxYD5t6f4CxQZb9NU44rZExTs1pyTR2pCnI0WlSpmExS/1vUITFzfNqoTxXC3gHji89xpC1x3SZndkkd2QEcV9q5f6KbgCm6f0QhqId0YnJJ5g4uWpc5X2SWj1QVc6T6xqsk2j0wgMf5xvavGYz6t1MWZSmSXoi426y/zV1Kc6X5tSOheUf34yZPLTUZ/BT2xF1zNgqopQGNgoRAQVKOJONmhns9fv2TWOR0n57APY6J0jGRxIebse0+9X6AoNdI30ehFbvl8gjo+1ETYDRdYI77q8FFSjwJvTMepp0wq0dXZKbQ64bu6ArVydo8uHRSGsa+IoJOzbof7NgUXEhMsYkEGERnTgugcd7+YAWMrCUrtt4Uc0V4hJ5LgwX2v2s30R5pWlPeisCDk+W424PASDNvyDWbBQK9su4WsBClZcykyhFC5zhrEPHz45Son8mmMj+Y 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)(82310400026)(36860700013)(35042699022)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2024 14:06:52.6187 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d0d04118-76a5-4abb-9629-08dcd7eb2584 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: DU6PEPF00009526.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9198 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, 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 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 | 39 +++++++++++++++++--- 2 files changed, 41 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..bdb65411a08 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,55 @@ 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. + * + * Expected layout: + * A: path to return 0 without assignment to global + * B: global=y + branch back into A + * C: return 2 + * D: unwind + * Which gives with return pointer authentication: + * A: sign -> authenticate [2 negate_ra_states + remember_state for B] + * B: signed [restore_state] + * C: unsigned [negate_ra_state] + * D: signed [negate_ra_state] + */ __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