From patchwork Mon Sep 17 12:50:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu X-Patchwork-Id: 970585 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-485766-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="xx4J+oCK"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="rcB2RBrC"; 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 42DQwR1GSSz9sB5 for ; Mon, 17 Sep 2018 22:51:02 +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; q=dns; s=default; b=HX3l9rHdrdw4 YbVS2jPzML5nuuExE3VJFgblorSdYK/q3FBl2tOq+nAs53SMyAyUjFceg9rpoKZC ECb+niD3mp9kLQIipcPICYrIyh8/bLF5duqLeIwqQKawIqN6Fl+ny0yxOOuIUgzj Usj5Vsqzhg1XB1TXvJJqXvc9PKfgEoc= 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; s=default; bh=YYvaSuqwBQ9lWNNfLN +pltCbDQg=; b=xx4J+oCK6xBuLzmX0YymK1LTSPULeklQhWbuBj4c/o8Az27DAJ WoSRAfAapxbGaU6CSsYa7TcViySapfRBXJt85yorrwkpPKdAHLKTocECeAznrHX9 8lvGe2S5aWr0qGI/FGqOYA0EJOxGKXJ4WzFcKDokECOsmcm6e9D7WM34g= Received: (qmail 2115 invoked by alias); 17 Sep 2018 12:50:44 -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 2088 invoked by uid 89); 17 Sep 2018 12:50:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-13.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:804 X-HELO: mail-ed1-f65.google.com Received: from mail-ed1-f65.google.com (HELO mail-ed1-f65.google.com) (209.85.208.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Sep 2018 12:50:41 +0000 Received: by mail-ed1-f65.google.com with SMTP id d8-v6so12820299edv.0 for ; Mon, 17 Sep 2018 05:50:41 -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; bh=E9JC5hRmNpm+/UWeL52K1zciFAbcaSUbA3Dug/dVj9Q=; b=rcB2RBrCCJyKm+Wv+Vwef6E0xFetHqc6CKb0t0mHG1uxwUDnKwk9X+NiWxAs/Oa3lY rGWve3SuGlAvmHa4xsbZoL8/fiOcHa+4laKRL4+vFhHxik2dIVZYsrahWn+vuHkeIguE r0/UMkmL7UyxGpRPNfhKtDJs/ugxvSM+aoRd8DsNjfPMSDcRHjkxqnyTXc+oZJF4gIri yc7Tk+BiLOT5BE0o9LSyph76a5v5Fqp/XJGWvBWExTesXUoWO+o8vczCTSozlw30zwju 5+DddfpeaBngTTfJaf7UFES6TrKVFx50lTrIJjlfMHcGwlfKxr7n+IszpANTAS6eTtb+ 6DLA== Received: from localhost.localdomain ([188.241.79.25]) by smtp.gmail.com with ESMTPSA id z56-v6sm13395078edz.54.2018.09.17.05.50.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Sep 2018 05:50:38 -0700 (PDT) From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Cc: fbedard@synopsys.com, andrew.burgess@embecosm.com Subject: [PATCH 0/2] [ARC] Bug fix, improve size figures. Date: Mon, 17 Sep 2018 15:50:25 +0300 Message-Id: <20180917125027.10946-1-claziss@gmail.com> X-IsSubscribed: yes Hi Andrew, Please find two patches, one is fixing the dmac issue with non odd-even register pairs (test added). The second patch tries to improve the size figures by managing the long immediate field. Thanks, Claudiu Claudiu Zissulescu (2): [ARC] Check for odd-even register when emitting double mac ops. [ARC] Avoid specific constants to end in limm field. gcc/config/arc/arc.md | 55 ++++++++++--------------- gcc/config/arc/constraints.md | 6 +++ gcc/testsuite/gcc.target/arc/tmac-3.c | 17 ++++++++ gcc/testsuite/gcc.target/arc/tph_addx.c | 53 ++++++++++++++++++++++++ 4 files changed, 97 insertions(+), 34 deletions(-) create mode 100644 gcc/testsuite/gcc.target/arc/tmac-3.c create mode 100644 gcc/testsuite/gcc.target/arc/tph_addx.c