Message ID | 20240117143703.2998316-1-szabolcs.nagy@arm.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp951030dye; Wed, 17 Jan 2024 06:38:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGY4+aGdr6JJoa/6Wdgfld7cGixBR8jsI8CHCU03WZlg9U1S93pA3e1lnHqRomhPPuil6b X-Received: by 2002:a25:1f42:0:b0:dbf:6c75:b5a9 with SMTP id f63-20020a251f42000000b00dbf6c75b5a9mr3702764ybf.86.1705502300735; Wed, 17 Jan 2024 06:38:20 -0800 (PST) ARC-Seal: i=4; a=rsa-sha256; t=1705502300; cv=pass; d=google.com; s=arc-20160816; b=1DQyKHEYGUGDP7vKoY1NbHk3IG6Gb6OzVq7gmnvz0SmFAXSDmT7q51QG5EcW3Uk4+u isDL8Gtcvm8eFXGKgNQ8omyy6Qu2/y7rON8pP3sGZMExZ/B6p7xA3YH+IfxotQXPRAHs y/y913EhZGh2wMs0xSBaLCYYM+0qjoJ4XFLklMGX4VE4SqMCcwuI8TpRw8pQcaiuSLfV L1H3YEV0pzc6TRBANXp/q/puodYDyNGkG5Djdzm9+rNpgE16RlitEaEqOduyS9NUZs1u umy9hcCyxHFLy8DFBLXSxG5jY2RDl5qgAtmUicFcqubX/rEE4MS9YPtzRWaNgtawHbQb oeCw== ARC-Message-Signature: i=4; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:nodisclaimer :content-transfer-encoding:mime-version:message-id:date:subject:to :from:dkim-signature:dkim-signature:arc-filter:dmarc-filter :delivered-to; bh=jdG4jLHuOIAB7r49/FgBSBiIqRT1fMYq+8qjfudNvWE=; fh=gk9A5O7Gbglvz1MjrRQ4hZ2i3c68kYkpOZJg1emXh+g=; b=XYk/Qmp+y9PVqJeDYCDR0/US/5lRe6atGE1eIy5w2x5F5QDAYCd3HPp9Wfmwt6BM49 cWmvaBZfIqkJ0y7lmfCQ9SMP3GxdFCxc9n54Xow32Kmeh3uDGRmziDSkVtu10l7ePOZx t0nZ0UjqUUKfuLp3VcCe4dMIDe74RVuqumcSh9er26RMustjXXqi/NZxmkZu8fyTDv4C 9vpIkY9K2C/EZJ4sCA21rl07Bf/KmU5iTUQ1Jut+oRFYaB2imqxSJoIbobQmL37PA/Ya fjkdXzlmwt6MdKpMUJZws/VXRffXPb+4EWhExvsMD1PDBctKhjUsa5LOQQU2U3R+hJvj YMvQ== ARC-Authentication-Results: i=4; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=ufZwd47L; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=ufZwd47L; arc=pass (i=3); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gg9-20020a056214252900b006817ece8f92si929932qvb.431.2024.01.17.06.38.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 06:38:20 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=ufZwd47L; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=ufZwd47L; arc=pass (i=3); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 60F8B3858425 for <ouuuleilei@gmail.com>; Wed, 17 Jan 2024 14:38:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2079.outbound.protection.outlook.com [40.107.13.79]) by sourceware.org (Postfix) with ESMTPS id C3A9E3858D33 for <gcc-patches@gcc.gnu.org>; Wed, 17 Jan 2024 14:37:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C3A9E3858D33 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 C3A9E3858D33 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.13.79 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1705502247; cv=pass; b=oAlpIb++cAgyEiH/jweyTt5jiPOYihiinoKVXPU3gfJXnKLoRV8Ef2dOp/Den2osrRyGRxn1thZhqD8UWS3utx0Cpxt9mel/ddKqWciJwGYbp5aHsBBKvHz5HhGh+/ktNq4RTDySKTGwYt1IVmKUT1jDLby534B7YUa8g1cmlwg= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1705502247; c=relaxed/simple; bh=EnFSTNTRXOS1Xr60TnfOzNl0c7Ob7NXLaaPPAESrbAk=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Y4O873E2hBE2Od4FKpWUKiuWiN0K0rxeKcn081zinJVCPvW+RoyLzd0YM9t1eL+3ZR/i2gs2v+WtGi5QYJ9hBcFBHRvrI3PPlH41deLdsRJ6Dxo7bRDRlIiVihP/iiyFPa2nN5UebLGOybaHBynijiFXxZ/hrd3deS+i48kbuZc= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=in83STHnel0Shnfg73vGv9aiO+P5B05SkxCri/kCHUfcWKd4L29aO7rdzFWNkKsAaRAB2IiZNNr973ZoKg4KlB4VjxI7/XH8/d/a6aRzYpUjDjSxb3WnK/Sf8hQ6SBbRBDEvkCwleEIkIy21h3XafzHYdcrJ7hXJePWAvazDq1XzYXTnunKMyIgvMORaCdkuTS6dY4u0Wt5YP943KmT3DTUmuB+tdS8fEef+FPnFD9jwuRg6w2jX3RbAewUF4nf3RrEY4LxEh7obW3BttOV11gQZYOlmtjN8vNrvdVfiywU+59RyKoEtEtg7cIRI5D0J6030C6N7u5EOiGSaC1c00g== 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=jdG4jLHuOIAB7r49/FgBSBiIqRT1fMYq+8qjfudNvWE=; b=YEx9BtOoNJI5OkADMZpNqY5iMVuXR/v9YG3w+Aq447AIMcYUBVOjoLqeawCg0IpTMD57NTPyQx4A1YiKL8RQVNfyZsl4CiqA59RzQVP0nyMxluyzdiAS31kHBpvNW6xWxKbgstNYj+B3R8N09T/yCZndxjdsHd327jG+0k1rP6r4JzOYfkhQWZsZG4Jtvy72cQ0Kr32KzIS2op+IPkoRnhVDfYdGiU8eCCko6ETPxV8IqZWtHFl9X2YG900l3t/aw4+gueP1ntIxMtSS854x1UEsLSNOfCHNOFGaeAptID9oDmK5QRR8HSxHHwl3iGqGLey0tSRLMwXqcSHQ9JGUyQ== 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] 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=jdG4jLHuOIAB7r49/FgBSBiIqRT1fMYq+8qjfudNvWE=; b=ufZwd47LVbhOvFdJvkxfbD8I8N12Uq6YndVE6IGEV7a1JDQDTG9evjLbBv0ZktZw9BoH6wGuUF8GDczuGy0HNSEXdOd6D7j1onHKWukvBtLXonkT567ztjLS/EmGULTSwZOWNKcFW1cTHEF0tVluKd6Ivl8H510oKbyjSJ2vW8M= Received: from AM0PR03CA0053.eurprd03.prod.outlook.com (2603:10a6:208::30) by DBBPR08MB5897.eurprd08.prod.outlook.com (2603:10a6:10:203::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23; Wed, 17 Jan 2024 14:37:19 +0000 Received: from AM3PEPF0000A799.eurprd04.prod.outlook.com (2603:10a6:208::4) by AM0PR03CA0053.outlook.office365.com (2603:10a6:208::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23 via Frontend Transport; Wed, 17 Jan 2024 14:37:18 +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 AM3PEPF0000A799.mail.protection.outlook.com (10.167.16.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.16 via Frontend Transport; Wed, 17 Jan 2024 14:37:18 +0000 Received: ("Tessian outbound a064b9944658:v228"); Wed, 17 Jan 2024 14:37:18 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 81d824f5c7794d9a X-CR-MTA-TID: 64aa7808 Received: from efb741250af1.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A12BFDD5-5DB2-4231-839E-BEC5DBB91EE0.1; Wed, 17 Jan 2024 14:37:11 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id efb741250af1.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 17 Jan 2024 14:37:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iY+E7TL5Pybqcl1HK0q7NWxdmlvpPVJ2L/xzvOK1bNE863gvpfWRAQEvAwKp/7m+iMRWGPNG1fq31zRhx9azvNPswdWBpsruh7bHcj9ynjmLLPhXe9hz93EQIwuZFf4iJjy9TqcMrUO5lumYKRvOI0d5k/eK9zMMKIJ/vPK/pQHq4YdpjHWKmeIu4JxfbVdZTKFGwjfl1eroF5EnBsrQT6jJla80dJrl96GhTAX9Ej/ZCytFx0yb9qE7aR1MYx6DdIV/dH9HaCVN7PqI1QqwmEJ8neRzCiJl/BLFiK9XnAasO+z6FuRZ6cT8ofCprTeWWaWInWPixstsE7uIYry7cw== 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=jdG4jLHuOIAB7r49/FgBSBiIqRT1fMYq+8qjfudNvWE=; b=Is7uu/29sH1SW7Z0MGfNiqy51FvrbtLUhNkFt+8GB34adr5Id5bJ8LUbnbUVX/ui7mSKLz/RItBd4/RsWbV0whRPDus5E4pQEAmeBNl8Som7gKFmudfLMC7MG4YAFYWoaaHbmm9vTDl6xcE/cm0uc7flOp8Au3mfHpMu9fo/L/lAMvg9Vr3SKLKEEAWNgFQF8dWQK9PguM6LYs3ziV554AapkpHCLXSih1ih7kmWV1gddR0WR4A4SDPLBxQWuR4tpWchs8WMUdZvlzZMJmNvTiMKptWG/fnDdlaR7kXs+aHgmjkhZJNPvRAQPJ63dzP6GcvQHlTq+Yv/jEjyBe9O2A== 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=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jdG4jLHuOIAB7r49/FgBSBiIqRT1fMYq+8qjfudNvWE=; b=ufZwd47LVbhOvFdJvkxfbD8I8N12Uq6YndVE6IGEV7a1JDQDTG9evjLbBv0ZktZw9BoH6wGuUF8GDczuGy0HNSEXdOd6D7j1onHKWukvBtLXonkT567ztjLS/EmGULTSwZOWNKcFW1cTHEF0tVluKd6Ivl8H510oKbyjSJ2vW8M= Received: from AS4P192CA0036.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::29) by AM9PR08MB6194.eurprd08.prod.outlook.com (2603:10a6:20b:2d5::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23; Wed, 17 Jan 2024 14:37:10 +0000 Received: from AM3PEPF00009BA1.eurprd04.prod.outlook.com (2603:10a6:20b:658:cafe::76) by AS4P192CA0036.outlook.office365.com (2603:10a6:20b:658::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23 via Frontend Transport; Wed, 17 Jan 2024 14:37:10 +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 AM3PEPF00009BA1.mail.protection.outlook.com (10.167.16.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7202.16 via Frontend Transport; Wed, 17 Jan 2024 14:37:09 +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.32; Wed, 17 Jan 2024 14:37:03 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.32 via Frontend Transport; Wed, 17 Jan 2024 14:37:03 +0000 From: Szabolcs Nagy <szabolcs.nagy@arm.com> To: <gcc-patches@gcc.gnu.org> Subject: [PATCH] aarch64: Fix eh_return for -mtrack-speculation [PR112987] Date: Wed, 17 Jan 2024 14:37:03 +0000 Message-ID: <20240117143703.2998316-1-szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM3PEPF00009BA1:EE_|AM9PR08MB6194:EE_|AM3PEPF0000A799:EE_|DBBPR08MB5897:EE_ X-MS-Office365-Filtering-Correlation-Id: 0cc06501-4601-4acc-6a77-08dc1769cebc 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: qRE2oj293FGA6VKUP/BbMhq2qfYgdyKzaw9e345LNDlznWovX3RR3n0oyM6mRfcreiJ99/wV6VUYSrZcamriZCCjXqn3ZjvfklbGM+LFzGgAB49FGDWjZTsMos8wcoKjpQdicdsRBuXteuMzzZowZak85EYwDZvX4Qge6c2lR0ycCye3QQLieCOUsQoLH3B9CFedLfiQkYuEhGDP8CkxhqflqmIjoLiuD2v8pwkY7P1MjzcifavO7/2gcTVM1Cm0+6x8UA+Zuop65oEQXIKco4GwrciwX8B9QaPMS71Qg6wa/YegMOUzfMbZZtRhkMsCxMIKmRN11rdkFTE/j6ZKY3QPyVA/ckQlz7TEV1ytySYwr754MgPIbcKcsqz4AsBTTKG03V8UY9CmX8Z4PfhXPeFCO2/ev4f0ZGZ9bWvY4OE/o0LXMMF0JgISZAFh3VTYYhmZqZDB6dTJIjKj3lgO56OwXgi17YoF4B6a9ApAvXPS7oZQszuDIn+fpNLGODQYIHVgDTVevcKMcCDCC0J1NMhFnZDxr+2ygUNY3otDheTnBgFgCzimmknwyVteuDeAbCwrKfvliege+C2Fkr06Fb8Z1g0QvQhMn/Zlu74W8W+0sOqBwIoe23w7pdw1KfAMEVpjTCMpgxfXKO+ef/g5C/sdUcf8Kvt6xgoF1igJYc6QtzPheneBYd0Yq0jZOcNBV3cJ9JH7oXdnww++yk6c2wvnM+hmv6Ff8oQACPH2IvqqjWW4he4xOk2VqEZ2KjbuCyo3t+lXzYEUtVLjHDxY4Q== 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:(13230031)(4636009)(39860400002)(396003)(136003)(346002)(376002)(230922051799003)(82310400011)(1800799012)(186009)(64100799003)(451199024)(36840700001)(46966006)(40470700004)(40460700003)(40480700001)(426003)(1076003)(26005)(7696005)(83380400001)(336012)(86362001)(36756003)(356005)(81166007)(47076005)(41300700001)(5660300002)(44832011)(36860700001)(2616005)(82740400003)(6916009)(70206006)(70586007)(4001150100001)(2906002)(316002)(8676002)(8936002)(478600001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6194 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A799.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 99d8fb2f-5bc4-4f16-0457-08dc1769c98c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xrs8TSKAFnyQJVI5YnGVq0jvhBVhUp6bz3SzNb6hM/NFL+QEL0V4h5Fo/3RaIUulCrBrxvPMoTL2dtSb+P9Ao+pcnvDUEFMUy+5zsYcMaWevNO192AKRCHr9B/eH2nYxVNrc+BqC+RiK3oFUi3TBaQz3MQI2IexMzvkOAtef6p0pIxNRFSAuvUTp0ksXIw9yZRjYUBDiWgoEgMNfOBU28e3g4lcKY2gsD9woCl8M5flP3bNkkAGS2TJwGG5IqaTLuR1f464FHnGPs3fEAH0cPTIyQRU9i+1lBeaNgtFycWmUfreKbqwlDyjsaiUbGfE3wqRbWZsfgR6xhUY4ikImsu/yLM69ZP0iDiR6OwpatXA+jFJFt6Geig+i9SNiOBW3gtEPsX0zeLLLUG7T4GaV1S7ovsy43X/UoverAoQ8izbFirnQTb/VDYp5fMs6HrHzMGgnJNSYA/ESbSppuTgTH4wGWo/c5btjpLsW3WkzQqy9UtkzdaFhixiTACD14ouA/DbItqnMYAtckoQGXVqkH2UfpQlHwLUz0eyebzNI+YbycMyjxOi4Gpye6LXh2/zbk8dNtTY+22304gwsxsplP3BCo6XPuB2+bFKNTJzAfC+0eHu4aVX12KV50j0s5nzc/w945eetNGuHyWwEmzVQTVOVKugMYWHwU3i1G0EE5ZTOSZDGhOwxKkaRyGfpaZ1UMI5cepGXs899TcDwunJj46exzodOHhF+m1vnDkywFWUF1YuiabrzBsDrbtS6l3Wj 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)(4636009)(376002)(346002)(136003)(396003)(39860400002)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(82310400011)(36840700001)(46966006)(40470700004)(41300700001)(82740400003)(47076005)(83380400001)(36860700001)(36756003)(86362001)(81166007)(6916009)(316002)(70586007)(70206006)(44832011)(5660300002)(2906002)(4001150100001)(8936002)(8676002)(26005)(1076003)(336012)(426003)(2616005)(478600001)(7696005)(40480700001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2024 14:37:18.6758 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0cc06501-4601-4acc-6a77-08dc1769cebc 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: AM3PEPF0000A799.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB5897 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, 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 <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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788348780467732074 X-GMAIL-MSGID: 1788348780467732074 |
Series |
aarch64: Fix eh_return for -mtrack-speculation [PR112987]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Szabolcs Nagy
Jan. 17, 2024, 2:37 p.m. UTC
Recent commit introduced a conditional branch in eh_return epilogues that is not compatible with speculation tracking: commit 426fddcbdad6746fe70e031f707fb07f55dfb405 Author: Szabolcs Nagy <szabolcs.nagy@arm.com> CommitDate: 2023-11-27 15:52:48 +0000 aarch64: Use br instead of ret for eh_return gcc/ChangeLog: PR target/112987 * config/aarch64/aarch64.cc (aarch64_expand_epilogue): Use explicit compare and separate jump with speculation tracking. --- gcc/config/aarch64/aarch64.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
Comments
Szabolcs Nagy <szabolcs.nagy@arm.com> writes: > Recent commit introduced a conditional branch in eh_return epilogues > that is not compatible with speculation tracking: > > commit 426fddcbdad6746fe70e031f707fb07f55dfb405 > Author: Szabolcs Nagy <szabolcs.nagy@arm.com> > CommitDate: 2023-11-27 15:52:48 +0000 > > aarch64: Use br instead of ret for eh_return > > gcc/ChangeLog: > > PR target/112987 > * config/aarch64/aarch64.cc (aarch64_expand_epilogue): Use > explicit compare and separate jump with speculation tracking. > --- > gcc/config/aarch64/aarch64.cc | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc > index e6bd3fd0bb4..e6de62dc02a 100644 > --- a/gcc/config/aarch64/aarch64.cc > +++ b/gcc/config/aarch64/aarch64.cc > @@ -9879,7 +9879,17 @@ aarch64_expand_epilogue (rtx_call_insn *sibcall) > is just as correct as retaining the CFA from the body > of the function. Therefore, do nothing special. */ > rtx label = gen_label_rtx (); > - rtx x = gen_rtx_EQ (VOIDmode, EH_RETURN_TAKEN_RTX, const0_rtx); > + rtx x; > + if (aarch64_track_speculation) > + { > + /* Emit an explicit compare, so cc can be tracked. */ > + rtx cc_reg = aarch64_gen_compare_reg (EQ, > + EH_RETURN_TAKEN_RTX, > + const0_rtx); > + x = gen_rtx_EQ (GET_MODE (cc_reg), cc_reg, const0_rtx); > + } > + else > + x = gen_rtx_EQ (VOIDmode, EH_RETURN_TAKEN_RTX, const0_rtx); It looks from a quick scan like we already have 3 instances of this kind of construct. Would you mind factoring them out into a helper? E.g. (strawman): static rtx aarch64_gen_compare_zero_and_branch (rtx_code code, rtx x, rtx_label *label) { } that returns the SET pattern. The caller can then emit the pattern using whichever interface is appropriate. Thanks, Richard > x = gen_rtx_IF_THEN_ELSE (VOIDmode, x, > gen_rtx_LABEL_REF (Pmode, label), pc_rtx); > rtx jump = emit_jump_insn (gen_rtx_SET (pc_rtx, x));
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index e6bd3fd0bb4..e6de62dc02a 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -9879,7 +9879,17 @@ aarch64_expand_epilogue (rtx_call_insn *sibcall) is just as correct as retaining the CFA from the body of the function. Therefore, do nothing special. */ rtx label = gen_label_rtx (); - rtx x = gen_rtx_EQ (VOIDmode, EH_RETURN_TAKEN_RTX, const0_rtx); + rtx x; + if (aarch64_track_speculation) + { + /* Emit an explicit compare, so cc can be tracked. */ + rtx cc_reg = aarch64_gen_compare_reg (EQ, + EH_RETURN_TAKEN_RTX, + const0_rtx); + x = gen_rtx_EQ (GET_MODE (cc_reg), cc_reg, const0_rtx); + } + else + x = gen_rtx_EQ (VOIDmode, EH_RETURN_TAKEN_RTX, const0_rtx); x = gen_rtx_IF_THEN_ELSE (VOIDmode, x, gen_rtx_LABEL_REF (Pmode, label), pc_rtx); rtx jump = emit_jump_insn (gen_rtx_SET (pc_rtx, x));