From patchwork Wed Sep 10 07:27:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 387595 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 75812140170 for ; Wed, 10 Sep 2014 17:31:25 +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 :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=psYeCstDdn8mWSEz7553mZNWpnew7F66urqSkjehtt0n5qinaNmW5 8GL8LUWs1IubmXd6YowNa2ghrAUTIjNJtoyPzke+KtsRQbgJxWAKc3rF4dR/kvUQ NYWmBK68GNHegMkcsUs6E1Un81/mmtiF3z6Sd9NpZ/PSuWYfp5Ri1c= 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 :from:to:subject:message-id:mime-version:content-type; s= default; bh=EEk2pKVExi2PrCkoD4DxWcNH07c=; b=rh5L51d/GafSJqmcPDCO SUTkXjPpOzmxijrKe3eYAoo03D4DZXti5UJlLsg+yANhS80xxKl/s7a9uU6CfMAH OzNjrzeo717QpjaWTych6oBv82zdSJkVbcLmfbcYbPEuqun9XejjPrBBaFz3rAR/ 5/jct0aKtMGVXQKzx9dm8bI= Received: (qmail 26575 invoked by alias); 10 Sep 2014 07:31:18 -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 26560 invoked by uid 89); 10 Sep 2014 07:31:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 10 Sep 2014 07:31:13 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 48F88AB08 for ; Wed, 10 Sep 2014 07:31:10 +0000 (UTC) Date: Wed, 10 Sep 2014 09:27:39 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH][match-and-simplify] Fix last commit Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Committed. Richard. 2014-09-10 Richard Biener * match-conversions.pd: Fix unsigned type used for shortened multiplication. Index: gcc/match-conversions.pd =================================================================== --- gcc/match-conversions.pd (revision 215057) +++ gcc/match-conversions.pd (working copy) @@ -59,10 +59,9 @@ && TYPE_PRECISION (type) < TYPE_PRECISION (TREE_TYPE (@0))) (if (TYPE_OVERFLOW_WRAPS (type)) (mult (convert @0) (convert @1))) - (with { tree utype = unsigned_type_for (TREE_TYPE (@0)); } + (with { tree utype = unsigned_type_for (type); } (convert (mult (convert:utype @0) (convert:utype @1)))))) - /* For integral conversions with the same precision or pointer conversions use a NOP_EXPR instead. */ (simplify