From patchwork Wed Mar 25 05:00:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 454158 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 60BB71400EA for ; Wed, 25 Mar 2015 16:00:40 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=AHtYH5aY; dkim-adsp=none (unprotected policy); 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:date :message-id:from:to:subject; q=dns; s=default; b=jMjRgWT4q+QiN/9 +yQKBPqHecgMzDpZXL5+c0QqL6euFw+TgEerWFqcqSy6CdRrnoemccBXUB9aFoAD AZofuW73/lcZoA6hyoRINbGyHng5XOWyyuBBOgxkjZScElY4oIotryhgCcNbmGxX x/SJJTpfhCRS+jh9ZinFeSRZMoyE= 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=gXw3STZ1lC8jPtYUhKLIJ xDzuJ8=; b=AHtYH5aYVq1VFpIiFQpSGbXlWVMXc8fr4fxIx/5BLoiK7v6v5/tx4 dlFG2ItnO12QuHBCsOUo0WdycWmMes/5E7Wl5ynr66l0zumu3AGcb40vku+YwDKo IUP6Ztfp6+8D9m3BFTA8Q6svHXN7K7wZVl2sL/YI5J38wDfloRs2OM= Received: (qmail 80339 invoked by alias); 25 Mar 2015 05:00:32 -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 80323 invoked by uid 89); 25 Mar 2015 05:00:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD 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; Wed, 25 Mar 2015 05:00:30 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 82890BACAC for ; Wed, 25 Mar 2015 05:00:29 +0000 (UTC) Received: from greed.delorie.com ([10.3.113.19]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2P50S0r005067 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 25 Mar 2015 01:00:29 -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 t2P50RR0009153 for ; Wed, 25 Mar 2015 01:00:27 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.4/8.14.4/Submit) id t2P50RWt009151; Wed, 25 Mar 2015 01:00:27 -0400 Date: Wed, 25 Mar 2015 01:00:27 -0400 Message-Id: <201503250500.t2P50RWt009151@greed.delorie.com> From: DJ Delorie To: gcc-patches@gcc.gnu.org Subject: [rl78] fix 'p' test X-IsSubscribed: yes Mis-applied patch, committed. * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to correct clause. Index: config/rl78/rl78.c =================================================================== --- config/rl78/rl78.c (revision 221648) +++ config/rl78/rl78.c (working copy) @@ -1641,20 +1641,20 @@ rl78_print_operand_1 (FILE * file, rtx o && GET_CODE (XEXP (XEXP (op, 0), 0)) == REG && REGNO (XEXP (XEXP (op, 0), 0)) == 2) { rl78_print_operand_1 (file, XEXP (XEXP (op, 0), 1), 'u'); fprintf (file, "["); rl78_print_operand_1 (file, XEXP (XEXP (op, 0), 0), 0); - if (letter == 'p' && GET_CODE (XEXP (op, 0)) == REG) - fprintf (file, "+0"); fprintf (file, "]"); } else { fprintf (file, "["); rl78_print_operand_1 (file, XEXP (op, 0), letter); + if (letter == 'p' && GET_CODE (XEXP (op, 0)) == REG) + fprintf (file, "+0"); fprintf (file, "]"); } } break; case REG: