From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50061.outbound.protection.outlook.com [40.107.5.61]) by sourceware.org (Postfix) with ESMTPS id 18B583898389 for ; Fri, 7 Oct 2022 13:49:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 18B583898389 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=n9O8kDpjIL6p/uBs/auoeGCZygOsImAXJ5GzqG0gQCQBSqTdwUbqz3qIg04X7VwupB292wVFb6SgLM5XuXhQt3so5+VbfUoVBqIVUY13B/6ABI79I4vffV0bR6yDXBho6YLiDZITc2pfQhx08lbLhNUPt+f3gaLfQ0O2pbz+QBMarBN/u9lDmC2S32DgQ2DbeSnmE5uVvPzIZLwOe23h/oUrqME+UVTrQ9UzB7g3jQm1PoqYXNVQomkvUE2F9DR51ZDoDe4ALY1UBllE3gkudSBMTr13pJPi/hhZfo2ZPIb6JoWUNnWFeoTlUziadwCkkDHPbmpDYGM4QwU5aonpWA== 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=vEwgEiVw/oPsqJ8fFiogIJOootCHmYPHFnIRyXd4Bd8=; b=OeXbzOIdonARnUn8yjkHlTs1J6hlopyYKRr7r+RVSlvTW8+QWs5JAK67xYQPEKv3BKWlhm5fVtC1AHbSx6K4sQ95XvuLuSoycX5wPSINB1OOKyBF/Co7gsh0NV30bE1Ef8KvMP4OBIkO93YjsuFK1uHda0N/LHEOV/EXzviTG3LTPy73o0+AZQ1SG7uJb5kIUD+w2cSUCpsD+QdddwEUAri9kxY/kGyoAVbc2CnvyoqUytLV5in+LW/JG7LFZ6bKAbgu1x32ftzHXqN6W6OhdEGXW9rwbFod3FexPp4D3fkiqB/fUeNozO5sv6uFuLgjTdORg/Q1rbbmJ7Z7jOcD+Q== 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] 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=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vEwgEiVw/oPsqJ8fFiogIJOootCHmYPHFnIRyXd4Bd8=; b=NcbKNM6kH7ZjuRkXaxA1AJxx3vDQMieeZeQDH5H+4mF/KyA4BaQiH/eN3upTbaVO+r7Gl1WfbzLVT6WQ9ldaFFTO5TI6OIvRoCjqjUTzho3Zwq5672o1Hyc5TqruFE1X4FpWs2EhJZPvWgZZlYKQIUNtYlCcsIT+7fcHKtCE2RA= Received: from DBBPR09CA0029.eurprd09.prod.outlook.com (2603:10a6:10:d4::17) by AM9PR08MB6291.eurprd08.prod.outlook.com (2603:10a6:20b:284::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Fri, 7 Oct 2022 13:48:56 +0000 Received: from DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:d4:cafe::a5) by DBBPR09CA0029.outlook.office365.com (2603:10a6:10:d4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15 via Frontend Transport; Fri, 7 Oct 2022 13:48:56 +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 DBAEUR03FT034.mail.protection.outlook.com (100.127.142.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.10 via Frontend Transport; Fri, 7 Oct 2022 13:48:55 +0000 Received: ("Tessian outbound c2c2da38ad67:v128"); Fri, 07 Oct 2022 13:48:55 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 03cd8dd15b8713a8 X-CR-MTA-TID: 64aa7808 Received: from 10b6e4309c61.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 92D4DE0F-4EF5-4B39-9235-223FA9FB4627.1; Fri, 07 Oct 2022 13:48:44 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 10b6e4309c61.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 07 Oct 2022 13:48:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dGQA5qoN4hJeHGWjQHYFHmTN0mtlNgglNZGrsXO4LnD6Z9aA/rzkboGNNscDXA9Yx/V97KLmnWtF1hNxOnsHo299321EK3v6hieiOPJNiBJzcYnBZk2ZZQH7TniwH8QpZrCA3gLqCrdxiVwtp4PdTslCoxeT4YCnkwssfEZq9HzzMS1KqaYvKiFm12k9/cyhXgIDzXW8e2G8wCCN+dz2/fXnxvUq0KcctYqyb7gFbwsdURYfPSJkTqwUvgDSD3Stm+dl76r/IynonmWRI8TctrIC/Im+HTK0LAkgTXxcVFNRuLkzEx29MKdUg09ipLA0GqZBa8kSU6hJGhAiFU72cg== 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=vEwgEiVw/oPsqJ8fFiogIJOootCHmYPHFnIRyXd4Bd8=; b=KgjHv/wTYeyIM1H75zmNjCT6CIWHt7afCxOMkr1NwRqPXTvjmm18SowZucn06PX+BhV4eAzjLvukpOo/q7DoA9uiAOAedr+yTUgnTI2TDbiQx2egkyipGtNUYKLlRD0hMpM3cPUxcB3i2s0sDC6eNRG0s+6RbZFqvlx7x7fSmu7PnNOYBYdtur9AAhCVEogdKwe2GpmSyFxUxWkP+tCaRPSnuUh0bogw0CrOHGn9bvzAPydQskx7KxnqnRq6jgOYUcIHoYMW5Xj6NoYJfNDx1w8ToCd7zXLF0RR9krhGlvyASI0FwMDEff0mv+7GZYL6kHCwKbiPuPIYJP1DeyGmsw== 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=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vEwgEiVw/oPsqJ8fFiogIJOootCHmYPHFnIRyXd4Bd8=; b=NcbKNM6kH7ZjuRkXaxA1AJxx3vDQMieeZeQDH5H+4mF/KyA4BaQiH/eN3upTbaVO+r7Gl1WfbzLVT6WQ9ldaFFTO5TI6OIvRoCjqjUTzho3Zwq5672o1Hyc5TqruFE1X4FpWs2EhJZPvWgZZlYKQIUNtYlCcsIT+7fcHKtCE2RA= Received: from AS4PR08MB7901.eurprd08.prod.outlook.com (2603:10a6:20b:51c::16) by PR3PR08MB5644.eurprd08.prod.outlook.com (2603:10a6:102:86::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.24; Fri, 7 Oct 2022 13:48:34 +0000 Received: from AS4PR08MB7901.eurprd08.prod.outlook.com ([fe80::4d64:ef01:4d4c:6ba1]) by AS4PR08MB7901.eurprd08.prod.outlook.com ([fe80::4d64:ef01:4d4c:6ba1%8]) with mapi id 15.20.5676.032; Fri, 7 Oct 2022 13:48:34 +0000 From: Wilco Dijkstra To: Richard Sandiford , Wilco Dijkstra via Gcc-patches Subject: Re: [PATCH][AArch64] Improve immediate expansion [PR106583] Thread-Topic: [PATCH][AArch64] Improve immediate expansion [PR106583] Thread-Index: AQHY2A60YLzBQMfh40K/8+uaM+WmL63/fNejgAIgoBGAAVDLSYAABmEY Date: Fri, 7 Oct 2022 13:48:34 +0000 Message-ID: References: In-Reply-To: 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: AS4PR08MB7901:EE_|PR3PR08MB5644:EE_|DBAEUR03FT034:EE_|AM9PR08MB6291:EE_ X-MS-Office365-Filtering-Correlation-Id: ce6dd915-6c95-4eef-1528-08daa86aada2 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: 8896u6/CGa9rfkpvs7KW4+G8GrtQpeajHueLz6xV2wD95O+HuOEUr1j/Kn9FbiEkyA75Oo+GVZWb8aj0SAmFGWSrRqXN7REQgAPQTXVJdi/GRKcS8hvHaDDnfRQkxbfPUrIa5E+JnCde62GVrxWK28a6FsAyHd8Uv5p4zUqL9beeOyOOQed0Xt1PZKyGY+8pP+acoI7lYkul5lFROB2ZZ8Y8GRs1eLXwKc9KF/5Vnc2oKL9qrHzIn2EqAEpmuI77xuNnjGtTlgUpfrXV+nNvbJSuv25rMl4yQblbeEsMrX2RzFPqI68st+cdHsDis8nBDBT3HZ/EidftmvSpslepLZLdK70RTu5H00r5iTkyMzCnFoYD3KPLQ82XtynQApvDYitG7TP0rye02xjZIexW6+H2c5ST0+2gfwJZZWKRkdTFG+4+6p2HfOKKdYvrMwDRTZIY3XdESRnYkgMktyPxwch3a0HRgdFHFesnwOatl9T8PWGu7sK/OaIN5aW80PQKFK08Pgh9BQ7qYqV8ER7z5CWrCZm6dDkiBRKM45SjbG5yp2BnTIkYGqKCjJEC4qbx0X0rn1CpEJUsrPJh7MrxaijfszVpzb9NsULFK8bT1/CjmvdgMa05zG4yuHDkZAnCVBZIJHeArfOaL5BifUggkDhPgrm7G0n0//XtYpCxcyO3oxYEgkkuJa+xUI/Jcru8extDCuAJJ1f1PFNuNc3odN7tko8dH2VLbczP2lveFGSAGJgWeaoqC6Maq2MZ/c9biBqyyO57U/+9z4a7/my4ynv3pi5R4yfvOv0O+3GKdjw= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR08MB7901.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(376002)(346002)(39860400002)(136003)(396003)(451199015)(186003)(26005)(9686003)(52536014)(7696005)(6506007)(8936002)(38070700005)(33656002)(316002)(122000001)(86362001)(71200400001)(478600001)(5660300002)(66556008)(64756008)(66446008)(66476007)(66946007)(8676002)(2906002)(110136005)(76116006)(4744005)(91956017)(38100700002)(41300700001)(55016003)(14773001);DIR:OUT;SFP:1101; Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5644 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: DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 0d6ad717-4b09-4af5-dd33-08daa86aa0ed X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Yw+G/PSD7/JUBqN0RCKkkW9+NNg6pMeOPG7NocdHNPTy18DPe5+yL0KSpkGtj7uQizgGlQPrBkrgqzcD+8QDqr8NOdD2mSRYEvlyflcpBAy3IcEM+x0xzWYOaIusPCTuHXgi5u9IBdCVNhpFd90zUj+07UPVbZPqnXp5l7Y1vzvU+NeSNHi3DG9DAsmp81vIXPNgxJGUpah9ImMd2Jwk8bOB8wT8+HOUTO5uQ3TU4GDribtOrZJ6UZR8ZCTg/hOFkgsdXPiNBPLsX0ZQi4iLw1LmLoHpRy7O7t7HQBfmgTB4YsNQVdbPC8NvbM6EWefjhMjBv3gq3UGxrG4Epk7GVK66VX3DVJizGg1rtlJkUrqUXLuI3zU4bQEbUAmOcxpA4LoSm1ST0sPxNQTTbz+bm1XG373vTw8lYQIu1ebUfW+UKwBtLWZaIm7iMPYxpN7UrJziDiAx1pQEMjrsAFEmofCL1vnd80P5lZCw9OnURxsNOELB55F8N7KR12LrJPrdulM+x1m3vNWSBXHRQtshPusI/ddlOtiCQOCAjdREBhVfNhmjD0Kt1pgRMo59MCAzc+q0c1tYN3448E/wTnhZxD3p2oM9D+9PAlLEKINBnFPsRtge3V1EiOuLEoNkwVuwHDh1C2ZIEb+ID724/SKEntZpRBMAXe4YkJOA6Aqfg3Fxoersyuc6E/CQpFvg3UMlTNrX+t7dfYpHFSBIQ9SPh8tpo7hsp5t8AAtNhxwer8PWe4PObUJ4bnj8lxEz9Vg+0jYFEXh3Vif69ckxdC+pbu59WJZ389lh6ZONHsB/cOk= 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)(346002)(39860400002)(136003)(396003)(376002)(451199015)(46966006)(40470700004)(36840700001)(26005)(9686003)(316002)(82740400003)(86362001)(110136005)(40460700003)(33656002)(7696005)(55016003)(40480700001)(81166007)(356005)(36860700001)(186003)(47076005)(478600001)(6506007)(336012)(8676002)(70206006)(52536014)(70586007)(5660300002)(4744005)(8936002)(82310400005)(41300700001)(2906002)(14773001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2022 13:48:55.9426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce6dd915-6c95-4eef-1528-08daa86aada2 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: DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6291 X-Spam-Status: No, score=-5.2 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: Hi Richard,=0A= =0A= >> Yes, with a more general search loop we can get that case too -=0A= >> it doesn't trigger much though. The code that checks for this is=0A= >> now refactored into a new function. Given there are now many=0A= >> more calls to aarch64_bitmask_imm, I added a streamlined internal=0A= >> entry point that assumes the input is 64-bit.=0A= >=0A= > Sounds good, but could you put it before the mode version,=0A= > to avoid the forward declaration?=0A= =0A= I can swap them around but the forward declaration is still required as=0A= aarch64_check_bitmask is 5000 lines before aarch64_bitmask_imm.=0A= =0A= Cheers,=0A= Wilco=