From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2048.outbound.protection.outlook.com [40.107.7.48]) by sourceware.org (Postfix) with ESMTPS id 6A406385697F for ; Tue, 15 Aug 2023 14:10:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A406385697F Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PZivoa80fOwQfPa46KXWYapRUOj4ov4umXIzt7t7PfGo4wMNEiafUGXBr+mOk8UdjGLcvDDF58g8unvzoxaRnQHl3kJVrVC+Tsh6zAfuoiGuYCZByVQknKgsu5W/v7NQhFEhYWsJWJ7961RxZW7vgCVZGJUZgvCsx+Ic6r7rg9kSqbmkOYajd+ZCQz7tWxyft7Ai66jtaa9U4U1nfwzrjJyYeJKK0x8Jhb5cT7qwup4FAuk0LIVPyoceJGqbUigXwWh7vinWnnXKGp4HSnZLnC3WcwaDl0iVW7FjboO3uPFwjDehOdHRBP3cf2sXMUQ9S/77EyZXn+ox3vuwQne6aw== 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=BTsahQ57RDyJzDibc6sD/r022EYDJzkeDaihvLuvHfE=; b=OKpmwmCoVvBOI+Y1qWtF4/EmB3OuBEA+ZvTLXD4MfGCKrw9wGLxPcgjk6WHLSX57sOg0/499HUz9TyttKQPXSzXy/6MH4On7hTAA4acy8PM2KawxukdUNQVWIKIxWA9yFY9MGMXNyi/6wzk+RkKXsrsd/ZtcsXkA8iZ4nX1e8i2A+otpqYuEZN9Fw5HmqkD1bhhphMCZrXaJHkq5LhX2FZPDDvawhiA6Pm/6pb3x6y/iCLX+THqweW6rfLEkBne7WzZKgZiLyQnNFR4wBRy2q3NlEgcpOlPpkVtREX9iMcfshVGO6onhAs7HFcj7z/UAvkmXtxCNXWgCEYO43tvrKg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BTsahQ57RDyJzDibc6sD/r022EYDJzkeDaihvLuvHfE=; b=UMzOS6HmHTKOlwu4r159SrHte4915sw0Fix/RD8DQXVhHPQDJaaHQBAHZ2th9ruTsG4CX12n4qOQb6Au0ulKrcF21Y1RPXI3WASN7+ECcu/2j62OrAQTH+cEUqdAl5vqJsxMxg6KzNi400h54Ke8UnmtJJ2GPLIotNTUM3MqBi3xBn+7ICPbmg/32WF95C9oodoWQs26vJOgfDu1guQl6pk1DngmgPpMIKLV7Ira5sVCZ6in5aJPjpyBUx1L3R0hKdUVMqig48Q122zR3k7pKs/u7eaRQzy5ThEQK4fyxU+nM+OdoI1FmgHcXjJz8HEHvTUMZ1SpWXaGy3PmHbqQog== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) by AM9PR04MB8858.eurprd04.prod.outlook.com (2603:10a6:20b:409::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Tue, 15 Aug 2023 14:10:45 +0000 Received: from DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::79a:54ba:8003:fbe7]) by DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::79a:54ba:8003:fbe7%6]) with mapi id 15.20.6678.025; Tue, 15 Aug 2023 14:10:45 +0000 Message-ID: <4c47b6af-ed3f-ec3f-4a28-cd6e052470f9@suse.com> Date: Tue, 15 Aug 2023 16:10:43 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v2] Support Intel AVX10.1 Content-Language: en-US To: "Jiang, Haochen" Cc: "binutils@sourceware.org" , "hjl.tools@gmail.com" References: <5eb31b18-e1ba-dbf1-bddb-ff03b61b25de@suse.com> <20230814064535.3228154-1-haochen.jiang@intel.com> From: Jan Beulich In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0011.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a::21) To DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8790:EE_|AM9PR04MB8858:EE_ X-MS-Office365-Filtering-Correlation-Id: 97566a5f-e2a5-468f-258b-08db9d996af8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UW6b8TrcWfEwcD2ulm3+oIUkSapvtWfpVG/jxtc7hYVVyGHXBy2MeU8ofPxWnwdq+PH4S7jdyDUVVqIuFelX5085s5n2bjeDpu674FlUxMorxaiciUrkHxl+f1B5k7sUQ/aRsjKyaGxG2Rs3QIFKw6i09R+ARJf6YcBsAvmrlb7gK0GipkuAsecdUqD5wPQwdRbTDB2lOSALM6S0YLRLhMNLDsXL9J7Tn8E16uXTGIbbCmajrPM62iVgUsp2torR5Rl1u44qwks7PVsMuhI27q1sFPpizXgw31zwiv1KpvM2Emp3w767TL5RSbP+5hFPMaUFT3EhIlQ2d+y6mHlnTCC7SD9PuuWn55NL3bkH8yatW3XyKbwnWBxw/fcFeLj1gVkkMotDwukgq65ujfbfFy1fM8Ub0NSyVbF3Rs3WSSMzd7ySLGzPz47AiHyyigug1CgYvcmncw8GXzoYyidXbQgtAq7Ncn48ULE8lZrYxPXeSWQ+ecekfqdo3muDCIcM9AkcIyKVtnOl9uGb+w6YedUDVWotAMY2hYwBwvZz0sdfaZnaaV/l2YELPb1UkPCmP4g1woOGmFP69jQuVnZXJujWhhLsIOkYK8IDdDBmCM7J2OSnPWtUiR6jkf8DLEZMz9dURWBkBKdJBtQvUPmt7g== 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:(13230031)(39860400002)(136003)(376002)(366004)(346002)(396003)(451199024)(1800799009)(186009)(8936002)(2616005)(66899024)(8676002)(6916009)(53546011)(41300700001)(66556008)(54906003)(66476007)(31686004)(6512007)(6506007)(6486002)(478600001)(4326008)(36756003)(86362001)(31696002)(26005)(38100700002)(83380400001)(2906002)(66946007)(316002)(5660300002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?djlqcUdjOHVySFBOeEFNOUdQalNkL1VrcEtOcFRzL1hLdXlHSjJBdzhZWUYv?= =?utf-8?B?bUpOSFN4ZTN0VVdaYkh3RWtnZENLUkpHM3NlWXRKdEs1Uk9DZ3p0VTN6eGVS?= =?utf-8?B?TE9lbXNDUkdKZlB3Y2RldkhnMEoraWdRbTZNaENmWldQdnNYdFFQSVJ3OWZC?= =?utf-8?B?QWV6blJnTjBOTE1qU3gxYUEzVTNDOURjZnB4eXV5L0FiU1ZHNndYbUFKb3di?= =?utf-8?B?TVpvcXFBaWhwa1YwZEdPakFuOWF6MjhPSzExWmJ3TFJ2WkYrdDRsd0pCVGJM?= =?utf-8?B?U0d1R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1JqWTY4ZFR1Q3o4?= =?utf-8?Q?lsAnGciZHlT41mhPTA2l8GlYI?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97566a5f-e2a5-468f-258b-08db9d996af8 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8790.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2023 14:10:45.4617 (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: /z+lboBnGl/T+iu232rP93vr2R4yAoBQlHEkP85qDY9hiQeeRlZAV3+n/y1gad9sgyEx9XWOMJUIN5WJNlgL3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8858 X-Spam-Status: No, score=-3027.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,NICE_REPLY_A,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 List-Id: On 15.08.2023 10:32, Jiang, Haochen wrote: >> -----Original Message----- >> From: Jan Beulich >> Sent: Monday, August 14, 2023 6:34 PM >> To: Jiang, Haochen >> Cc: binutils@sourceware.org; hjl.tools@gmail.com >> Subject: Re: [PATCH v2] Support Intel AVX10.1 >> >> On 14.08.2023 10:46, Jiang, Haochen wrote: >>>> Before I get into any details here, I'd like to understand why there >>>> still is a new CpuAVX10_1 bit, when I had asked to drop it. I'm also >>>> concerned >>> >>> The reason is that we would like to keep the OR logic in the >>> toolchain, which means opening AVX10.1 but closing AVX512F should not >> disable the encoding. >>> >>> But I just double think on that and get your point. GCC is using a default "off" >>> mode, if we are using OR logic, no code and current behavior are >>> changed and everything is natural and smooth. However, binutils is using a >> default "on" >>> mode, if we stick to OR logic just like GCC, it will eventually >>> corrupt the current behavior of .noavx512xxx, which could be a >>> problem. I am slightly persuaded on the proposal of setting and clearing bits >> of AVX512 for AVX10 in binutils. >> >> The primary indication of things being done the wrong way is the need to add >> several ".arch .noavx10.1" in the testsuite. Whatever the final solution, this >> should not be necessary (because it indicates people may also need to change >> their code then, if they want a guarantee that no 512-bit insns are used). >> > > I have an open after digging into .arch directives corner cases when we choose > to set/clear bits for AVX512 in AVX10.1. > > Should directives like .noavx512f .avx10.1 open zmm registers? You mean the combination of the two, in that order? Yes, of course. > For directive > .noavx512fp16 .avx10.1, should we enable zmm registers for AVX512FP16 insts? And then yes here, too. In both cases what remains to be determined is how vector size is to be limited. I think that wants to be independent of the .avx10.. >>>> of CpuAVX10_MAX_512BIT, when I did suggest a new attribute (i.e. a >>>> new bitfield in struct i386_opcode_modifier), and then a more general >>>> purpose one (so that by it being / becoming not just boolean it can >>>> later also be used to deal with the - for now only theoretical - AVX10/128 >> case). >>> >>> For question 2, I misunderstood the meaning of attribute. But I >>> suppose >>> AVX10/128 is too theoretical to be true. I will make it a boolean for now. >> >> Right, a boolean is fine initially, but with the spec explicitly allowing the 128- >> bits-only mode, I'm pretty sure we ought to support that rather sooner than >> later. After all, more artificial environments (emulators, >> virtualization) may expose feature combinations not ever seen on real >> hardware. > > After I think twice on that, I suppose maybe it is not that appropriate to put it > into i386_opcode_modifier since in AVX10, the vector width is depends on CPU. > I suppose i386_opcode_modifier is a feature for instructions but not CPU. I disagree. See the uses of EVex, for example. As said above, I think maximum vector width and ISA extensions want dealing with separately, and only the latter would generally qualify for Cpu* flags. Furthermore recall that the attribute wants widening sooner or later, and Cpu* flags are uniformly boolean. Only attributes may have numeric values. Jan