Message ID | 04f99abe-a563-d093-23b7-4abf0f91633d@suse.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4156218vqr; Tue, 20 Jun 2023 23:25:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7bBkcSC6Xop9hMsyPGOZcZmU9a8Xp/+VGXnlxlCM0w/Jsc6+XXs/Kt/LXEMmKgIsn+bmwd X-Received: by 2002:a05:6402:1841:b0:51a:47cd:fa9b with SMTP id v1-20020a056402184100b0051a47cdfa9bmr7016278edy.11.1687328734134; Tue, 20 Jun 2023 23:25:34 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id u20-20020aa7d994000000b0051936fa5367si1956644eds.400.2023.06.20.23.25.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 23:25:34 -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=MljIdmuU; 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 C8E403858D28 for <ouuuleilei@gmail.com>; Wed, 21 Jun 2023 06:25:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8E403858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687328732; bh=VDItPTTaAiJRWL40Ofo1kin/iDoVLz9PpYB3BybfBqI=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=MljIdmuURUQ4+K6OOV1FxxKz2CpgoQXmLq9shXjPt6LYJPlrBq3wtM9jxizZHrYDz /d/A6bgVC0UXYCEfMKmwFgPSdv3/wELHbAQCiNIlCgGmDwtbhm75qB1Zpa4o9MnOQu dgRQX+z/D8sJhXFUo+oGMjvWhe6HdpDGMDMUsRCk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2042.outbound.protection.outlook.com [40.107.247.42]) by sourceware.org (Postfix) with ESMTPS id 85C983858D1E for <gcc-patches@gcc.gnu.org>; Wed, 21 Jun 2023 06:24:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85C983858D1E ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BE0GTgFHPzEaUDxpmJyIJcNk0YRcuc0mtyHh/1mRZlSr4av4ID1fVXM7jlZ91+c5x51pBW0yxOC3js1Ui/8yOJBvCGF6gDvxSVIucWrfOPjHDD25CoYkXTTaUQGegCz9LiMlhb4vNn7PkIsK7gOQSoq/EX+UwjhiSz4cHDwfgm3YgAuoUC2vNCFMGIhIGtGmj67QNQqMQgPJjtJxr+t0v6BnwIMa4/GqH/NHzbRqaTp42ptKEa/aZ3N8/tNOb9pDQYphYjLoWxBrOpP539+S/8g686D4SQqd4EkkEskRINbT6hSgTGUF2WGI0/X6JQNUtprPTif9lrgXO6hxOiOEZQ== 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=VDItPTTaAiJRWL40Ofo1kin/iDoVLz9PpYB3BybfBqI=; b=Wbb13TrAlRiR65ChsWEZiPgJYn+hQv6UK+4XlVB/PHTQmdu2/r1CBx+TGujp5x914xzUWZzb0ZVqMl2cWaSlfkUmPuTggFnDONWVfK7HKtdD1oPTGWCDgJ65VKktq/gF5yCm9SFTQ+nYQEmhDZ1cC/f33dNk7Of9buwuDObDLsbRiK0TMInpHuf3HQNliw+lIwfzbuHio+O4hrKEGqgg9maMZetYfdiUyyVP+DOHJvydL1OvoIS0+q+Paoh2mzKxPlMjtm1L6BPaykKrOPC9txxUmChozMvD8zlhUypCubsdWMN9zFJn+0L2paXG5OgCzAxTOrt7T6Fd9CO3c9on1w== 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 AS4PR04MB9690.eurprd04.prod.outlook.com (2603:10a6:20b:4fd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Wed, 21 Jun 2023 06:24:46 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::e442:306f:7711:e24c]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::e442:306f:7711:e24c%5]) with mapi id 15.20.6500.036; Wed, 21 Jun 2023 06:24:46 +0000 Message-ID: <04f99abe-a563-d093-23b7-4abf0f91633d@suse.com> Date: Wed, 21 Jun 2023 08:24:44 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> Cc: Hongtao Liu <hongtao.liu@intel.com>, Kirill Yukhin <kirill.yukhin@gmail.com> Subject: [PATCH 0/5] x86: make better use of VPTERNLOG{D,Q} Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0253.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:af::8) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|AS4PR04MB9690:EE_ X-MS-Office365-Filtering-Correlation-Id: 3808122b-8120-4494-4e51-08db72203552 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o+G8RQM7KPaZkgYVmexN8oLACP5rjRFM/lL0AVqF3GDGWkT1crOlZI5oUsTWZ6RFY5KDw3FDGoyXdcfXZrrZt9uFEdffz6b6eMbQmt9B0x2aqPqtCjxUHQ/2KLiWXVb2nzY4Rh9MdLBDLq3T3V4Dr5YHLSmlC9TKti3RfL6PdYbpMNoZK4KG76COl5ksIv4ShTkgdTy3+RFl0brOcgwTtZVULnypoNRoai0QD8mPbDUXXYHPi2dCThmdQbrPkJ2skllcC1NABKLBkeBlFi737xYpfnCy2Q6yZK3zswcJVo0UMRzQahnM9zJpLJwNY+GNm/ODL7ZaJV1WfVIJqWwRmMdZKjg2FNKa9zmVU2OWME0PEEAhQxvW7UTTPuZ/sguiaoMDfnX3m6EQHo1RyW1Cd2ggi6JMxe/5bX6xhHrZVXl7wdiaaQibsI1jhxcHHyQWvVMBm5uVfofG8SmzzsfthFyTxNnMVav5Y4WVP5A3z/F6tnRNBCqS88QeKCSuHtmthgMTUdAkS+C4Ha1wKn+0HuYva0QCxLjCLIg8z92WUN4lEj2rEqsl+y0uygutSqG006Y2PFDAU8RNf3/1/Ru5skn4ahY5jsp58kK6aDT8KgFQ7V0XY8gt8gRvHlvoLnCmS1LkPu6LllGNrTZfCu7Edw== 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:(13230028)(366004)(396003)(346002)(136003)(376002)(39860400002)(451199021)(8676002)(478600001)(66946007)(8936002)(2906002)(66476007)(66556008)(4744005)(2616005)(186003)(6512007)(6506007)(26005)(31686004)(5660300002)(316002)(6916009)(4326008)(41300700001)(54906003)(83380400001)(31696002)(86362001)(38100700002)(6486002)(36756003)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?W6W2+yFj11IrITfbu5VrWPMYNzqP?= =?utf-8?q?SEQAhxkd5SrTm71xA2/frKiuUG/JuWC7Wxs/XF1vpWiYa7CD7zkXoGSuOd+PbmhJl?= =?utf-8?q?V7XyypNVPnxAEbj+aiPCY87AsrJcre6QYqrTLUiYbd5pPfhambjONdrDb1onfxXQq?= =?utf-8?q?S/OZBBNYGnl4OjU0ELxHKb3jCxX3MLyWYjnk0JyAiUIVZ8fUrRx1bpt2q5TY0Ixvr?= =?utf-8?q?3EHg1Nk6OTYqcqFBa1ey8uUIbv9cvEY7Mzxr+v9h0SXE0pj0zATcDosgwV4Nq7s4S?= =?utf-8?q?dyjjl+h4up1eaNpxPFi9zHgm9iIRQeujem2l1m/f00nPLm4Vgxi7bQ5kik7Wioafv?= =?utf-8?q?lhzH/JpBJsjzcwcPGCxyS6IZPzxuiH86FrBek5YKfXw0Pts6DzS4bncv2kqpqawOb?= =?utf-8?q?GmZkXPK9HhdIYILNl3UZD9bMukvSNx1GAhsDfogIp6ppEj8f595aD52ZKP1DCWoL8?= =?utf-8?q?U7eObNQafEcEiHh1Yixl0/rWpP+gbAE4J+1tdxLPrOV1znkro2Aus5x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6aqVYbiBlfs?= =?utf-8?q?3R/KGQShhKWoLzD1HRgY7Oz2mVY0L+XY93qxCDy0ttmjGK+yYg98Erkiokv3ZE/po?= =?utf-8?q?Qve1LCJVWaVz1JQd5T35ZDo2o88DjTkNnrsGGpT7cTYwjJo9fCPLBYWLxrEpO+4lt?= =?utf-8?q?S7ORfY+26ifn?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3808122b-8120-4494-4e51-08db72203552 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2023 06:24:46.3749 (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: 98bQNhTQ25RAfxlHHIif5+caQ8SZMEfDz67E9jN/qIJ/YDxX0cyEF91R1ZIRvvPavx8LauTGXqI8J/gdxYNjpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9690 X-Spam-Status: No, score=-3027.6 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769292414697564431?= X-GMAIL-MSGID: =?utf-8?q?1769292414697564431?= |
Series |
x86: make better use of VPTERNLOG{D,Q}
|
|
Message
Jan Beulich
June 21, 2023, 6:24 a.m. UTC
While there are some quite sophisticated 4-operand expanders, 2-operand binary logic which can't be expressed by just VPAND, VPANDN, VPOR, or VPXOR doesn't utilize this insn to carry out such operations in a single insn. Therefore the first two patches address one of the sub-aspects of PR target/93768 (which imo was closed prematurely), while the latter three ones extend what was done for PR target/100711. 1: use VPTERNLOG for further bitwise two-vector operations 2: use VPTERNLOG also for certain andnot forms 3: allow memory operand for AVX2 splitter for PR target/100711 4: further PR target/100711-like splitting 5: yet more PR target/100711-like splitting Jan