From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id C91D33A5C006 for ; Fri, 6 Nov 2020 17:27:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C91D33A5C006 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-181-s4O-2ffYMz6hgmuhMFS9YQ-1; Fri, 06 Nov 2020 12:27:18 -0500 X-MC-Unique: s4O-2ffYMz6hgmuhMFS9YQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 303DD1019624; Fri, 6 Nov 2020 17:27:17 +0000 (UTC) Received: from localhost.localdomain (ovpn-114-181.phx2.redhat.com [10.3.114.181]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9BDB175131; Fri, 6 Nov 2020 17:27:16 +0000 (UTC) Subject: Re: [PATCH] arc: Improve/add instruction patterns to better use MAC instructions. To: Claudiu Zissulescu , gcc-patches@gcc.gnu.org Cc: fbedard@synopsys.com, andrew.burgess@embecosm.com, claziss@synopsys.com References: <20201009142414.7038-1-claziss@synopsys.com> From: Jeff Law Message-ID: <693a2335-0fdd-4eef-9c37-3b20e9fae10d@redhat.com> Date: Fri, 6 Nov 2020 10:27:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20201009142414.7038-1-claziss@synopsys.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2020 17:27:22 -0000 On 10/9/20 8:24 AM, Claudiu Zissulescu wrote: > From: Claudiu Zissulescu > > ARC MYP7+ instructions add MAC instructions for vector and scalar data > types. This patch adds a madd pattern for 16it datum that is using the > 32bit MAC instruction, and dot_prod patterns for v4hi vector > types. The 64bit moves are also upgraded by using vadd2 instuction. > > gcc/ > xxxx-xx-xx Claudiu Zissulescu > > * config/arc/arc.c (arc_split_move): Recognize vadd2 instructions. > * config/arc/arc.md (movdi_insn): Update pattern to use vadd2 > instructions. > (movdf_insn): Likewise. > (maddhisi4): New pattern. > (umaddhisi4): Likewise. > * config/arc/simdext.md (mov_int): Update pattern to use > vadd2. > (sdot_prodv4hi): New pattern. > (udot_prodv4hi): Likewise. > (arc_vec_mac_hi_v4hi): Update/renamed to > arc_vec_mac_v2hiv2si. > (arc_vec_mac_v2hiv2si_zero): New pattern. OK for the trunk.  Sorry for the delay. jeff