From patchwork Fri Jun 28 13:05:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu Ianculescu X-Patchwork-Id: 1124217 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-503980-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="HhTulRDN"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="D1gqncsJ"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45Zxpp4zRxz9s3C for ; Fri, 28 Jun 2019 23:06:07 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=caaNY8IRd2licKz3 REB4nrw1Cl1FxPa9n7QTsro57LmxkUlT8W1uXLiRyQfVu+OtI0VDk0YrQjNujulC HlQIStTgmsj3mR6A5zN8V04nSVlZklOddR57n+8OWK8vmJ3nsrzfZxw1jk9urc8Y zxfS8vYRqaPVKogrv4/4z2hebzI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=hhJcE2YWmS1dO8c0MOxOaA kouyk=; b=HhTulRDN+6sIUIZSiOonhsjfJTsl/4eceXdCnByUW+WnLsKp6UQtaN fInVOr0yU2GZO3tIIFM5w9/+B+1q37j84ys4vGtZfIs3YC4p28DKRI2bz0juazvW Lj8/UeWct6HtU1UWNrm16nhdQh4XR3mC1WP+i/Lvji+TL9cXEetK8= Received: (qmail 83668 invoked by alias); 28 Jun 2019 13:06:00 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 83477 invoked by uid 89); 28 Jun 2019 13:06:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=D*synopsys.com, claudiu, Claudiu, Zissulescu X-HELO: mail-wm1-f54.google.com Received: from mail-wm1-f54.google.com (HELO mail-wm1-f54.google.com) (209.85.128.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Jun 2019 13:05:58 +0000 Received: by mail-wm1-f54.google.com with SMTP id h19so9332679wme.0 for ; Fri, 28 Jun 2019 06:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jgJmtg/gw8F9y1vRj+tWufGRzpAnIQ4rrgtU+AWTX+Q=; b=D1gqncsJhJqZ/O4/SNtq5LUDjq3L5vg/VM0x4+LFdvUnYuJgdiFz7uP+qodK9WdlTo MFh1T1CM4bHyEXpjnX2PGsZb2tYZKYvVWNcunTH75wWUlrhu14E9VIetVbKUlMjyLgRA ibnMEjMuAHrADRE4ATF1KNOS4RjLOBd6UfWnbZpraxgsP1fkEy0hbSykp1c5xOKJFCF0 BNWgaGGLrRIaR/U//xtz70MVS75K2bgbj95fhSJaPmuWy0MzRwFR4torSs1ILjXfxQPa Z7JfX1kIIYpugqKSB94g/moxotp/3cYI9jJzNpsH5JH59/qHpCn+PeZAdS+Iz89UPFg6 71tQ== Received: from localhost.localdomain ([188.26.132.2]) by smtp.gmail.com with ESMTPSA id l1sm6250744wrf.46.2019.06.28.06.05.55 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 06:05:55 -0700 (PDT) From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Cc: fbedard@synopsys.com, andrew.burgess@embecosm.com, law@redhat.com Subject: [PATCH] [ARC][COMMITTED] Fix slsr-13 regressions. Date: Fri, 28 Jun 2019 16:05:42 +0300 Message-Id: <20190628130542.28609-1-claziss@gmail.com> MIME-Version: 1.0 X-IsSubscribed: yes A recent RTX cost commit has changed the costs for ARC700 leading to errors in slsr-13.c test. This commit fixes this issue by reverting the cost computation for short instructions. 2019-06-28 Claudiu Zissulescu * config/arc/arc.c (arc_rtx_costs): All short instructions are having a lower cost regardless of the speed option. --- gcc/ChangeLog | 5 +++++ gcc/config/arc/arc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 35c5163da27..6f028eee3cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-06-28 Claudiu Zissulescu + + * config/arc/arc.c (arc_rtx_costs): All short instructions are + having a lower cost regardless of the speed option. + 2019-06-28 Jan Beulich * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index ff82c9f7136..5decf916884 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -5590,7 +5590,7 @@ arc_rtx_costs (rtx x, machine_mode mode, int outer_code, break; } } - if (nolimm && !speed) + if (nolimm) { *total = 0; return true;