From patchwork Wed Apr 12 15:23:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 750051 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3w375R40cWz9sDG for ; Thu, 13 Apr 2017 01:24:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="TKcJ0ksL"; dkim-atps=neutral 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:in-reply-to:references :in-reply-to:references; q=dns; s=default; b=VjBaOb43jmOmjVra8eg Bsf+iIgx90Nq0ufmCWKVuhWEG0pPbLUQHpRpBZ990xbkskpO5CWlTylsRC2rwGmo xZXZoE+JOu58annQFVrYaxcMMRdXGfKrBxvML1/Oxw9/3n5Xwv0B1C7wbmXy6qw7 i3mWnlLsPIBRoH2FHomhiB2M= 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:in-reply-to:references :in-reply-to:references; s=default; bh=zm4qWCTDnjkTf5HpzAbR/RcQW hM=; b=TKcJ0ksLBxH7tG0idQFp2zrvrY2gbgJAE5WPuVTuOpmUoyHD+pWPowO1P 8QkDt3QusntCkv/9DV/3k75oXgmZLLQ0ZPe+10l6WQS/WiwT2M6lTCdYzAPXB5wI 2ZJlCrRbnvrGh0WL3XqY9h3LjXQXrPvDIxUTMNka9JwEseKV04= Received: (qmail 15870 invoked by alias); 12 Apr 2017 15:24:45 -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 111907 invoked by uid 89); 12 Apr 2017 15:24:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=2411 X-HELO: mail-wm0-f44.google.com Received: from mail-wm0-f44.google.com (HELO mail-wm0-f44.google.com) (74.125.82.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Apr 2017 15:24:17 +0000 Received: by mail-wm0-f44.google.com with SMTP id o81so90450640wmb.1 for ; Wed, 12 Apr 2017 08:24:09 -0700 (PDT) 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:in-reply-to :references:in-reply-to:references; bh=6Y6Sf6Ngng2uEJv5fybrN1eate9/h/LdlEWaguRUP7c=; b=HCDtqDkBmk5KJ9D5kzpgb/CvSii/xTgVcPR9PI9TmzW+K7HiHuR8DtH0DbshcUSvFd lkTNcA8idTrcJ1TV3UC/d4m2QnXH5E0Z/tvI6mVEObqD+UA1v1eWOkcSfMwDLycln5pS SemycsKElitByQjYzpMXgOA0V4RSs4demh4pVCUK/eRZb8aI/ghNKuY3Mhyrkw6z8i14 AfakkUHdCAnH6fEgQIeermtqpHANlMABX4BjHKk18EYCM7K6xTrzWnLKIpZ++wqeKUcW MdaY8aSnRBlJMjEN3zXeiFVWCLoqBoW72dMJ/t7/b4/fSC4+hIHTOTtrNznr7eQgdXbO hKKQ== X-Gm-Message-State: AN3rC/78/M6LWsDkoJCaJ3BYSFbVzgp0yuYkyEqJpU5MzXS93nhterm3 wDaB7SNMU/acJC0S X-Received: by 10.28.95.67 with SMTP id t64mr8892864wmb.140.1492010647622; Wed, 12 Apr 2017 08:24:07 -0700 (PDT) Received: from localhost (host86-190-190-198.range86-190.btcentralplus.com. [86.190.190.198]) by smtp.gmail.com with ESMTPSA id n6sm26103687wrb.62.2017.04.12.08.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Apr 2017 08:24:06 -0700 (PDT) From: Andrew Burgess To: gcc-patches@gcc.gnu.org Cc: guybe@mellanox.com, Claudiu.Zissulescu@synopsys.com, Andrew Burgess Subject: [PATCH 1/2] arc: Use @pcl assembler syntax instead of invalid expressions Date: Wed, 12 Apr 2017 16:23:53 +0100 Message-Id: <55c911e9a9cddaef218be074e7555009ac5b8aaf.1492010055.git.andrew.burgess@embecosm.com> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes The old ARC assembler would accept expressions like 'LABEL-(.&-4)' which would calculate the offset from the PCL to LABEL. The new ARC assembler does not accept these expressions, instead there's an @pcl synax, used like LABEL@pcl which gives the offset from PCL to LABEL. Most of the use of the old expression syntax have been removed, however, this one got missed. gcc/ChangeLog: * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax. --- gcc/ChangeLog | 4 ++++ gcc/config/arc/arc.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index 88b7fca..f707bd0 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -5070,7 +5070,7 @@ { /* ??? Can do better for when a scratch register is known. But that would require extra testing. */ - return "push_s r0\;add r0,pcl,%4-(.&-4)\;sr r0,[2]; LP_START\;add r0,pcl,.L__GCC__LP%1-(.&-4)\;sr r0,[3]; LP_END\;pop_s r0"; + return "push_s r0\;add r0,pcl,%4@pcl\;sr r0,[2]; LP_START\;add r0,pcl,.L__GCC__LP%1@pcl\;sr r0,[3]; LP_END\;pop_s r0"; } /* Check if the loop end is in range to be set by the lp instruction. */ size = INTVAL (operands[3]) < 2 ? 0 : 2048;