From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130054.outbound.protection.outlook.com [40.107.13.54]) by sourceware.org (Postfix) with ESMTPS id 16858382DA23 for ; Wed, 26 Oct 2022 08:49:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 16858382DA23 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-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=oYs/6SaOZcLQZjO7jQxSHnm52iUPqwm+Zu8vn8/UF4da18tlktTqdJG32VKXORJzzwwCn9tWG1ST4byQcfGUCNh/kRzBxfZ3pXA3AiW/sDYjEIR3MvTL5zimVrHbyeMK2ODdthEBlBhq9ZP303SCDrnytJ0aAfVaXYoh5v7RJMkEvRWPY8aqxKJKm00b8zYoccwwuc5pLEcO4yRgS61MedXqo7XsFQlOcp8AtYp7QarnBinbsxXhymi26Rx5tm5bvEohf6xvDSiG1crNl7Fal7GwJEcMNiFVVcfv940DdMlC72k0CmuWLb84+DJO0BOU4bt0wX6z3nYZDVvUqsQNyQ== 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=Bq9TnR9XQBaXy/zfKWDLA14L6Ep67yJRi4kTg8V94EQ=; b=c16SeA6vqL7eT12IbzK+843j0gziP/LhCHyRRFnEweBNO+YtxzDfgHGz3TiUWMJq0MNefnE9WGFgO5UJMRUBvl5nMPhBCOwNaros31kx5O23XHul/XaBcGtOtyNueJi4XOHxiu8kH6vx7xzyb4xGVWV1YSut8QcsTVEGoE+rSxRQ6IfZftUxbLP/86rJX5suKxD/mhPt6NfD4YzSYrFhkPMZaia6HXGcuskwyG0PnzN2zdDLyTpVokpfm0QwC3062iYjPxpNkDUNxjeo+cCvBQpaXUYiAQeaXzfEZS4U/bqxP6W+2i6iB5faCSXXZwzhUPxrl8SI+x8LXMBGDt3GUw== 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=Bq9TnR9XQBaXy/zfKWDLA14L6Ep67yJRi4kTg8V94EQ=; b=hayAPXSeJlZxXoyFCs6ucZ1/92eoNL8bSyfALBuxiiUdoVeD57fV1vkOc7TMQjoZ3r8fArBryaZScyf2Phv1fHFOPyBrpC0lOdlCPHoDkR0if33hL64Qu7ZyRaGCiT3XfkqwShGEpD8JzhX4ztv3LaK42bEa9z5/pD2v85KLCpM= Received: from DU2PR04CA0261.eurprd04.prod.outlook.com (2603:10a6:10:28e::26) by DB4PR08MB8053.eurprd08.prod.outlook.com (2603:10a6:10:38a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.33; Wed, 26 Oct 2022 08:49:39 +0000 Received: from DBAEUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28e:cafe::6b) by DU2PR04CA0261.outlook.office365.com (2603:10a6:10:28e::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23 via Frontend Transport; Wed, 26 Oct 2022 08:49:39 +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 DBAEUR03FT022.mail.protection.outlook.com (100.127.142.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.16 via Frontend Transport; Wed, 26 Oct 2022 08:49:39 +0000 Received: ("Tessian outbound b4aebcc5bc64:v130"); Wed, 26 Oct 2022 08:49:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 010517736940b9cf X-CR-MTA-TID: 64aa7808 Received: from c467ba03e3af.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FADBA803-D694-497D-BB02-CA610C8A4B70.1; Wed, 26 Oct 2022 08:49:32 +0000 Received: from EUR02-AM0-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c467ba03e3af.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 26 Oct 2022 08:49:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KeD2+6Z1ks+cS6A8kM0F/Ko9Jh7/DugjlQXzu1pnaCO4M2BH1aPzNpzSHN7HfCy5DIs2VxTqfSZviO2vE9aYl0LjPyoTk2mECuDjx9iaWBdcv2SLUFt5dHHmUtlIygbIj9+aOpk0RNLY6LteRrNeOp3tVy2JxPezzsZjHogHNnO6ycAz7xtqQ2eLBNzU/wg0AJ+mISQbHfxnyq7Q98l4TRYx/MVFne7lep/Ph4r2eUNp2BhKyDrj19aHF7hhPZUo973c64pFPawHuePdtLdDZzJ/oCth3il30A0KaJmmEa03pwqhs8ZQgRWtRDxGlOl9ZnB20tBfWXvayaVEn91P0w== 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=Bq9TnR9XQBaXy/zfKWDLA14L6Ep67yJRi4kTg8V94EQ=; b=d50V0kBbGaAlO3CGPSy9GTPFUnisQAdt9+GwCQ1IxVHQOL1IhupwGbKP7s+T38Q0J8SQEfUWnFgE9LMubcg/uaV0YiuarpRANdC5PZTgmlObMXIAmnKF4liLO03zapJY5V8iI2+lUSkwJlcE+k8pTvV3AmeypVyB4Lrt1UHzGDrQ+R/OOkrBLrt+DQVufNd46VxBYUnxl1qEc80FiPe7FeHKvRSj/VX7cRG4l69gvAqqdYnzZtuaxqz7O2QDg4Q+bT2F4gCpi8tThLHYbG8cK1lf7oCop9F23do9kPJF/Zj05dNB8757iaQstlzMMPw8xTC7M3WQzJ4Q965sDNFcpw== 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 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=Bq9TnR9XQBaXy/zfKWDLA14L6Ep67yJRi4kTg8V94EQ=; b=hayAPXSeJlZxXoyFCs6ucZ1/92eoNL8bSyfALBuxiiUdoVeD57fV1vkOc7TMQjoZ3r8fArBryaZScyf2Phv1fHFOPyBrpC0lOdlCPHoDkR0if33hL64Qu7ZyRaGCiT3XfkqwShGEpD8JzhX4ztv3LaK42bEa9z5/pD2v85KLCpM= Received: from DU2P250CA0030.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::35) by PAXPR08MB6351.eurprd08.prod.outlook.com (2603:10a6:102:df::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Wed, 26 Oct 2022 08:49:30 +0000 Received: from DBAEUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:231:cafe::62) by DU2P250CA0030.outlook.office365.com (2603:10a6:10:231::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23 via Frontend Transport; Wed, 26 Oct 2022 08:49:30 +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 DBAEUR03FT048.mail.protection.outlook.com (100.127.142.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5709.10 via Frontend Transport; Wed, 26 Oct 2022 08:49:30 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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.12; Wed, 26 Oct 2022 08:49:30 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 26 Oct 2022 08:49:29 +0000 Received: from e124257 (10.34.105.24) by mail.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.12 via Frontend Transport; Wed, 26 Oct 2022 08:49:29 +0000 From: Andrea Corallo To: Richard Earnshaw CC: Kyrylo Tkachov , Richard Earnshaw , nd , Andrea Corallo via Gcc-patches Subject: Re: [PATCH 9/15] arm: Set again stack pointer as CFA reg when popping if necessary In-Reply-To: (Richard Earnshaw's message of "Fri, 21 Oct 2022 13:30:08 +0100") References: Date: Wed, 26 Oct 2022 10:49:28 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT048:EE_|PAXPR08MB6351:EE_|DBAEUR03FT022:EE_|DB4PR08MB8053:EE_ X-MS-Office365-Filtering-Correlation-Id: 6421c54a-8355-4136-99fd-08dab72f0488 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: zBME9pEpTv0DVzqherSUsCXUJoYRd1bmbTRc6PuhpeU8LCnz5Mr43/MuXjgInpOxOp9Xmk+0fLLiNDyM6VCEUjneqBb5XgTGV3dAcPdfa6qDdyl80nMGKQyphxa6U2qBZnrTkqF89Fg6kitHL/E3/MN/56VlQpa1tTk6tSQw2nrLLwOYYm5clpoZR6L0D25N34M4nY4G69Saz1OCTmlKnlLi8x+nh/iOB+4/ixEuLDDxfDsykRgS3/5nxPY2jsbKr0xfRwhNMI/hDjk0mwu6y1nPh1Sw9b0MGXrF1Nxolts4SrO0VJkHlIz2VphjxaLLp8GPIALqa7R2xVNwU3/hMF2xinoxRhE6Or+0M61TiMTfrBRjrg5lf5+8sBnJRAW8pjaabRTkCrd9dJPniOIN8jLf/PcrqeDeza2KUPNRJ1Mz7Ty0NFG6o5/9PIXnGXeqc4Sx115tgb+VNykwvOvH8zIPsruacDwLblC6Vnuyrc2WyRmBVB1CODsJ2wehNFH+nTQYYBHOrMqNTyl1/GtPFn0F0DD89u1xGlCpOzIiyde3UtK4hg5XZVfuN3rotXWYBrrdRHez8wMCv/YZ0c9nJtK3lCUliCfhnbgllLx1OOImzZMbpaQVLzHH6ffdqgpYjOuQQEau19sXxij61sy0s9t67qsF1sQMdkuO4xNS1nDtZa3bpauvZ1CtfHPq9z0c9V0Tf7zv6OlhQ9S4wD/hfXQ053HpKklM7IU/41fOMFos6Q7xz385zqO81Wu6IheKOfm9tR2TPlnVxrkQqz+9A9ZTSrEXfFSTDuCrYciYe+yAkKbDee+FcreaxKv1JjiE 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:(13230022)(4636009)(136003)(346002)(376002)(396003)(39860400002)(451199015)(36840700001)(46966006)(40470700004)(86362001)(36756003)(81166007)(356005)(336012)(186003)(82740400003)(40460700003)(40480700001)(2906002)(44832011)(83380400001)(478600001)(26005)(426003)(53546011)(47076005)(2616005)(36860700001)(54906003)(70586007)(8676002)(82310400005)(316002)(4326008)(41300700001)(5660300002)(6862004)(8936002)(70206006)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6351 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ce7def3b-1acf-428d-6f08-08dab72eff4d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: is6W4s2f3mzLVevSY8w6MQGx/fEKl+yTiCjhWZLVEEee7bS76zDjWgxZmB6H3ZwotwX3xcEAqq4mRgEvcNmiXNi0h82SY3vyNowImF3ltBgfu4q+VwTPH30CJMYtkmy5ZKl4BT2LSt4s6hAOGQ/HRcLpMAbJo5pQcy6kDkvn5rdXxT+ssXM/Tn5bZ/jYYMJn5B8wFlxpHkJQyhjXbLroxj302qA1JT4ozfyPRnGU3JdsC9CFifGKzbLJSxcqW+SQ+GKQBXDP2P+wCe+j6Klx/ZEUd3CixSW0FM7WZBXBmZ0pOX4Q5HBte6DoS4YCArKLXSVu8yw4F1z3LKMDI3XxEViGSCzDXh+KgXNqRavwU6uvjdB3CqQnFEYLNXh538Q3S1Sl7noUzF9MMNy50S8te+Lr5D45YSOr/sQBrKdfCXba1hm5nby2IBIVuhlyQCfJ1Fa8xt4kn+LaKJzHEEs7VzcLryirUgl8iWUq9h6GPiYVlGNCvfbdRS7zeNPuFAE9Z/rP+SMnRwigeU7lTnMZ3zVUl/Gc0Pv60+w5epl7h5JQovN+e/paOCP05n02/wmFhS3k798S0xIX1iE52XQ8gcheKPeKQb56Z1dAe3dZFFveOgHBWv1RNc82WANldKot7TFf07htnKy1Xbra4ZpXFmTVaBePey1wXv2F8n+4MJG1L/HG5pMiCvdOnbfBcx0WGSmG4w3yMAeBAXQQHlRX8QVB+De0qfEH1b/bTFgWqSjGjFzeEToLWoabraKs5OdyMrr3hXdfGMjvPh/F9BQj3Q== 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:(13230022)(4636009)(376002)(39860400002)(396003)(346002)(136003)(451199015)(40470700004)(36840700001)(46966006)(8936002)(2906002)(81166007)(44832011)(5660300002)(40480700001)(6862004)(82740400003)(83380400001)(186003)(41300700001)(70206006)(4326008)(40460700003)(316002)(8676002)(70586007)(36860700001)(2616005)(36756003)(478600001)(47076005)(54906003)(336012)(82310400005)(426003)(26005)(53546011)(86362001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2022 08:49:39.3753 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6421c54a-8355-4136-99fd-08dab72f0488 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: DBAEUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB8053 X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Richard Earnshaw writes: > On 27/09/2022 16:24, Kyrylo Tkachov via Gcc-patches wrote: >> >>> -----Original Message----- >>> From: Andrea Corallo >>> Sent: Tuesday, September 27, 2022 11:06 AM >>> To: Kyrylo Tkachov >>> Cc: Andrea Corallo via Gcc-patches ; Richard >>> Earnshaw ; nd >>> Subject: Re: [PATCH 9/15] arm: Set again stack pointer as CFA reg when >>> popping if necessary >>> >>> Kyrylo Tkachov writes: >>> >>>> Hi Andrea, >>>> >>>>> -----Original Message----- >>>>> From: Gcc-patches >>>> bounces+kyrylo.tkachov=arm.com@gcc.gnu.org> On Behalf Of Andrea >>>>> Corallo via Gcc-patches >>>>> Sent: Friday, August 12, 2022 4:34 PM >>>>> To: Andrea Corallo via Gcc-patches >>>>> Cc: Richard Earnshaw ; nd >>>>> Subject: [PATCH 9/15] arm: Set again stack pointer as CFA reg when >>> popping >>>>> if necessary >>>>> >>>>> Hi all, >>>>> >>>>> this patch enables 'arm_emit_multi_reg_pop' to set again the stack >>>>> pointer as CFA reg when popping if this is necessary. >>>>> >>>> >>>> From what I can tell from similar functions this is correct, but could you >>> elaborate on why this change is needed for my understanding please? >>>> Thanks, >>>> Kyrill >>> >>> Hi Kyrill, >>> >>> sure, if the frame pointer was set, than it is the current CFA register. >>> If we request to adjust the current CFA register offset indicating it >>> being SP (while it's actually FP) that is indeed not correct and the >>> incoherence we will be detected by an assertion in the dwarf emission >>> machinery. >> Thanks, the patch is ok >> Kyrill >> >>> >>> Best Regards >>> >>> Andrea > > Hmm, wait. Why would a multi-reg pop be updating the stack pointer? Hi Richard, not sure I understand, isn't any pop updating SP by definition? BR Andrea