From patchwork Tue Dec 29 11:36:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu X-Patchwork-Id: 1421189 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=wRQf3rGN; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D4spQ14l0z9sVt for ; Tue, 29 Dec 2020 22:37:16 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D5CF1386EC4B; Tue, 29 Dec 2020 11:37:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5CF1386EC4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1609241830; bh=aRAO0CIprfST1qp/FZRoXNq9e6JE8bbGHoWMr2gAdY8=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=wRQf3rGNWdeDiqSrvoti8eMC/sfGRSxh840CbQDB2kpGjEat6xyhy02Z5wheNoji2 GLK9txyW2B/Jxb5biiT9Kz8w9STfN/g/yzkp841bR59QZDiK12/Mq3ETz+fVSstgsz FJqGyGRJh/UbC1WIyMa0vRVKGBZsnNfh7J5s2obM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 8A140384A01C for ; Tue, 29 Dec 2020 11:37:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8A140384A01C Received: by mail-ed1-x52d.google.com with SMTP id c7so12309643edv.6 for ; Tue, 29 Dec 2020 03:37:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aRAO0CIprfST1qp/FZRoXNq9e6JE8bbGHoWMr2gAdY8=; b=TAGr8t4uramKzJoazxTJ7NjrzAvoMhNA8euJQpNVlWG+CNyAeBWxf71lM2fkujL6lF jXUySSliar74Iv0WbKYrDBXN8uosGipozQgvPV9by6PrwsPDuATvCI+ISLGZpo4Z01i9 OyibxX2yQ271P/YpBgPn2gUv/i7sbvdn6nxrs/bDSGK3aAr13GSOCL7lQNuMtQOO5RDm geonsrwu3l6SUCmpn0pqOTpPbaurQmqVr5NPmg7oqvTlynI9m4uh/hLn4WKhU/25ASC/ 9IU/76eCX7vSi59RNoYHarlPzZ4lR4E8Fml9F7JZ/MAy0jRujlCARu8y84KfD5puFPtV l9/w== X-Gm-Message-State: AOAM531AfrgYJcDOj3ZzwhrOP5godCjf5Oh9krtJPgttoEw3JScqihYV 96ZnzOS8CtIc1lm3g3362I7zW1AR8ntIlw== X-Google-Smtp-Source: ABdhPJyCw0yktCVM9KCtuItgktrqTiiiDv7iN5+JDnt5ll4/e2EksU94JXaauYJ4C8NBXLPid6UCTg== X-Received: by 2002:a05:6402:1841:: with SMTP id v1mr46670168edy.194.1609241826300; Tue, 29 Dec 2020 03:37:06 -0800 (PST) Received: from localhost.localdomain ([95.174.67.148]) by smtp.gmail.com with ESMTPSA id gn27sm8452866ejc.122.2020.12.29.03.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Dec 2020 03:37:05 -0800 (PST) X-Google-Original-From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Subject: [committed 1/6] arc: Don't use predicated vadd2 instructions in mov patterns. Date: Tue, 29 Dec 2020 13:36:50 +0200 Message-Id: <20201229113655.3761444-1-claziss@synopsys.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, 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-Patchwork-Original-From: Claudiu Zissulescu via Gcc-patches From: Claudiu Zissulescu Reply-To: Claudiu Zissulescu Cc: fbedard@synopsys.com Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Update movdi, movdf and mov vectors not to use predicated vadd2 instructions. vadd2 is used as a "fast" move in these patterns. This fixes a number of failures in dejagnu. gcc/ 2020-12-29 Claudiu Zissulescu * config/arc/arc.md (movdi_insn): Update pattern, no predicated vadd2 usage. (movdf_insn): Likewise. * config/arc/simdext.md (movVEC_insn): Likewise. Signed-off-by: Claudiu Zissulescu --- gcc/config/arc/arc.md | 6 +++--- gcc/config/arc/simdext.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index ae08146bcaf..75c32f6d3e9 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -1341,7 +1341,7 @@ (define_insn_and_split "*movdi_insn" if (TARGET_PLUS_QMACW && even_register_operand (operands[0], DImode) && even_register_operand (operands[1], DImode)) - return \"vadd2\\t%0,%1,0\"; + return \"vadd2%?\\t%0,%1,0\"; return \"#\"; case 2: @@ -1421,7 +1421,7 @@ (define_insn_and_split "*movdf_insn" if (TARGET_PLUS_QMACW && even_register_operand (operands[0], DFmode) && even_register_operand (operands[1], DFmode)) - return \"vadd2\\t%0,%1,0\"; + return \"vadd2%?\\t%0,%1,0\"; return \"#\"; case 4: @@ -1450,7 +1450,7 @@ (define_insn_and_split "*movdf_insn" DONE; } [(set_attr "type" "move,move,move,move,load,store") - (set_attr "predicable" "no,no,yes,yes,no,no") + (set_attr "predicable" "no,no,no,yes,no,no") ;; ??? The ld/st values could be 16 if it's [reg,bignum]. (set_attr "length" "4,16,8,16,16,16")]) diff --git a/gcc/config/arc/simdext.md b/gcc/config/arc/simdext.md index d2fc309ea87..58651b5fcac 100644 --- a/gcc/config/arc/simdext.md +++ b/gcc/config/arc/simdext.md @@ -1413,7 +1413,7 @@ (define_insn_and_split "*mov_insn" if (TARGET_PLUS_QMACW && even_register_operand (operands[0], mode) && even_register_operand (operands[1], mode)) - return \"vadd2\\t%0,%1,0\"; + return \"vadd2%?\\t%0,%1,0\"; return \"#\"; case 2: @@ -1434,7 +1434,7 @@ (define_insn_and_split "*mov_insn" DONE; } [(set_attr "type" "move,multi,load,store") - (set_attr "predicable" "yes,no,no,no") + (set_attr "predicable" "no,no,no,no") (set_attr "iscompact" "false,false,false,false") ])