Message ID | 661d0e07-cc75-0fba-941b-88160dbcbb13@suse.com |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5705895wrr; Mon, 28 Nov 2022 06:25:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Xox9SyCacXZ8abjuQmm3/cGAouapsRfvjpZ9qUXOFQ16qoTFWqpE4SKD45h8GyZF9N4w1 X-Received: by 2002:a17:906:a294:b0:7be:1ce1:ce3b with SMTP id i20-20020a170906a29400b007be1ce1ce3bmr8390477ejz.135.1669645539580; Mon, 28 Nov 2022 06:25:39 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id cw8-20020a170906478800b007ad821844fcsi11544392ejc.528.2022.11.28.06.25.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 06:25:39 -0800 (PST) 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=rp9oYgsP; 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 6418C384F8AF for <ouuuleilei@gmail.com>; Mon, 28 Nov 2022 14:25:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6418C384F8AF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669645538; bh=HpyoQbT5KXkx6WiRE3Ws9AJN1W2uXktAgXJxsqtoU6o=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=rp9oYgsPgRoSVSuavWPgP840kRo3xMQHnjFWRBrlpLnwrpoiuSYFZTnsOf8zT741A U5fTdW8KoFGbv887fSETiCPH9GOejjoxRXb1uqEwbm+B81OTT/nMjpKBmbzGpwL/P+ HC6IPiMzaX8VLzybMWShIjaUNBYhQ1n6mSYIYl/s= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2079.outbound.protection.outlook.com [40.107.15.79]) by sourceware.org (Postfix) with ESMTPS id 012B13852C5A for <binutils@sourceware.org>; Mon, 28 Nov 2022 14:24:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 012B13852C5A ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eIkBqV1XNiy70bYbEfwIY3fDp0YMV5bP6A2mJ00DpWp6XsqBcnpjy51j+0m5CE2pdi5upD8GuZKoHLiyE5j/IN8Pd3e2PayJ8MSMyBLy0c5C426+2Bb0Gzlpr9MulLiFbNZh1rMVp8t1EDKZuW2Tss26tZoFNQQ4fRG8QehXk5vqxz4kMIET4FMGyUzHwwnxGg18zIZ5xoLok1nQNNIZkOo7MhRfrPvBjPGraltfn2uTB5Mn3Wdz5cz1s/EpCjKy0yCQs2XgqvVp0RJfGXWuGPPNY00PNNtZR0faNiLRbja6X8WdgDBpCUAqYyBVOsgtVvlmzV1dkbCzifi/BbwlSw== 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=HpyoQbT5KXkx6WiRE3Ws9AJN1W2uXktAgXJxsqtoU6o=; b=gYKmp0DcKLDEY/7xzopQhOQaB8BSmaLDrHpG6SHd4mv+0Hks6kN83FsZLVbY8F1YOpTkVgUfRezpQ1vl4uNWGeacG+f/bdsAQNsEcR38/Kf8UUf5XtzyZ/Wgsdv6zRAsv+rf80Jssc3AIQ6+khwTHgTkD0z/tgA781Mp0i8C+R6jYsoxBl0co+grg39uSBYmrOBGb+vM/DLP4EkV/0r466exFTTuXYcR582G2nsWplrqdz/WrqdlsmjQQ3p7f74ZuTkAs1Wo12f9zybHQ1l6vePJjZz54zI2PA69srGW6f7FIvUL8uTj36eFN5kl1YkwIulh9Xmw/6pd6EL3mI2XaA== 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 VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by AS8PR04MB8120.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.19; Mon, 28 Nov 2022 14:24:33 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::4da2:ea8b:e71e:b8d8]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::4da2:ea8b:e71e:b8d8%4]) with mapi id 15.20.5857.023; Mon, 28 Nov 2022 14:24:33 +0000 Message-ID: <661d0e07-cc75-0fba-941b-88160dbcbb13@suse.com> Date: Mon, 28 Nov 2022 15:24:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US To: Binutils <binutils@sourceware.org> Subject: [PATCH] x86/Intel: adjustment to restricted suffix derivation Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0113.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a8::13) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|AS8PR04MB8120:EE_ X-MS-Office365-Filtering-Correlation-Id: 467e6a40-12f1-462f-b9f3-08dad14c44f7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fCiQeheja2/piEakAlCTBEBJ5mVe3aZBFZuoLyPBgGIytVYEncMqQ+PFpez2GtRRmY04qz1/KbwQDpaTLUJqpJeJBEOcWxlp/zFKrRZ60q+P7P4ehLLKxQRbyZjsdnbjJDVCzU+sN7nEiMir7a3YE63mLtJhGs6T72UuaipUpeHPhWLpsiAs6pvss/hMMsenkFWABpX/Tr+oH2T1TFzQbp+gKS1+kl8XYE26Kvq+1QoLAb7y42vkbSHLf4it09irQ/7rQKY5s/zgcMK8f4aNbp4lVZxlKbvzB/yFgoFNYKy5eKXCI46dInfPjIjoDuS0F3KxFgz3uSOpNs+AQPk3+uJXi1JhtArdzKAbLxdns+t5BChgs91ehHewTFOrpGFOa0PLVg7S1ULNDoN1/QM6oqFV/GFEVGGod1VnsrEF/DJEmrHUA2yu4P3nTQUlG1O/3tFKvgfVL0pg9593gCT815eX5sbdRfPzglP9GgocdIqQFovJ80AO4JI87Yxhm2R6yOeTfv/FtTPvXHY3fhDvAv9Bs6QmyVzBfO8whKQp7fx5zNtUo9ou7C+STngrcgf0sWsn+fHlDRDPTnD8O2Jiu3Uz7mCug1MF8NVfTmchQrqZUeZTe8EXkDshPlZpyxVO+bFkia/VlC4+3UhgROeZCoFG76WOqb1CgpnZyHuqJjfkBIMEU70AEmczgqQ3A6vw8em8q1sglGs2MOZ0BTME3TvvjGjZV9dIX8h35snylFs= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6560.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(136003)(366004)(396003)(346002)(376002)(451199015)(316002)(2906002)(478600001)(36756003)(66946007)(6486002)(6916009)(38100700002)(26005)(6506007)(6512007)(86362001)(31696002)(186003)(2616005)(5660300002)(41300700001)(8676002)(8936002)(66476007)(66556008)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?t4bu4eE1lyuPHW5HJerJYc8t+4T/?= =?utf-8?q?0h33uTLv0gA/jzDazT6yG4pX2OmgYKf3cZw2GPpZI1r/w6Zg0A/896mbAwgJM2cdW?= =?utf-8?q?90HsDTusFQIvG2o9SzagEvjbPX0VGmLTByed5tqBGIQeAuirRZg7K2l3R/uwmqrNI?= =?utf-8?q?Iq1oZrQfCMgwHw9UIxV7VBPVM3ZlCVQuS9vaMOYtyL2WdJNCv2XE6kvxsA6FExcl+?= =?utf-8?q?f8EZ/kBcNv3oaonn/gAYQYFM11cHmXpFBKjvTDdHYwMDbiFML8H23RxUTm8duqNyO?= =?utf-8?q?PYbpTMOIvip2nFIGzroWsvFkq3h7BwlH5g8IYuzHtmi7YPPT/mCBoM0NUZVQAMHI1?= =?utf-8?q?NmD0S5Bkw943rrA+F6ywbHEnbIZetJ252gNQDq0FDP4jJNlYge1+4deCypbKWU4A8?= =?utf-8?q?sNMquiuDaGXxKTx7kpc5v4AGoW3d3Y3ADILVZrTL8hC+BQUsURqiPizZtCCNyRDp8?= =?utf-8?q?SZYUM+b2DYuR6wCVrRlaWDdDekid7wIbU7lT3kSb7hofsZaFSD/D9GKnFIM2+k52q?= =?utf-8?q?XxeiVqf1oDlKdQLnD2/F8n1+nJ3ATgtj2ieE9kxQ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1O1G5sHVz?= =?utf-8?q?OegBKF/wDkoe3BpH+pseCQ/6i52nnx0PhGEKLUxXpDx/oC9gR2baQrRGJW14SyPhj?= =?utf-8?q?XgSWJi+eeJA4?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 467e6a40-12f1-462f-b9f3-08dad14c44f7 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2022 14:24:33.2089 (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: CZkKrI1UMAxFoskpw+IiNcAsSns3ZFeJrhv0UDM7+TEHl60LUwSiGAOUQLsXCzczJ0/w2s+eo9s+ilwwme44PQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8120 X-Spam-Status: No, score=-3029.1 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 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?1750750241159350936?= X-GMAIL-MSGID: =?utf-8?q?1750750241159350936?= |
Series |
x86/Intel: adjustment to restricted suffix derivation
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Jan Beulich
Nov. 28, 2022, 2:24 p.m. UTC
In "x86/Intel: restrict suffix derivation" I think I screwed up slightly, bringing a piece of code out of sync with its comment, and resulting in a suffix potentially being derived when one isn't needed. --- Really we could go further and check whether _any_ register-only operand in a template permits for multiple sizes, thus implying that operand size can be derived from it. But that would involve looping over all operands, when we'd like to keep the checking here quick.
--- a/gas/config/tc-i386-intel.c +++ b/gas/config/tc-i386-intel.c @@ -841,11 +841,16 @@ i386_intel_operand (char *operand_string abort (); } + /* We can skip templates with swappable operands here, as one + operand will be a register, which operand size can be + determined from. */ + if (t->opcode_modifier.d) + continue; + /* In a few cases suffixes are permitted, but we can nevertheless derive that these aren't going to be needed. This is only of - interest for insns using ModR/M, plus we can skip templates with - swappable operands here (simplifying subsequent logic). */ - if (!t->opcode_modifier.modrm || t->opcode_modifier.d) + interest for insns using ModR/M. */ + if (!t->opcode_modifier.modrm) break; if (!t->operand_types[op].bitfield.baseindex)