From patchwork Fri Aug 15 02:52:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 380063 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 2AB92140088 for ; Fri, 15 Aug 2014 12:53:09 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:from:to:subject; q=dns; s=default; b=Uyzh5cVd+WYZXgL c1LZ9gjWFAqQIBcnUnjrx6CPwXQOsjOiqbFDtTrOJbAivGppvsqmDPdXGIb/BWY4 0XvlSTdMVYuT4wqr+to74I3LtVW21nKiePhRtVBDfcyA0rondCiUthOB50dn8+zB 5nciNzTViHc8HrQfwS+7N8U/kOlY= 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:date :message-id:from:to:subject; s=default; bh=vUNNlAOr0jIWZXtGonR78 ODdt2k=; b=nSehECriDUZDTTj2eXj1m3misG+oRacCV4f8lSN1ofP3QdUhQBs83 +ocV280xn2uZWnKjHT5nkVlYY0x+uvCBsl6LTuLwdsZglpfl2228y8mb90GLR+jH GFc4XOe0Ld85XnDfhrMNkjVbb8LQvSqYeBUqFjMW2izw7T5+c2o8Pg= Received: (qmail 9280 invoked by alias); 15 Aug 2014 02:53:03 -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 9267 invoked by uid 89); 15 Aug 2014 02:53:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 15 Aug 2014 02:53:01 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7F2r0Aw010971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 14 Aug 2014 22:53:00 -0400 Received: from greed.delorie.com (ovpn-113-70.phx2.redhat.com [10.3.113.70]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7F2qxKC012792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 14 Aug 2014 22:52:59 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1]) by greed.delorie.com (8.14.4/8.14.4) with ESMTP id s7F2qwMW006221 for ; Thu, 14 Aug 2014 22:52:58 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.4/8.14.4/Submit) id s7F2qwS2006220; Thu, 14 Aug 2014 22:52:58 -0400 Date: Thu, 14 Aug 2014 22:52:58 -0400 Message-Id: <201408150252.s7F2qwS2006220@greed.delorie.com> From: DJ Delorie To: gcc-patches@gcc.gnu.org Subject: [rl78] allow global+acc X-IsSubscribed: yes Minor optimization. Committed. * config/rl78/rl78-real.md (addqi3_real): Allow adding global variables to the accumulator. Index: config/rl78/rl78-real.md =================================================================== --- config/rl78/rl78-real.md (revision 213996) +++ config/rl78/rl78-real.md (working copy) @@ -96,13 +96,13 @@ ;;---------- Arithmetic ------------------------ (define_insn "*addqi3_real" [(set (match_operand:QI 0 "nonimmediate_operand" "=rvWabWhlWh1,rvWabWhlWh1,a,*bcdehl") (plus:QI (match_operand:QI 1 "general_operand" "%0,0,0,0") - (match_operand:QI 2 "general_operand" "K,L,RWhlWh1i,a"))) + (match_operand:QI 2 "general_operand" "K,L,RWhlWh1Wabi,a"))) ] "rl78_real_insns_ok ()" "@ inc\t%0 dec\t%0 add\t%0, %2