Message ID | 0e7fcac5-63aa-7e79-086d-b3ecbefbcaff@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 v1csp990518vqx; Thu, 3 Aug 2023 01:16:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGNccl2eyGt1sLzRF1AAQZpF5iQbTvAecdKxrvKe/+xcPR/4Dun4Vj2S86dvaMJVHUJi4/j X-Received: by 2002:a05:6402:100c:b0:523:d51:bb2 with SMTP id c12-20020a056402100c00b005230d510bb2mr992631edu.15.1691050614441; Thu, 03 Aug 2023 01:16:54 -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 g12-20020aa7d1cc000000b00523100e647esi233300edp.313.2023.08.03.01.16.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 01:16:54 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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=@gcc.gnu.org header.s=default header.b=EU8s4fsr; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 635173858C5E for <ouuuleilei@gmail.com>; Thu, 3 Aug 2023 08:16:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 635173858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691050611; bh=p6edZeKlREtik6n3aWoPOX0zXs9Wa8jJ2tczDOmMl5s=; 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=EU8s4fsrwRg5RqrjyKxDeWW9QfTAtBeKNEEA9Gct4QUQ8ZtcslNDoDgDuBzrozsLW pv6R5yd840E3FbITRD8QUVe1C/iEeJiLUNcESdQhZIO1hoqE3KvH10l0c9pjLywFdx RPR1QwdYLu6ODV/nx20xd1DUvdP8i8YkR/t6yKJQ= 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-db5eur01on2079.outbound.protection.outlook.com [40.107.15.79]) by sourceware.org (Postfix) with ESMTPS id 7CDC03857020 for <gcc-patches@gcc.gnu.org>; Thu, 3 Aug 2023 08:13:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7CDC03857020 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fclcoO6TpSPHlRPTRXlNrzRwDLlxfSAv8Jy3UkI1TukeS4aEocfeWA30BlrAD0eoShozltegJJGVov1nwcR9rrVadG5yBIRSRWDjF11fPPB6tHMgOeYH8nizYNjk65j7VdiJnpNqRAKxHNkX9u4QQJO26M15klcuyNt31iKKBJOnCqP+Yk+9LY+yxkA2pt7Q2hh4j3ErEHanl0h9jLoimFeVblpZsaXjYGj5IWLE7w61duEhwnIcZ5JzJJobFU6konz8zHZEz1P/IaV+0ATGNPJckxDiODycmu1Skf9HTibEl99TSx56V1iUV9dO74DD0YB1FcJLVLkfMMpubaljZw== 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=p6edZeKlREtik6n3aWoPOX0zXs9Wa8jJ2tczDOmMl5s=; b=Rc7kYgB8b944x31RJGSTyO/wilI1kvQpkcGj43E6f3PLPNFEa37+sncAICPxe6EMEOjbi+KPyjzLA7KQxVuW3iAqLtb3qP0raD8+PLh7dWKH5e1FP3+Eti1H7knoMe8Na84EFzE7ugL5QJ6RtyeNZITFKdciAElAErYkCUAAn5VGfYvjp+BZAn0zmWfzGVH5lCQPhiDZuQPJN1Sy1A1huIdNaQ/avuei7Yc65NClnUT5guzQmbVxvsDDNSVWge+NqeLktLjG4y6OplHiF+2CEDxfebCws7pTEoQZShBg3RLYZMALtXgBoNTUCg5fNeI9HDP+zmEFBlb9SQE3oWED9Q== 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:13:19 +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:13:19 +0000 Message-ID: <0e7fcac5-63aa-7e79-086d-b3ecbefbcaff@suse.com> Date: Thu, 3 Aug 2023 10:13:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: [PATCH 08/10] x86: add missing "prefix" attribute to VF{,C}MULC 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: FR3P281CA0112.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::15) 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: 40f00cef-7cdf-4ab4-b17c-08db93f97ef4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IiWeUHQA3bcgWrp57acC2xcsgSzRrCFrFs4ZiqxvMKxAnF7NIAYysoF9jzJuMmtHJjzMSZL9dbwrmnUAOD0ieXhbbeC5RMXiMO2U1sILFIjjnl31TMr0wPWtXtiab+uQWjOtaHr6Xc11NjJWM0t78VyUNKcYqTD7cSUGtzmIxqiYUDn5T8wnOqBCjD9TOwy9DExrMyfbb5ni8U28meWLXeVP2VtIe/HKfRFljjRHLLm8241DIrh16qnAgNqJVpK01VmrjBtT5N+8uEQLRj7ecThM9JGRreqdu/V1pq0BhN/8gcaTx892pu+X4UJNgWuhcztda+0j01WdSRdrauMdd7YIVd4e+mNLlRZGbqzxy0p1OTgnlazIgDga7x72yJlho0c5G7k9OAE5UAgPwp8mMyhPePDd2YukuXJlzFq2rhEXqBjhUrmaP6g5jvMOp5i4J//CKmfjGCuwwnzG7qVrEl78nK1Uw7esr3+P6STUR9zp6FxMKgJnR3861bttIAq+2/MrdnV2YtZzfL2nHdpmqplSesnzw1IAme7CXK74JbkR2mfSjj2s1blxN8iQuOlzztNdGnvL26Tb0h686wgto8kwrMm3kk7+xS3nKkUpuq+lvKQVsBzZo95Nj9gHz0XZVti8PrAN+/bfaIdmEbbEOQ== 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?1491s2kjrPH7uOREExJDb+rElJt3?= =?utf-8?q?/i881sLT6B2F6A7KwcT2kPLCNBLmbLhXhbKXvhiO66qiozkSpQ4oHLsxabMkqv42I?= =?utf-8?q?SXWoxpozv16cPbQxP/o2lSTZYFn7M+tkwS65biR1CsBfQ1ftC/lmVOTEIXCWoHVR2?= =?utf-8?q?jkGYdMI/XWAZyHxp2t2CpMNuuWblPYm5UOmJYkr0+cDW1D5QOL6t1NgXBYuSElk7s?= =?utf-8?q?nnEyzeyzmqE+FlDTcE2WteAfbTLvAGMLDR89ASCBTrMDBfIkmMzE/IBfEuHRQiKWO?= =?utf-8?q?7PsYzmNKZ+ok/5E908X/KUC5Q+Klz7H/709qgtdgfW1LD1b4ni4t/TRvvZnIdDmsT?= =?utf-8?q?IynBp+6+xFHDX3KXIRGbwRzSkhmkzuPKr7nO9ApGK4nRYfWg3O9X5ybqIMzqUhZ2F?= =?utf-8?q?49HEKmZoauNbP6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+vE6QaOEsXliVnWhkzu+Dbk2yj2KJADClIJiurBMa8OSUXA2muPQ?= =?utf-8?q?KguuDsECLpXemLql92OQZbpeeBuvMHZmTaJX7OoVaElu+x3PbOFBBIdP7g/zhTkk3?= =?utf-8?q?0oeM63K0egtGp74SzLHVpqdSSRIwXRCOXRLwPATLqluzcAQe/fw8iz4p4RSp1+ixx?= =?utf-8?q?Ra9RUD7LjYDabKpAsgm9axXkzr6W3tt6AKAVZfYecXaSqsrK9FXEJux9KA4uYKmDr?= =?utf-8?q?gLmLYKjpW2M3?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40f00cef-7cdf-4ab4-b17c-08db93f97ef4 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:13:19.0542 (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: hbKKDUqWX2Jyd0ez1wIYDTeJBxDBlFmb1HM6xDsomF1XSw2F6vYLUMOm4K+wIAx+lz+d/XfRW4a9cmYlOT7j3A== 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: 1773195089007195656 X-GMAIL-MSGID: 1773195089007195656 |
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:13 a.m. UTC
gcc/ * config/i386/sse.md (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Add "prefix" attribute. (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>): Likewise. --- Talking of "prefix": Shouldn't at least V32HF and V32BF have it also default to "evex"? (It won't matter right here, but it may matter elsewhere.)
Comments
On Thu, Aug 3, 2023 at 4:16 PM Jan Beulich via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > gcc/ > > * config/i386/sse.md > (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Add > "prefix" attribute. > (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>): > Likewise. Ok. > --- > Talking of "prefix": Shouldn't at least V32HF and V32BF have it also > default to "evex"? (It won't matter right here, but it may matter > elsewhere.) > > --- a/gcc/config/i386/sse.md > +++ b/gcc/config/i386/sse.md > @@ -6790,6 +6790,7 @@ > return "v<complexopname><ssemodesuffix>\t{<round_maskc_op3>%2, %1, %0<maskc_operand3>|%0<maskc_operand3>, %1, %2<round_maskc_op3>}"; > } > [(set_attr "type" "ssemul") > + (set_attr "prefix" "evex") > (set_attr "mode" "<MODE>")]) > > (define_expand "avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>" > @@ -6993,6 +6994,7 @@ > return "v<complexopname>sh\t{<round_scalarc_mask_op3>%2, %1, %0<mask_scalarc_operand3>|%0<mask_scalarc_operand3>, %1, %2<round_scalarc_mask_op3>}"; > } > [(set_attr "type" "ssemul") > + (set_attr "prefix" "evex") > (set_attr "mode" "V8HF")]) > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >
--- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -6790,6 +6790,7 @@ return "v<complexopname><ssemodesuffix>\t{<round_maskc_op3>%2, %1, %0<maskc_operand3>|%0<maskc_operand3>, %1, %2<round_maskc_op3>}"; } [(set_attr "type" "ssemul") + (set_attr "prefix" "evex") (set_attr "mode" "<MODE>")]) (define_expand "avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>" @@ -6993,6 +6994,7 @@ return "v<complexopname>sh\t{<round_scalarc_mask_op3>%2, %1, %0<mask_scalarc_operand3>|%0<mask_scalarc_operand3>, %1, %2<round_scalarc_mask_op3>}"; } [(set_attr "type" "ssemul") + (set_attr "prefix" "evex") (set_attr "mode" "V8HF")]) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;