Message ID | 4576e023-ac1e-7557-2cc0-ed33ccd35f59@suse.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp988570vqx; Thu, 3 Aug 2023 01:12:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlHU/nNS4c65Ov2QscOTRf1jzO7ygaDf+mvFi5WtbmxGVLFs91RBZ1mNcy5gGCDkqN2tU8Ys X-Received: by 2002:a17:907:7618:b0:977:ecff:3367 with SMTP id jx24-20020a170907761800b00977ecff3367mr7500110ejc.40.1691050355541; Thu, 03 Aug 2023 01:12:35 -0700 (PDT) Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bq6-20020a170906d0c600b00988a4a7abc8si12087847ejb.75.2023.08.03.01.12.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 01:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="TT/4p10r"; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B26F73857347 for <ouuuleilei@gmail.com>; Thu, 3 Aug 2023 08:12:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B26F73857347 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691050341; bh=ewUPa3/OyXGSLr/ci50mAteuo3kxAGqDELRhkz+h5Dk=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=TT/4p10rIVBGyqPAz2VOKi/svSJ7gUAY06YyUK49oOdd8da83JtPT5bILpPnB5n+p Mqc+3frcBLQHaUkpGC5qp9xP7BYVY4YILUWwtEXry3clv0eDjzO3BG5ch6AGEoetmF HGEaqd4k3Pu5xNMBmqYyor3INPdg46XFDawPSTSs= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2051.outbound.protection.outlook.com [40.107.15.51]) by sourceware.org (Postfix) with ESMTPS id 1773E3857806 for <gcc-patches@gcc.gnu.org>; Thu, 3 Aug 2023 08:11:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1773E3857806 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZLAsPMOcVtIHtfHr3oXuwdm7D6/bl2M1Y39alcY5//Ok7nvxdlrG3lZnwG5rGNWAllDBoBBXrsJXWCxyC3PHJ9p8BX1/MM1mwMUcIMFZxNgpfPn+OOLk2+gpO1dQzPE+GFAxgT6rKYTlPPaExKx9OmSE5kSXbjHsi88Ap3ZfO/8MgDiHv2Y7UPWBhhDdnOk022B2T2daCZPEx9rkBzUfZuQU1e8NrvJYhy+KIgC2hT0C5S0voiDXB3F3y6EmrYxOinrpIZGUc9BqILwVIuWcGCOD9FeZRyG+00RaQh2bIYxV94pxxR6gnK4MFXBRAjHs8qOcepaHS28vjjqPjLwvTQ== 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=ewUPa3/OyXGSLr/ci50mAteuo3kxAGqDELRhkz+h5Dk=; b=Qd3RVm0RfOJg1n8/jBshy92Bivez+a7sG20wFVRpfqAEw9pkWWbRQWBpzPam4uLMbLhn2rqN11jWjoyTa8Ww1AeOiOpWeGJZH1nPfaZDjYhONO2kSp6DXeCRBeHkhJiVxRJfCCD1dyPFTaasNgynsd09l/qlTL+cb6j5Yf0pdp0tvxGCCJXywocrZkIEfh39UJI2aJqiT84yl00rXIplerHTkejZhtC7MdVy5BBssf3s2cv4Hj8Uv0r8caE3aWERQUV6/pW6K+lCc800BrnHMyuJMv804eG0r7qoY2nDp6U+d7PH7K6IN9CKAZUMcn0GmDgk0xVGmgmgiCo2GexnpA== 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 VE1PR04MB7359.eurprd04.prod.outlook.com (2603:10a6:800:1a0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Thu, 3 Aug 2023 08:11:33 +0000 Received: from DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::e5cf:5743:ab60:b14e]) by DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::e5cf:5743:ab60:b14e%5]) with mapi id 15.20.6631.046; Thu, 3 Aug 2023 08:11:33 +0000 Message-ID: <4576e023-ac1e-7557-2cc0-ed33ccd35f59@suse.com> Date: Thu, 3 Aug 2023 10:11:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: [PATCH 04/10] x86: "prefix_extra" can't really be "2" Content-Language: en-US To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> Cc: Uros Bizjak <ubizjak@gmail.com>, Hongtao Liu <hongtao.liu@intel.com>, Jan Hubicka <hubicka@ucw.cz>, Kirill Yukhin <kirill.yukhin@gmail.com> References: <9bef986f-7441-c4a9-5bfd-7bbed0a3d950@suse.com> In-Reply-To: <9bef986f-7441-c4a9-5bfd-7bbed0a3d950@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0023.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1c::7) To DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8790:EE_|VE1PR04MB7359:EE_ X-MS-Office365-Filtering-Correlation-Id: 1748c6cd-3bff-41b1-5d47-08db93f93fbd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i6zvMNxeMQFTdjTFZLSVUkyI+i31NjDEQMm0loecpEw4aSrFH0JTBqmGg9E4cSMxnX+nqc5+rYo4/QRGlu5QXLptnRYRcRS5h2Y78RsT8tCQwP/zIH1fway3CdO6NBcHfTFnUpDKoRHQuOQF0DIXFFxHhpzTk6YrfxIcJen6laqy8M4cHDmudsyZO4XaBn4pZTmYTy29+NPn+QyieiOoidgjD7IXXsGO+zmGMESDQSA2BQ4C4mJ4jRyRsHxT7eVKoYviIlRTG0a6blbAcsIIqo9j9K03nDeLUKSSzdtpolGlBwnQHYI87wqRYwa2KP8wmde0Jqyhun4F5VuzfwD0Fofq1nFXtEDo2MVhGtLRLjUb3NwE0VSnAs5HmZIJ6fqq0pfa6pGvULoFlw+5AiTm+vUsajdO2bx3rJ2XBDbULETTSi1dPqNYvVjlzI2cgCCTt0fBRxfO+tcYCR2ysWTg4Hpv10gbuvrtf5U6fyKRFMLPaOlGR13m2edeBJghGKppcbjAiT3HTSMSLtzMsahgICoLc8q19oOV0T0rPKtPWVvJiI79Z34Tch1OVJm/5vOT6ja4gmROwY83ouSBdOsKTu+5xIlxLkHxhxi77ToIoiAZlmyLTlEw/cYLJsbRApHW8PkKJK6nxlHGcTzXMzQ4hw== 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)(396003)(376002)(346002)(136003)(366004)(39860400002)(451199021)(41300700001)(66556008)(316002)(2906002)(4326008)(6916009)(66946007)(66476007)(8936002)(8676002)(5660300002)(38100700002)(26005)(36756003)(186003)(6506007)(86362001)(2616005)(31696002)(6512007)(478600001)(54906003)(6486002)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?DyXjPBX5pdsSJKYbSSwt8dGtztLD?= =?utf-8?q?IBbZSRXvvQIqNDUXFQdxVy59CjH99LFuXyoFPUjbH9AkjBQQypTb7oXrjRiw32Ncd?= =?utf-8?q?uuJ1uRKmCT8/KR8w3FjACiBTFdG0djytpUUfFT9LHSg5nWk2DY3GKuoHsk67FlBKH?= =?utf-8?q?sPHekcrlxiWFDfV6EQe4XLDbQmhj80KtXVS19BLBV4U70xQMa0oOPRBGFwHukOx79?= =?utf-8?q?QgWgbg5qGAzkWFRCEvCUJOLRrwz1abGRrn14ibbiYcGVHX0XrHzB7RW3hYEl7P/ny?= =?utf-8?q?FYO3WhaALMe736P4Ye/pvXfxxcJRUus3QZuJMou2amJQCot1FZizHj1HZeh01I07A?= =?utf-8?q?RTNVgcOxuC92Xwu7MH1DKq7QAvR8O8sAknQoaHS4FLpYAqFfZCiQa5BCRVrWVfgQw?= =?utf-8?q?GxKKb5oBwjbPCAOUR92Wpbbkz+K1kZ/XRO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QtNQXanyOwOFZ4Io8?= =?utf-8?q?Dp+ZqeVR+cYa35M+OeOW80QE/SA8QWnOhZgwRklrjClzBfi3T8YoVWQUaX1Wqdz2w?= =?utf-8?q?nEyV5XUPAGnuKOZ/xVX5wkNJ4I33oNhfNqh2LqijUTEiKwJrRVV/BFD09qGhGbaBp?= =?utf-8?q?OzFyg59gIIsUBlM0fn0tUSeySQk5YMry0amDmJYbqIqre5ZgrAOGgYTiexq+PC/vU?= =?utf-8?q?9tPw1RXKTttw?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1748c6cd-3bff-41b1-5d47-08db93f93fbd X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8790.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2023 08:11:32.9842 (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: soLtK6+Zc9I2WOhetwb43V2Dovphwsl8pPIR+jJglsIr0qymXvmq9+J6xOdJZCMTvh1voyvnUqHWos7vZLhj2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7359 X-Spam-Status: No, score=-3027.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, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Jan Beulich via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jan Beulich <jbeulich@suse.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773194817571564902 X-GMAIL-MSGID: 1773194817571564902 |
Series |
x86: (mainly) "prefix_extra" adjustments
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Jan Beulich
Aug. 3, 2023, 8:11 a.m. UTC
In the three remaining instances separate "prefix_0f" and "prefix_rep" are what is wanted instead. gcc/ * config/i386/i386.md (rd<fsgs>base<mode>): Add "prefix_0f" and "prefix_rep". Drop "prefix_extra". (wr<fsgs>base<mode>): Likewise. (ptwrite<mode>): Likewise.
Comments
On Thu, Aug 3, 2023 at 4:11 PM Jan Beulich via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > In the three remaining instances separate "prefix_0f" and "prefix_rep" > are what is wanted instead. Ok. > > gcc/ > > * config/i386/i386.md (rd<fsgs>base<mode>): Add "prefix_0f" and > "prefix_rep". Drop "prefix_extra". > (wr<fsgs>base<mode>): Likewise. > (ptwrite<mode>): Likewise. > > --- a/gcc/config/i386/i386.md > +++ b/gcc/config/i386/i386.md > @@ -25914,7 +25914,8 @@ > "TARGET_64BIT && TARGET_FSGSBASE" > "rd<fsgs>base\t%0" > [(set_attr "type" "other") > - (set_attr "prefix_extra" "2")]) > + (set_attr "prefix_0f" "1") > + (set_attr "prefix_rep" "1")]) > > (define_insn "wr<fsgs>base<mode>" > [(unspec_volatile [(match_operand:SWI48 0 "register_operand" "r")] > @@ -25922,7 +25923,8 @@ > "TARGET_64BIT && TARGET_FSGSBASE" > "wr<fsgs>base\t%0" > [(set_attr "type" "other") > - (set_attr "prefix_extra" "2")]) > + (set_attr "prefix_0f" "1") > + (set_attr "prefix_rep" "1")]) > > (define_insn "ptwrite<mode>" > [(unspec_volatile [(match_operand:SWI48 0 "nonimmediate_operand" "rm")] > @@ -25930,7 +25932,8 @@ > "TARGET_PTWRITE" > "ptwrite\t%0" > [(set_attr "type" "other") > - (set_attr "prefix_extra" "2")]) > + (set_attr "prefix_0f" "1") > + (set_attr "prefix_rep" "1")]) > > (define_insn "@rdrand<mode>" > [(set (match_operand:SWI248 0 "register_operand" "=r") >
--- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -25914,7 +25914,8 @@ "TARGET_64BIT && TARGET_FSGSBASE" "rd<fsgs>base\t%0" [(set_attr "type" "other") - (set_attr "prefix_extra" "2")]) + (set_attr "prefix_0f" "1") + (set_attr "prefix_rep" "1")]) (define_insn "wr<fsgs>base<mode>" [(unspec_volatile [(match_operand:SWI48 0 "register_operand" "r")] @@ -25922,7 +25923,8 @@ "TARGET_64BIT && TARGET_FSGSBASE" "wr<fsgs>base\t%0" [(set_attr "type" "other") - (set_attr "prefix_extra" "2")]) + (set_attr "prefix_0f" "1") + (set_attr "prefix_rep" "1")]) (define_insn "ptwrite<mode>" [(unspec_volatile [(match_operand:SWI48 0 "nonimmediate_operand" "rm")] @@ -25930,7 +25932,8 @@ "TARGET_PTWRITE" "ptwrite\t%0" [(set_attr "type" "other") - (set_attr "prefix_extra" "2")]) + (set_attr "prefix_0f" "1") + (set_attr "prefix_rep" "1")]) (define_insn "@rdrand<mode>" [(set (match_operand:SWI248 0 "register_operand" "=r")