From patchwork Tue Jun 11 16:35:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 1946427 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=WrNmyn8e; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WrNmyn8e; 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 4VzDpQ09krz20Pb for ; Wed, 12 Jun 2024 02:36:45 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EF9DC385DDDC for ; Tue, 11 Jun 2024 16:36:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on062c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::62c]) by sourceware.org (Postfix) with ESMTPS id D5242385B510 for ; Tue, 11 Jun 2024 16:36:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D5242385B510 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 D5242385B510 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:fe0c::62c ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1718123784; cv=pass; b=r/OU9uFzwl46825kXlcOoI8c53wyoE1p/Nj8h1QdncccONNC5hT0XDguFSPK/az1M4VgHEexm+fVb38Q40VB8KNxEwh7JRLoSSLmXRDER5OI4jklTxELGZIbtAlGucbg6fsJ8KRXXwaFlIrL54zStOn1K3ZpbBVHbaY/2wnmEuY= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1718123784; c=relaxed/simple; bh=VVe1hV3nX9qsznqZ5VlvMZcj2xK0jd9YxclvvkXo4jo=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=KntVZSgah9yaRVF7a7dCFevEbQaFGqD+LwwpC1oGhfrFCy+JcEu4JouQoTHej5g1cCcdAoJX+lZMD8brQ036lt697z4y/gMDdZ3kbUNE49EU+Zvg0tDsENst81KT/6AVALH/V1O0AMnz2UTnkAjjBaLHv34PgjTnOvw+k1st89s= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=RbiMKBSttASJGnUkA1PybIYBDfuc/s41+yvU2Pz3R1Exo7UVTDk6uzuIr8YhLmWKjwIh+tdIvtmxtmQx0cGx15j2Eghv3E0PcAKLMF3F3r6TmWiJtTjWPqds/XXqlDz1V9mBMd9qzkxjbaTpfU3RM5o7dkvvZYvxgfZeHPwgzIHL6wzHu3lxx1rymlPeJvO8fEBHvyb3cKljF1TVFvPOX+J3JfusXD5ahTqUQYmvQ/zfg9T2zKPaOaWYnO+0S7Y735ZDUMruoAmYQbUlLEuk9FfRK9i/lxEzbs7s/lbxWxgIsx+6Z5Y4vjm2XjtmA0f/V3fOai9i8H9n6wxxRNFGWw== 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=FFyNut1oxxB4wzaAyaxyLWSQNFPE0vIk88MzXN6lcmY=; b=UFfhhlaeqBCPlOlVRRZ0xyeT6eHyqbF0Ob+ntKB7R4lMyGHNsKCuunsZe1ykmvjXfksgXcfBNW79qjyTMddZkxUHdXa7Yk4Dk+2+P71IcqL9Yz2uxVK1675sZkRK0FxVCqzupSmw9GZtoRJc4ikUhqP2Iqu/gswbDPb7+QaX/WYdLHM1mXSv+Q1D3KFYZonuOxu+vU3x7KlTz57e1ASnF4TMvmS5TbA4EaOBY/zHy34cfOVb+mhKmjW3noC6TqCM0I1irsXbUwExnnXOQK9gCS9d9icDK19BQNfP9T4j+Akl4u8MQsmAGGef99ibsNdzZxZYNUaU9fDymU3oO+Mf4g== 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] dkim=[1,1,header.d=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=FFyNut1oxxB4wzaAyaxyLWSQNFPE0vIk88MzXN6lcmY=; b=WrNmyn8e4C0od158a3alAao/C6FdUasdiOO1kfV8rf9DC7eMnYAv29M2PiQsNiV1g6+SWlx/Vhl6kBmKEH6ejexvkD56QfBrDq3/PlcfbadQGit/dK1RbCi8BVz/s67sGfcd9Xlh15qpM82E2u3C/vRoMYufKx4WtWBk44S/Emc= Received: from DUZPR01CA0139.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bd::14) by PAWPR08MB10317.eurprd08.prod.outlook.com (2603:10a6:102:330::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Tue, 11 Jun 2024 16:36:17 +0000 Received: from DB1PEPF000509EA.eurprd03.prod.outlook.com (2603:10a6:10:4bd:cafe::13) by DUZPR01CA0139.outlook.office365.com (2603:10a6:10:4bd::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.25 via Frontend Transport; Tue, 11 Jun 2024 16:36:13 +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 DB1PEPF000509EA.mail.protection.outlook.com (10.167.242.68) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Tue, 11 Jun 2024 16:36:16 +0000 Received: ("Tessian outbound e43fd1351ded:v332"); Tue, 11 Jun 2024 16:36:16 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: a47e7c1f365956f0 X-CR-MTA-TID: 64aa7808 Received: from 3e07ede6a2b1.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 636DDC61-682B-4458-B449-46D67932E786.1; Tue, 11 Jun 2024 16:36:04 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3e07ede6a2b1.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 11 Jun 2024 16:36:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RLR+y/Jqefppk1z+0+eBwLKUhdl05D3Vwm03iPGlGayrPMOA/vh8ST7ygV/pVRoh8rIocfhXmEwAdpEoHIgCwKe2nypLEFEXLf+GDM6Y4RWmA6W2LHHeafGE5QBdfgbXGXyy9f6C1jINqKFmChZo/CEwv6TPKL71vpywoNMqKgXwFEkeyeJB8aziu7Z+1ZaLsm9R1oZ3BT36OXEF2t+BgQAWBuLc4HIo88VIkPAGnYNcew0Cc8yIbulCbn7D2juKX8gvTvFR7ay6pRyqjRsbuNBPlXmwvwZiHvH9eTTjA+XSTkBu6aEHldCDZOfUcoWel4GSxd+utqoAjGt1tI1KDA== 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=FFyNut1oxxB4wzaAyaxyLWSQNFPE0vIk88MzXN6lcmY=; b=nLdzSs6wvDDCTCjlP0RQnm0gzaMyClRQfitJ4dAkUgRngmnPbnEf2ztjo6itgW4l+bPPvTvEOousiWKa8LGyhKe9hV2dXh4IQA4fOiX5x2H/e5eSGDrhuN2OitkWip2Lglq1zKljwD38am4wcx8S4TingflVIZjpztFmtfo/9DFwx9AXoGapvoHWLuK9ojpFkJXQSZxOzQKH6uczMsHatiqiPeLZdgvJfBZ065tSvXD5SV2uSy6vnQl/WE/lGc0M+KrgY9JPpGGxGs2+jsAr40eOzw9ElYVFufZ1H49duOZZQDWWCb3eUsIftpZpI39wXMI8Y8kIJ1Oeb9Yie4tG0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none 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=FFyNut1oxxB4wzaAyaxyLWSQNFPE0vIk88MzXN6lcmY=; b=WrNmyn8e4C0od158a3alAao/C6FdUasdiOO1kfV8rf9DC7eMnYAv29M2PiQsNiV1g6+SWlx/Vhl6kBmKEH6ejexvkD56QfBrDq3/PlcfbadQGit/dK1RbCi8BVz/s67sGfcd9Xlh15qpM82E2u3C/vRoMYufKx4WtWBk44S/Emc= Received: from PAWPR08MB8982.eurprd08.prod.outlook.com (2603:10a6:102:33f::20) by PAVPR08MB9040.eurprd08.prod.outlook.com (2603:10a6:102:32d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Tue, 11 Jun 2024 16:35:57 +0000 Received: from PAWPR08MB8982.eurprd08.prod.outlook.com ([fe80::b366:6358:236e:352d]) by PAWPR08MB8982.eurprd08.prod.outlook.com ([fe80::b366:6358:236e:352d%4]) with mapi id 15.20.7633.036; Tue, 11 Jun 2024 16:35:51 +0000 From: Wilco Dijkstra To: Christophe Lyon , Richard Earnshaw , Richard Sandiford CC: GCC Patches Subject: [PATCH v2] Arm: Fix disassembly error in Thumb-1 relaxed load/store [PR115188] Thread-Topic: [PATCH v2] Arm: Fix disassembly error in Thumb-1 relaxed load/store [PR115188] Thread-Index: AQHavB1sjd/jgymboESmVhoexGUh3Q== Date: Tue, 11 Jun 2024 16:35:51 +0000 Message-ID: References: <3666e0d3-5201-4fbb-a10b-e7bb8f985f80@arm.com> In-Reply-To: <3666e0d3-5201-4fbb-a10b-e7bb8f985f80@arm.com> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: PAWPR08MB8982:EE_|PAVPR08MB9040:EE_|DB1PEPF000509EA:EE_|PAWPR08MB10317:EE_ X-MS-Office365-Filtering-Correlation-Id: 77a60718-d761-4ccf-9891-08dc8a349d64 x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230032|376006|366008|1800799016|38070700010; X-Microsoft-Antispam-Message-Info-Original: =?iso-8859-1?q?v+scKokLxL7CXwzX9?= =?iso-8859-1?q?l5IL0RWZotxc3bYxqdTYpgfPNxrucOhABpR1qeCbirQXitM+lQ2xvxq3J6Mv?= =?iso-8859-1?q?6N/4CiGFdlFmOsSzpcChxBb9qgfkSDkfkdfqN7PVM0BMozn+e39snfBbDC8V?= =?iso-8859-1?q?4zgi8FYcCmOsM5uTkjTL40TundVUYpjSEgsZi7kgLQSPTis6Vqd9rcDqgZ7a?= =?iso-8859-1?q?VdlQeffwhfmT+qRg/ogij/vyJculY6LBSG/8lftKN61OB+GhCh+WrdgL4WEI?= =?iso-8859-1?q?71iFVOmftBV8eA8DEKSSeZMPdyqlLMjTtZp4MaFrqwNdWcPyz7eMHctAr7YU?= =?iso-8859-1?q?hhAwo7JPiMLqeARjO4NOeRpIXw4pFCW8QU2UBJctlUDOCnpGFsxjOjf6PENA?= =?iso-8859-1?q?9gwWMbz4YkRy6mnpPXLp6BP9ytfXGfcrMaoT6+1kPUm10271w1zQcXadUCgL?= =?iso-8859-1?q?49uyQblcwYIMgW3BIv514XxCc1ivyv1wZR0ztAxh6d0S28y9+wik2V9nPDub?= =?iso-8859-1?q?fQsCx0zGiqZGsCfrkP/Mk2BMpmLDb7MeZwZa2Rh3qqDkT8YAF8eIXO6/vFae?= =?iso-8859-1?q?GiTOvm9m/YOq+RtJb67VogTj3oPyGePBROiyxD3xVQPum+ZqTHP2E7Mhz72X?= =?iso-8859-1?q?lW5bBUWu0Xwk/4EVV8QD8oJOzWEtCUUHmbsdb7SFOumghzoiYo+hlwtPoCvc?= =?iso-8859-1?q?0C9fRSN0iDmnBi7uhSvL0JIU0z8JdKYlFjKDcunbToplLp2VKNhVi1UZ9aEi?= =?iso-8859-1?q?7uV3DZ4aiPDQq9Bg064C+mpk/ANo+yUEcn+CkAn+uF1JUPhntakWLXTKZ6w2?= =?iso-8859-1?q?tF8DRBx0d6neOe2q8DSJVF9Q4e0arZZJtQH5WyTbML8H9sgB+3QftAxjRwC+?= =?iso-8859-1?q?TWc6MGXSYHh3+kDasc4YaKTKd4EjmdQeo/hiZ5K3/I1DCq1XFVEtzFBOc71D?= =?iso-8859-1?q?UQ47Kxp2JJ7hDi10PRdG+106new7KdK2hg5Q29oKAuxSvd1RZx3WN7r4Gc0v?= =?iso-8859-1?q?WZqElQo2+DNSGWhpJMg6N53CvWPjq5g4PJAa51+oPXFpUbFVM3Qi3psdYyF6?= =?iso-8859-1?q?J/XlAxxt5toX0v+1ljDZLdmTeO2DhQlp/3hbAYc+oPC4W3AnB3VJyL3AMUEx?= =?iso-8859-1?q?0VyqHUrJbGTPYpt35lWnnAfRwenfeBO2082dclEZK6feHlU1SNM8lphVmPFC?= =?iso-8859-1?q?TunQcxudCCaZYY8Ef/QJYWuexEaD+oMxmhirvzpHxtk0EOa86ci0YhQNqoJ6?= =?iso-8859-1?q?0nc+Dw2qIE4kLKLGmBzbeDQQ/dcKNYxMK4iYp3aR2w2Y/W8/gfZmZ+towZJq?= =?iso-8859-1?q?zLTZohDHHxR2zporsqGL72wGXHn6vxshsKrfqmnyWvpPr+ZhjOp+K69g1qqA?= =?iso-8859-1?q?KBeaae8?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAWPR08MB8982.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230032)(376006)(366008)(1800799016)(38070700010); DIR:OUT; SFP:1101; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9040 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB1PEPF000509EA.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 06c5e0aa-d196-45be-bb5d-08dc8a348ea3 X-Microsoft-Antispam: BCL:0; ARA:13230032|35042699014|82310400018|36860700005|376006|1800799016; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?q?Pm9M+ViXKQelbK8ros9JAyG8Bz?= =?iso-8859-1?q?kAEKcUZzu+aPgahiDZjLgIToM2JxqXRhPQcI+nyHwWaSXYI7g3jUfDJpqCov?= =?iso-8859-1?q?VDDCiKaSycpT7uu/MKx0EFwD2xITPPa+QThY+rvzD5edTBPQo6S8EMMwZBam?= =?iso-8859-1?q?nM06LqDiWOz1GY4Epw08lfC3LUXsMVL6+7vy6QVwuVEwoLqTzaS+YtoKiHm1?= =?iso-8859-1?q?pmRtMexNx+jo838Jp4xkb7/SaDK3fSCeNo2SNBUMXImlaLpJLo5ItRMASEYX?= =?iso-8859-1?q?GRjPTyf1m41e2fm1baU3WdAHOQtUJJghz05LbwO0QCcXi7QpeGapqbu/G8jq?= =?iso-8859-1?q?LC5AIHVbgFA5sjk0hslSi4azh0UwPIGd3qbyi7VRIYT3q59sjcEt5CyaW0d0?= =?iso-8859-1?q?lP0z8RpnIHdCP9Nk+bUEY+xFDvexQAwBIMPuSdcLHBM7xtOZ8meu2TF8IiF+?= =?iso-8859-1?q?SrPO9QiUdSzwLu0q2W3UYm7hClylFdTbqpyGUC37kZvv1kp4epuj5VfHJder?= =?iso-8859-1?q?GbvPUL8WovRNTQY3QD/aWTEWZWosW6FNDqz0NHaVLqQMON+59GfFf2CcK8tZ?= =?iso-8859-1?q?urxKAm76wq8jU7WmzqkIzDMRhP/6806GRd9mEbKmtDVCwXiNBt/6Kg3KPPYL?= =?iso-8859-1?q?OKWcxecjKtKTFML7zlIfXvCIENoltt8phblL7Q3s4543lMmvzDMRffMsreRx?= =?iso-8859-1?q?g7dqrFHFVq/Y0rHZS0qZarFYl011RlUXXwWtQHurvOd0jVUzvKeEnTrf2/RH?= =?iso-8859-1?q?tA8tlOJcKQnlv7qgjRbzdwaJOLiw7pyfzxGda1+LGSW2D3f9j6BM7JJEwyfP?= =?iso-8859-1?q?+sMQci3gAFl/I5RoAKqOKKaceEHwRhg24v7hTrI8+GYM34HuX+FDz7KdgAri?= =?iso-8859-1?q?EZkGg0KGic6ie6jZ5PFgdcv91OWaXeb+tTdPMYQpG9XG3HmRonJRVThuehOp?= =?iso-8859-1?q?I2Wp6hWctDay3PztIDxCXC7rEYyQWWW1LX1YNwgUBs1y6oi5GFO4b4ufXTAj?= =?iso-8859-1?q?GLSw0Ki+BIE7jYovoZpwgl8qfLsC6Tmx6N891uMD0oXMCWkQ9/CSKgqaenfZ?= =?iso-8859-1?q?wYmWlA3lJhXEKx0fZQc3s4tS/ClcffIPX60ffh/4YlK6qJqHpx5DPQ7jjA1v?= =?iso-8859-1?q?c3OFvYSaz6JkNmvabwAR1FlblECx3lHE/RlmJ8FIQzyrbk8u00plQSfxqbwk?= =?iso-8859-1?q?VuHgdjlK5YF/W7IgqaBc87R+vM8521oHH3iLidRTCSMzW3y0xGNojn3HSY7v?= =?iso-8859-1?q?GkTDEVaLGXkts3s6Ycd2xny4YyYCUXf5fMM0OzxPPIgaF8h/dxOgVmPbN1/T?= =?iso-8859-1?q?lblckLPd1WyLU96zJ6qKuz0y+mjh0amzrbtB0l1S3/5r2qp9cOXm2/updJp0?= =?iso-8859-1?q?zcvEXuyA8CD2Z0Xr4fK3KKyj2VnW9uaR0xlkVyQjI=3D?= 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:(13230032)(35042699014)(82310400018)(36860700005)(376006)(1800799016); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2024 16:36:16.2847 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77a60718-d761-4ccf-9891-08dc8a349d64 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: DB1PEPF000509EA.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB10317 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_SHORT, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi Christophe, >          PR target/115153 I guess this is typo (should be 115188) ? Correct. > +/* { dg-options "-O2 -mthumb" } */-mthumb is included in arm_arch_v6m, so I think you don't need to add it here? Indeed, it's not strictly necessary. Fixed in v2: A Thumb-1 memory operand allows single-register LDMIA/STMIA. This doesn't get printed as LDR/STR with writeback in unified syntax, resulting in strange assembler errors if writeback is selected. To work around this, use the 'Uw' constraint that blocks writeback. Passes bootstrap & regress, OK for commit and backport? gcc: PR target/115188 * config/arm/sync.md (arm_atomic_load): Use 'Uw' constraint. (arm_atomic_store): Likewise. gcc/testsuite: PR target/115188 * gcc.target/arm/pr115188.c: Add new test. diff --git a/gcc/config/arm/sync.md b/gcc/config/arm/sync.md index df8dbe170cacb6b60d56a6f19aadd5a6c9c51f7a..e856ee51d9ae7b945c4d1e9d1f08afeedc95707a 100644 --- a/gcc/config/arm/sync.md +++ b/gcc/config/arm/sync.md @@ -65,7 +65,7 @@ (define_insn "arm_atomic_load" [(set (match_operand:QHSI 0 "register_operand" "=r,l") (unspec_volatile:QHSI - [(match_operand:QHSI 1 "memory_operand" "m,m")] + [(match_operand:QHSI 1 "memory_operand" "m,Uw")] VUNSPEC_LDR))] "" "ldr\t%0, %1" @@ -81,7 +81,7 @@ ) (define_insn "arm_atomic_store" - [(set (match_operand:QHSI 0 "memory_operand" "=m,m") + [(set (match_operand:QHSI 0 "memory_operand" "=m,Uw") (unspec_volatile:QHSI [(match_operand:QHSI 1 "register_operand" "r,l")] VUNSPEC_STR))] diff --git a/gcc/testsuite/gcc.target/arm/pr115188.c b/gcc/testsuite/gcc.target/arm/pr115188.c new file mode 100644 index 0000000000000000000000000000000000000000..9a4022b56796d6962bb3f22e40bac4b81eb78ccf --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/pr115188.c @@ -0,0 +1,10 @@ +/* { dg-do assemble } */ +/* { dg-require-effective-target arm_arch_v6m_ok } +/* { dg-options "-O2" } */ +/* { dg-add-options arm_arch_v6m } */ + +void init (int *p, int n) +{ + for (int i = 0; i < n; i++) + __atomic_store_4 (p + i, 0, __ATOMIC_RELAXED); +}