Message ID | bf6b5c74a6f1927174091c73aa51401895ef92f0.1665485382.git.ams@codesourcery.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2031763wrs; Tue, 11 Oct 2022 04:06:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6QkcbSAs0ylY4JTs3/JCaKBdrSruOrqq/O3hbhXChDtrDkYSwg0YXSA9kOe4M+Wnys1x6y X-Received: by 2002:a17:906:730d:b0:782:a4e0:bb54 with SMTP id di13-20020a170906730d00b00782a4e0bb54mr18720014ejc.659.1665486385272; Tue, 11 Oct 2022 04:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665486385; cv=none; d=google.com; s=arc-20160816; b=iV8ytkOuQKW5IWpIay86hbfbciIzGItRKG+dMDTTGO/HGe2XLYDc9qnfxjutg0Zm5X 9c+a4AkRD3srx4vHG3NM2f+D61NLFOtq3yUkQU7Nk81a5rMBRoFj9/ajNxiGMHEneOcq DRxcGoqLctdl4qK1yM3bTiRwQTelTxC9vtTBPMKsIOqPgRJALq8olx+p2dpHGbvyhEo5 n54Wr+Po3w6FxPMrofDm+ik0kWVM/JiK4qTZyymx6SbkxTWW92JDyu0C2k+iO75apRCx xwh7dwmHcs5TILebvsZmtgCJcpeARSAemztGZrWi33mWF8X3Anq9DWa7BS50fJ6DY+aV GC/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:dmarc-filter:delivered-to; bh=E4LC1ghjon5yRI/fXgNI5cvOWHQLgIval+NB4cR4cEk=; b=Sa0rFIiNNKWO/A8FAjHr7TW7jEm6k0yrqZFWpRpDAbtLbsDIxxp3ju59NNPoh9YbNV jdc2yo0sX1Uy6i0NvIjdPR35jNq29i5IouQjRolWR4YdPHx+iC8dvKH9HF8r9GakOT4K oZiavkSAPPFXkaZEL95E6OSEIfDX5kJy6VawwqU227fmXYiLR+czOUavx7iGHCxe+6Ya 3DmXhflJP/S0uh/A3sBClK/00R+lWnhkNCPh8F1j/mpfvHTe8EFVtie0A6BfyKLGBDz9 SUuaPEfJ64QJjj2ef8KKqILqQyPuDvtoPkccTcAhOyF3UhJZlas9eq4Sy9gDNUebJj4v m/zA== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i9-20020aa7c709000000b00458814a8852si276878edq.591.2022.10.11.04.06.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 04:06:25 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A07F138515F9 for <ouuuleilei@gmail.com>; Tue, 11 Oct 2022 11:05:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 00237385AE4F for <gcc-patches@gcc.gnu.org>; Tue, 11 Oct 2022 11:04:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 00237385AE4F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.95,176,1661846400"; d="scan'208";a="84478907" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 11 Oct 2022 03:04:18 -0800 IronPort-SDR: qdISgpG0UxyzF1bAtP56kI0xroB7F3X5URtRPrM/sZDZJ4ujuAe4nQ8NqTBXIJ0Rsqjqdq8O2G lCRtJQ1mvoKbPiM0CPGEeojc/ymDEEKYfSyG7WQu5/N0AL1qa3LS3U+fmBeU+nbDIp+cswYpXc KHWCyw1wWj79ZYevOpr8UQ26N4fIOnfGzS29OtnlBzhxp0vMOpsIWEBylXFc1uDJd0T+o8ydHa WuOKJ3l1L/S3h8T/VlC7WoPceudpW7oonWRTcye9t+jroVHWzRNInHHQM4OrCQKW2DNp3eAond FfU= From: Andrew Stubbs <ams@codesourcery.com> To: <gcc-patches@gcc.gnu.org> Subject: [committed 5/6] amdgcn: Add vector integer negate insn Date: Tue, 11 Oct 2022 12:02:07 +0100 Message-ID: <bf6b5c74a6f1927174091c73aa51401895ef92f0.1665485382.git.ams@codesourcery.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <cover.1665485382.git.ams@codesourcery.com> References: <cover.1665485382.git.ams@codesourcery.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.37.0" Content-Transfer-Encoding: 8bit X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, 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: 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> 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?1746389051848696377?= X-GMAIL-MSGID: =?utf-8?q?1746389051848696377?= |
Series |
amdgcn: Add V32, V16, V8, V4, and V2 vectors
|
|
Commit Message
Andrew Stubbs
Oct. 11, 2022, 11:02 a.m. UTC
Another example of the vectorizer needing explicit insns where the scalar expander just works. gcc/ChangeLog: * config/gcn/gcn-valu.md (neg<mode>2): New define_expand. --- gcc/config/gcn/gcn-valu.md | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md index f708e587f38..00c0e3be1ea 100644 --- a/gcc/config/gcn/gcn-valu.md +++ b/gcc/config/gcn/gcn-valu.md @@ -2390,6 +2390,19 @@ (define_insn "<expander><vnsi>3<exec>" [(set_attr "type" "vop2,ds") (set_attr "length" "8,8")]) +;; }}} +;; {{{ Int unops + +(define_expand "neg<mode>2" + [(match_operand:V_INT 0 "register_operand") + (match_operand:V_INT 1 "register_operand")] + "" + { + emit_insn (gen_sub<mode>3 (operands[0], gcn_vec_constant (<MODE>mode, 0), + operands[1])); + DONE; + }) + ;; }}} ;; {{{ FP binops - special cases