Message ID | de113d3f-86db-2196-8ac9-fa6dc7efa195@suse.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1293224vqx; Tue, 4 Jul 2023 08:17:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlFtZM7bbGTylZuou6tqL+xLakTip1rs0N4ATqS3dd/8T5Tu8nbmfJR9K/6u5xpXECvyHOxx X-Received: by 2002:a17:906:5187:b0:978:7262:d125 with SMTP id y7-20020a170906518700b009787262d125mr12355414ejk.76.1688483846220; Tue, 04 Jul 2023 08:17:26 -0700 (PDT) Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x19-20020a1709065ad300b00992e0f4e85fsi5282558ejs.229.2023.07.04.08.17.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 08:17:26 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=YNA+NgFy; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7D5E3385771F for <ouuuleilei@gmail.com>; Tue, 4 Jul 2023 15:17:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D5E3385771F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1688483844; bh=pTg8qUQbBZdVEf+98iB/PKuSReac+kNrTLLbJ3Xy2Vo=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=YNA+NgFyP/1pibhWHsUR0hNNMiBnEPPAPjfv3T8HLKmWqa091QuRX/fDy6xfbiXde Xe/6MO4WbytAmNlxWSu0xgI5PLSLp+we3Z/1Z79+KIOQvrUyH+xnyAsUJescxswmYm pQYfIpH3/3R+tGe0vXGqCTfi1bleNbBOLe/sfy3Q= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2055.outbound.protection.outlook.com [40.107.241.55]) by sourceware.org (Postfix) with ESMTPS id F28E23858D35 for <binutils@sourceware.org>; Tue, 4 Jul 2023 15:17:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F28E23858D35 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mnaNpFZW8pbkmk7ozHTVXcpP5U0SAOCzvNIb689qiJ5FoHQkQ+THWsT093JkM++ivDuAsi/cvzAjLgar/079Zhxj2hQ4Uk1M3ytKrn0YNDdw9A9K2cWMyUO5ej9PSh4mDeURTqjCmVAjBHaxw3xAvNxJgk8mCr8uQeeuZUv1JdFuhExAQCIIFHbMkaV0pEDsyKKIKSZxUUCpMK3d3ps5mnnA2WjHoEtDSujw/zF4zOZi3Ibqr48UMX1d0rA7JHFCdXZHLPFqmX6IA8u6GzPTLZWpGu7zS3+DlJtdRonENMFI75ctgPreJGhf3rwl9nq8TEFNXjojS68Wz4VqMOS6hQ== 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=pTg8qUQbBZdVEf+98iB/PKuSReac+kNrTLLbJ3Xy2Vo=; b=GY2+MW0axam2ksEbGl4jW6QK5Oa4A7nGbKHb0obV/doHuzD581SCsqYP5m8MibJIM8THRMk5Cj8+Jox5pa8Ooez+pJwd7Zq8C593Hh44tJx3nQnO0AFVT8SZEs2uaBJ26VUvE7M/YKEHJ6cEWuCZBEokx7/6HtzogwEUjDuAJR0geMiJxsUZjcMRPhVS9ToetjLfNoihNPNVDaKBMWhDR7yV7hJRwzxOv6vdQ7ub/lR8Q3QvGnplnMVHHm0fU8YQTDokOwNIgVGN4pQAdokAmrDkgns4nbZTdjAzMXkUuRxvXS2RRjyDxulKmIXKjNLyC2k7x0NlJnrEAUc5gDSyqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Received: from DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) by PR3PR04MB7338.eurprd04.prod.outlook.com (2603:10a6:102:80::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 15:17:12 +0000 Received: from DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::9bd3:48c9:ff58:9880]) by DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::9bd3:48c9:ff58:9880%4]) with mapi id 15.20.6544.024; Tue, 4 Jul 2023 15:17:12 +0000 Message-ID: <de113d3f-86db-2196-8ac9-fa6dc7efa195@suse.com> Date: Tue, 4 Jul 2023 17:17:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: Binutils <binutils@sourceware.org> Cc: "H.J. Lu" <hjl.tools@gmail.com> Subject: [PATCH 00/10] x86: disassembler table entry folding plus some cleanup Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0102.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::18) To DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8790:EE_|PR3PR04MB7338:EE_ X-MS-Office365-Filtering-Correlation-Id: c32d1cbe-0614-427d-0f1f-08db7ca1be15 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OB2bjSXbO/QdaOxS68xSBQRKpdArMPQFHTXWZ4SNdSR0xY/kVbiWoFoMJh2l3lzx8WIuAiWWTmRLTSPcgnJockWNdChzpeWmep3jx3PjnSvnwWVKhE2MsU2lKR0D6pgk8cy0ENmkiL00AoDA1Kr9akYwoXDJt1H2E/JpYq7bO7s682m3jsHkp6tjiYwMYpZRwH1GDhOebRdz4y0XTPW/3CtCmDCBLhkbuv5aG/G9OCZANdSJn9YGy4yGFxau0WBsSA6WdRv/OhStwKvbY6dlfr2QGD+tL7xVi/846us2nW1K/Zy4S2xQNv6Vy2rtdMJBB9DrfL1PDnOOWHwciFVszM3gpqABkSEYj+AsLMG/aIdWIos6mdBhGUOaq+Qogt2ke5OpZFUgvBjv4di/yzUBy4O79cTD/wQmQmHAiuubvKsEzpzJU3SJCEFizrXUdixwm1QzBVi8ospNAYOfOSzvrGoKstXFAEG7dWVzbE31qVV9/Sj00k6qmN9bNRtJOOb1IE4kks7Y6WQIqVwwU+jFaVg1OqBi56rM+OJ+eDI/xfZ/IlbUYRVAdpE/p450Fs4Kiw3d37OWG0X2l3G8IiYW28TJSD5cAvGLne0bwg7CQ3IOSZJQHlzIqVJrZHYvZlFgr8pr0epwbYHrPdBbQBVLEg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8790.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(346002)(396003)(39850400004)(136003)(376002)(366004)(451199021)(2906002)(41300700001)(5660300002)(8676002)(8936002)(36756003)(86362001)(31696002)(6512007)(6486002)(478600001)(83380400001)(26005)(186003)(2616005)(4326008)(31686004)(66556008)(6916009)(66476007)(6506007)(66946007)(316002)(38100700002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?OzKOS7RSWcNh80SpBWGNRASGacdt?= =?utf-8?q?cvVT4qk8D6EZlrHBLiR/bbO01hKPhLIYj6hUl8V2gim7S0HQ2OC+oNqXiYxvrcoz+?= =?utf-8?q?p9Ql2heWJZGYiAW/lQT8aIpHWn79CckmvQEH7A8GoN6wSzK+INng6HfKQl8y3MHMA?= =?utf-8?q?TUN20DmwSTTg5Cmwb7xkVjo9E+YyhOgvNU1ml01mgj4a9Fljf/JuRMC6pTjSKaQ9f?= =?utf-8?q?BgJWXiz7P3FVL9fECBrqfAIW4EA7DiigVB9hMG6fA/A1z0g5D+Ea+0tiAOwVAFziq?= =?utf-8?q?x3k+CycFNFtCnQguGN8cc1OotZUeccw2yMcYsvg/4u71bE2foFcH3DTEvfpsYX6t6?= =?utf-8?q?cDoarr8kfu9826ShTlxkyfcfWk+cHEf3qnYGjyXX97SFmYeQc9lYfwM0+rdjYZP4H?= =?utf-8?q?106c3U7G+Qlyy7RQlYYtmbRGLoH1z//FsdGVJEf0Y/eD7fdsMczj29NsqeS46fxLp?= =?utf-8?q?eQM4v4oCavjvryZR6K8kfam5VipGuIP3TyiND3lKcunSvsNmrAI4aN405SzDWcozX?= =?utf-8?q?YyRL75PptvCRla6ezy5jG1TcA4DG5XhSqaNr4/rISdJd+MyYpy4Yk+qZ3RChP1dRI?= =?utf-8?q?lV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evQFRx1569dFkIAzLxPE5Rut4ZSDDz+lF1liyTkQAjqKLdKwP?= =?utf-8?q?S6hPSWN/9alZ?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: c32d1cbe-0614-427d-0f1f-08db7ca1be15 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8790.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 15:17:12.4497 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EOEWs9gLtRmUTzPSwZz2kuA/4SxQHRpKK4CS+73iWBsSjmt9PhG2P3ssrvlws9cl8TyTUP2WNJ4+jfZcKa7zSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7338 X-Spam-Status: No, score=-3027.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Jan Beulich via Binutils <binutils@sourceware.org> Reply-To: Jan Beulich <jbeulich@suse.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770503637962617283?= X-GMAIL-MSGID: =?utf-8?q?1770503637962617283?= |
Series |
x86: disassembler table entry folding plus some cleanup
|
|
Message
Jan Beulich
July 4, 2023, 3:17 p.m. UTC
This continues the transformation of the tables we use to re-use entries where possible and to shrink entry count / table size by picking an appropriate decode order when multiple decode steps involving table lookup are used for a given encoding. The reduction of mod_table[] in particular suggests that going forward we should strive to add entries there only if both of the branches are actually populated. Single-branch cases (register-only or memory-only forms) would instead be expressed by (re)using suitable operand handlers. Finally there's a little bit of tidying of things noticed while doing the main part of the work. 01: fold certain legacy/VEX table entries 02: fold legacy/VEX {,V}MOV{H,L}* entries 03: {,V}MOVNT* don't need to go through mod_table[] 04: misc further memory-only insns don't need to go through mod_table[] 05: SIMD shift-by-immediate don't need to go through mod_table[] 06: slightly rework handling of some register-only insns 07: various operations on mask registers can avoid going through mod_table[] 08: misc further register-only insns don't need to go through mod_table[] 09: convert 0FXOP to just XOP in enumerator names 10: simplify table-referencing macros Jan