From patchwork Tue Dec 16 06:47:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chung-Ju Wu X-Patchwork-Id: 421804 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 0BA9B1400B7 for ; Tue, 16 Dec 2014 17:47:46 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=pc5ycEVRYHWgNUWJ5U8e94F11RdOLBbwlhayNkaIUF1 HXrq95HjhkrYcjmrKXjwVsWYIM3tW9uaOwZhQoMqlIKTQYkzBopAFy0HmrhEEyUO U1WIRHm9aZDbjTKhOBCyne8sKDvw+sgHrgTvW6VGJYlw8M3S4m/EnH8oaNf1MuaE = 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 :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=kAYxkJn8K88Gx/CvasN1LbyOZ0Y=; b=EO8krHduczm431h+2 WToJZP/w2CNe8O0z/oxSIb8POt8hRHMS4QIrwo7JnHRm43V3YWsow6VMHYRkLA+l UgL70f4eHoZ/fdcgh1JpP/nSyHvkA5qqvyJPDN0QiX5tXxlAURISwDfQV7aXG2pm hNVYXo1UTbE86wviPZGpwBYzWM= Received: (qmail 19474 invoked by alias); 16 Dec 2014 06:47:35 -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 19458 invoked by uid 89); 16 Dec 2014 06:47:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f171.google.com Received: from mail-ig0-f171.google.com (HELO mail-ig0-f171.google.com) (209.85.213.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 16 Dec 2014 06:47:33 +0000 Received: by mail-ig0-f171.google.com with SMTP id z20so6388757igj.4 for ; Mon, 15 Dec 2014 22:47:30 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.43.227 with SMTP id z3mr1035071igl.46.1418712450538; Mon, 15 Dec 2014 22:47:30 -0800 (PST) Received: by 10.107.136.215 with HTTP; Mon, 15 Dec 2014 22:47:30 -0800 (PST) Date: Tue, 16 Dec 2014 14:47:30 +0800 Message-ID: Subject: [PATCH] Fix PR64217 From: Chung-Ju Wu To: gcc patches Cc: Kito Cheng , Vladimir Makarov X-IsSubscribed: yes Hi, all, In nds32 port, there is a wrong design in "casesi_internal" pattern. Since clobber always discards the previous value, it should have constraint modifier '=' so that LRA is able to correctly handle the register live info. So we have this patch to fix the issue. Committed as Rev.218774. Best regards, jasonwucj Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 218773) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,9 @@ +2014-12-16 Chung-Ju Wu + + PR target/64217 + * config/nds32/nds32.md (casesi_internal): Add '=r' for clobber + register constraint. + 2014-12-15 DJ Delorie * config/rl78/rl78.h: Remove SHORT_IMMEDIATES_SIGN_EXTEND. Index: gcc/config/nds32/nds32.md =================================================================== --- gcc/config/nds32/nds32.md (revision 218773) +++ gcc/config/nds32/nds32.md (working copy) @@ -2178,7 +2178,7 @@ (const_int 4)) (label_ref (match_operand 1 "" ""))))) (use (label_ref (match_dup 1))) - (clobber (match_operand:SI 2 "register_operand" "")) + (clobber (match_operand:SI 2 "register_operand" "=r")) (clobber (reg:SI TA_REGNUM))])] "" {