From patchwork Mon Sep 10 18:26:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 968178 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="O109SoDf"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="glWl/xAm"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 428Gjg1kjnz9s4V for ; Tue, 11 Sep 2018 04:27:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qEyueLNLtYA+IYeoUbWQ5p3Y+XIYcf4tYN7jYhIC4rM=; b=O109SoDfrSwixA WE0Wi52RnYSajLwqAFG2pOOqKb5G8B/+bp3/H0ZY6NR+cuitfWty0Lar68XtCC28OZnAHi+9oF7O5 BI1KWetJQP1iNewCmdjUn9JAJJK/noax+YPwQtY34BJZMB1s/H3N/XoBm2v+MusRjupap6zCXZYL/ i9+O94eRxJ0EwXWo7z3dCb5QLlK6+0flrtDVhAC/kYmqCU5RxXYBV+kWdYkQ405kV58jKjuXk9foi 0cdY96HWMJ85vZxUXMwWd6//EaPHxBCXaLzTgl2mlaidjDFT1HdJvcZx52KlOsa7ChVAdFkpkgyzN drWyHIXkcT9sxYNZ+qgw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzQu4-0004Sx-JX; Mon, 10 Sep 2018 18:27:16 +0000 Received: from smtprelay4.synopsys.com ([198.182.47.9] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzQts-0004Ll-Q5 for linux-snps-arc@lists.infradead.org; Mon, 10 Sep 2018 18:27:14 +0000 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 3551C24E16A9; Mon, 10 Sep 2018 11:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1536604011; bh=rMODNEwgxWRNXHCl2l2i9zI9G9mpDR0DmtkLhpm3SZs=; h=From:To:CC:Subject:Date:From; b=glWl/xAmZMC4VRC5tBWTbWTT8sVhCiFj66u9yz1VkvWDCsDYyfwoGY79XZGsDnnmV 3VXlFpVkOFd1BmcFMzqYO/9VD9WYXTYiaLOyf6PgMa+vziOWXACTiaJj/MImylKTjp lRYDYbqyPRfUC5We3h5/U2sE5FVcfm88ENoLvQhGJatADBkcJjEPxsTNqzOKBTtevm JHYoIix4npjnn1e3hx4/bQsA5IDDyO6N4n5F3VnhzOsLW03ozz/KewuHlvTu5yQP+y biTy7Tf7wd09KJLt6I+nv+qIc0zlsFJ29CX+F8owBJLZdWaXvGjrOl9cv0YhCIrKw/ vNOpLxzz7gqJg== Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id EF6153B24; Mon, 10 Sep 2018 11:26:50 -0700 (PDT) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 10 Sep 2018 11:26:50 -0700 Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.103) by IN01WEHTCB.internal.synopsys.com (10.144.199.105) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 10 Sep 2018 23:56:48 +0530 Received: from vineetg-Latitude-E7450.internal.synopsys.com (10.10.161.63) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 10 Sep 2018 23:56:47 +0530 From: Vineet Gupta To: Subject: [PATCH] [ARC]: core3 features are default for core4 Date: Mon, 10 Sep 2018 11:26:35 -0700 Message-ID: <1536603995-2249-1-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.10.161.63] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180910_112704_887065_17A79F49 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.47.9 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vineet Gupta , linux-snps-arc@lists.infradead.org, gcc-patches@gcc.gnu.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org * config/arc/arc.c: object attributes for core4 not reflected correctly * config/arc/arc.h: Don't restrict DBNZ to core3 (core4 includes core3) Signed-off-by: Vineet Gupta --- gcc/ChangeLog | 7 +++++++ gcc/config/arc/arc.c | 2 +- gcc/config/arc/arc.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6dbe8147b3ec..3a022d156445 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-09-10 Vineet Gupta + + * config/arc/arc.c: object attributes for core4 not reflected + correctly + * config/arc/arc.h: Don't restrict DBNZ to core3 (core4 includes + core3) + 2018-09-09 Uros Bizjak * config/i386/i386.md (float partial SSE register stall splitter): Move diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index c186e02e0f18..0171e8a7c615 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -5181,7 +5181,7 @@ static void arc_file_start (void) TARGET_OPTFPE ? 1 : 0); if (TARGET_V2) asm_fprintf (asm_out_file, "\t.arc_attribute Tag_ARC_CPU_variation, %d\n", - arc_tune == ARC_TUNE_CORE_3 ? 3 : 2); + arc_tune < ARC_TUNE_CORE_3 ? 2 : (arc_tune == ARC_TUNE_CORE_3 ? 3 : 4) ); } /* Implement `TARGET_ASM_FILE_END'. */ diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index de09b6b2f09e..4d38f9ec174f 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -1636,6 +1636,6 @@ enum #define TARGET_FPX_QUARK (TARGET_EM && TARGET_SPFP \ && (arc_fpu_build == FPX_QK)) /* DBNZ support is available for ARCv2 core3 cpus. */ -#define TARGET_DBNZ (TARGET_V2 && (arc_tune == ARC_TUNE_CORE_3)) +#define TARGET_DBNZ (TARGET_V2 && (arc_tune >= ARC_TUNE_CORE_3)) #endif /* GCC_ARC_H */