Message ID | 973d3274-7adc-3a7c-5aaa-916fd5adc093@suse.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2322489wrn; Mon, 19 Dec 2022 03:08:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf53vTZ1ZNvfLiQEtz7DrkKn1vWUp68JzNeTDvs2jZ6rcV3SZEB2phSuhDyLxEgG6/btDGKW X-Received: by 2002:a05:6402:2b8c:b0:461:2288:6804 with SMTP id fj12-20020a0564022b8c00b0046122886804mr34447235edb.30.1671448113298; Mon, 19 Dec 2022 03:08:33 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id i24-20020a0564020f1800b0047314387bc6si8768269eda.297.2022.12.19.03.08.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 03:08:33 -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=OOv2Wupm; 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 E10273AD52C0 for <ouuuleilei@gmail.com>; Mon, 19 Dec 2022 09:07:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E10273AD52C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671440862; bh=b8hYGpRRRTKJhwaaorGszt4nPyKntuLheHK33GJP5TY=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=OOv2WupmNiZSFwh+5ARp0pLUAAuFRWuRgm6FlH84YErFjEzjXYOIJnE6vGd0E89og DIXtSmAfkflHtY2UlrH8828/SNJ+2nTkpToSQljVxtXsxrKYe6A4IHvEsdpzu0WuGP EuQE6WaFz1tSypCLncDZT1uZ1wHL/KijQEwuuXsk= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2079.outbound.protection.outlook.com [40.107.20.79]) by sourceware.org (Postfix) with ESMTPS id 351D43DD01A4 for <binutils@sourceware.org>; Mon, 19 Dec 2022 08:31:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 351D43DD01A4 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LJxjtEM6lu2m7tZpH7ruPSg+dla5VuYzN3Kr1HbTnLZiiH3wZysT8yVRELFNjFmNAlh7nfjf1idK/Z2oJgtatW4q94HXozaQfNr5YBSm37RWf2OiNor6DmVd0K6OuUtJtSTHPBcjOj68mzM5Qkqycg3FRgw2ZdR6hG4l/f8rQwMOtVCMnhW80xPISCQW/WIG+YIROX4v8SZ6qXdF55NzMJXsSEfkgCNjKYa80H23/Sy66cq63WXMu7Kde/7EeehWlFBi/uSd3zi12GOv3fFvrExnjqi5S2XQoYKGoRSCQaXmHcuXotSzqrv82rIKUxj9kFcEQ6wwE+1kdSwLJi84Xw== 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=b8hYGpRRRTKJhwaaorGszt4nPyKntuLheHK33GJP5TY=; b=D2O2Nx9/LQ76kpLzdqi0YjGjWJNxNRpVdp33UTeblv4ONi+h8uPaCOxljCc+x8T6LXLgZBoFir348i9+s4bDXUUYGYAxIcgSfY5yx02uO+TO0uZi4ffgv49zjzDWWxDFZ3NQslhAM4XmeKBgnYWKvqz+TnBv4fBdjBWIlvvvYpaAbLqpzo0VVDqeXzbHKWpSzw5WDkqtYJj3LnFkkiJS/JsEsT/ya9aIEt1L4FYGXeKOE2QgSGacfs2DLbgguuOoV8wcT1KzRwgjCpEyHrHhVNZPxCPAuTSvYT75+5VEfts/1zgGAVJVmgI/nE3BjBx6k79f7XwaNHYVv0H2eST1wA== 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 PAXPR04MB8476.eurprd04.prod.outlook.com (2603:10a6:102:1df::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Mon, 19 Dec 2022 08:31:29 +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.5924.016; Mon, 19 Dec 2022 08:31:29 +0000 Message-ID: <973d3274-7adc-3a7c-5aaa-916fd5adc093@suse.com> Date: Mon, 19 Dec 2022 09:31:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: en-US To: Binutils <binutils@sourceware.org> Cc: "H.J. Lu" <hjl.tools@gmail.com> Subject: [PATCH 00/10] x86: re-work ISA extension dependency handling Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0105.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::20) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|PAXPR04MB8476:EE_ X-MS-Office365-Filtering-Correlation-Id: 693dcced-a219-4c05-353b-08dae19b6d41 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y1lfGB5abkzFw2drLK8wK/mbTN0BlR3MMW5mm3hRGboyXkRwAv+QBiCIqxB18gESDQxWzlcVPErKUIYli2k+ZpcrqN2+jCyNGa+gFFFKY1jKUVd/W4hQkmOnBlBCUsMc3RTJuaSLYltOu9AhR/862fFhALkKYwtJSau/armzqBm6hCoucXUF6tNpetP2WsgCWpStdKx2Qnj9eNGAE1yHeIlWd4Sl3W95NuGoSKn8iApmirDGNjuAyJ7utlRaLP/IQGrF+OEsnrRRo9JT85hqz0fpe1l0RjKgavNcv74Oh2Xp+pB++6mua84Xs0DERXubOD5JK0YwXsMgiXlPk1qYURvkJSEwFlZK0Z1dtXohVnh0SAe/W6MEiDfTXjFIje5JhEcrXRBqjh0OzXzEkPnvXGfhnHlx+4RxWVFqe9WsBZtZ9kKWigxy9AEAjNdj3+hrYGX9L9v762Xs3Odb9jiRCniERf+Tbl+Fn2ux921fLRZzioZD499S6OZTqZW22eXlSoDmMZgZ6YOiQdwaQKmn06zsFD7eRPmsDl92nsqXMFduD2HAF9VJGB3BaauT5/BTOjpjJ0FAeo9xc0hYlnWp9IvbDOHX41orNimt1Kpd3RzVtp1E+EpESmxSwu0/Q8Ry7uTZsdu8WsBvVZNUC86FHItFTAsPhgQeX9lS+QiqXmKQvMFIQKofnjwXfFmuhChJLgsWcGj4lTF+hT/gr3mYVHi2zNiu8kw4ybN0iEozbYI= 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)(136003)(39860400002)(366004)(346002)(396003)(376002)(451199015)(6916009)(6506007)(316002)(478600001)(6486002)(38100700002)(8676002)(4326008)(66556008)(36756003)(66946007)(86362001)(2616005)(31696002)(66476007)(5660300002)(31686004)(4744005)(83380400001)(6666004)(8936002)(2906002)(186003)(26005)(41300700001)(6512007)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?hK6hQYePWDhlxU+Xu+vkmowJvWvQ?= =?utf-8?q?+vgbUi3fu13SLMXZDe2tw4x9nNpW5ZFs2KwMMWnKS7VG42phFJIFtoX0ImbFtMoT1?= =?utf-8?q?zpoXUImkBLmDMYkXCCXAqcPotTAE1P8erdbBqt0Saiptbv+0pqDWmRzq315dl/qp+?= =?utf-8?q?CuhCiYTVq2CsviBDbo2wCGYkIs6DeegiEqvQEwNuZsgWUDSB+f8rWJFGxMylWAHw9?= =?utf-8?q?kdmFASp0tIJsGBzhqW8w8T2WZhhee0Q0dBwyXPrPZKHgP+Jt+Ua8bIuhUb/vGnxXk?= =?utf-8?q?ChRX86pUGoO6vs7rpbaWNbIU684UhevtEmd8Ukw1CzU7NgZz53IkWgImYjT6Lvmez?= =?utf-8?q?oDmI3pE7dfRBGiGO43MuL8c1tNStkEf7PeJPnEXwa6fMms/tu4mj/uyKA2je9tMhi?= =?utf-8?q?o+udrz1lyNqkJrBa9pzCSpP5bgiQ16BZK6EJPt3yOYutSa3+4A9d9Eox18wW6wXoc?= =?utf-8?q?f/OuBwHhuqNs09rZcji9uqQESosa2m03fgGIvw8qMFL4MHwwbR9vfuuuNLTRIihnv?= =?utf-8?q?N5F/Z9xzY6Sc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nCfAjxNMhRdWPf3X6ZiTrxGbkkRa196l/LKkswqqjTTHA1?= =?utf-8?q?zmAe5oVQPFjnSm6U3opVVBtiRXZxFhCONs/Lcnows0v2i5pW0Kf/7KbJT75FlhSbi?= =?utf-8?q?RUaR/ZcANbbE?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 693dcced-a219-4c05-353b-08dae19b6d41 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2022 08:31:29.7704 (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: Y7Y7+nmM58vUh68T6FBSzKhhxpfETMJxXrGwZF/Hbal+MLMZg8/XEu9JLhvLNpzM3bmQ1OPi8h6IMmQ8I6pYvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8476 X-Spam-Status: No, score=-3028.9 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?1752640377223274766?= X-GMAIL-MSGID: =?utf-8?q?1752640377223274766?= |
Series |
x86: re-work ISA extension dependency handling
|
|
Message
Jan Beulich
Dec. 19, 2022, 8:31 a.m. UTC
Getting both forward and reverse ISA dependencies right / consistent has been a permanent source of mistakes, myself included. Reduce what needs specifying manually to just the direct forward dependencies. Plus a number of dependencies weren't put in place at all. 01: re-work ISA extension dependency handling 02: correct what gets disabled by certain ".arch .no*" 03: correct SSE dependencies 04: add dependencies on AVX2 05: rework noavx512-1 testcase 06: correct dependencies of a few AVX512 sub-features 07: correct XSAVE* dependencies 08: add dependencies on VMX 09: add dependencies on SVME 10: correct/improve TSX controls Jan
Comments
On Mon, Dec 19, 2022 at 12:31 AM Jan Beulich <jbeulich@suse.com> wrote: > > Getting both forward and reverse ISA dependencies right / consistent has > been a permanent source of mistakes, myself included. Reduce what needs > specifying manually to just the direct forward dependencies. Plus a > number of dependencies weren't put in place at all. > > 01: re-work ISA extension dependency handling > 02: correct what gets disabled by certain ".arch .no*" > 03: correct SSE dependencies > 04: add dependencies on AVX2 > 05: rework noavx512-1 testcase > 06: correct dependencies of a few AVX512 sub-features > 07: correct XSAVE* dependencies > 08: add dependencies on VMX > 09: add dependencies on SVME > 10: correct/improve TSX controls > > Jan If a CPUID feature, like X, implies another CPUID feature, Y, disable X shouldn't disable Y. Will this patch set still support this without adding CpuX to all Y instructions?
On 20.12.2022 03:25, H.J. Lu wrote: > On Mon, Dec 19, 2022 at 12:31 AM Jan Beulich <jbeulich@suse.com> wrote: >> >> Getting both forward and reverse ISA dependencies right / consistent has >> been a permanent source of mistakes, myself included. Reduce what needs >> specifying manually to just the direct forward dependencies. Plus a >> number of dependencies weren't put in place at all. >> >> 01: re-work ISA extension dependency handling >> 02: correct what gets disabled by certain ".arch .no*" >> 03: correct SSE dependencies >> 04: add dependencies on AVX2 >> 05: rework noavx512-1 testcase >> 06: correct dependencies of a few AVX512 sub-features >> 07: correct XSAVE* dependencies >> 08: add dependencies on VMX >> 09: add dependencies on SVME >> 10: correct/improve TSX controls > > If a CPUID feature, like X, implies another CPUID feature, Y, > disable X shouldn't disable Y. Will this patch set still support > this without adding CpuX to all Y instructions? This series doesn't alter behavior in this regard (as can also be seen by there not being any changes to the insn templates, nor to respective test cases; the one testcase the series does touch is being altered separately first for the very reason of demonstrating that behavior of the assembler doesn't change, except of course for adding previously missing connections between ISA extensions). The meaning of CPU{,_ANY}_*_FLAGS remains exactly the same. It is only the way they're calculated which changes. Jan