From patchwork Tue Aug 20 14:34:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenneth Zadeck X-Patchwork-Id: 268561 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 5C1FB2C0109 for ; Wed, 21 Aug 2013 00:34:35 +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 :message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; q=dns; s=default; b=CH+PfJgR+fcUKMZG S1WclgzP5ieHy5v/LQh2/bZ6uDQourBAklVv/9pOzxw4InmHTSXiyMP7R96e65KP 23LrxWBCZrTeFz90Igjue5kAtHEy0OeyWvLTDEszrZS0AtJdyck5zydkuT77WCK5 l0/rUp7gVV13O+KAI6c2PVJzsf8= 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 :message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=default; bh=gAc6WfPJpMrDSvNsW8Q1SY BFdVM=; b=Q9VW0/Lhl5uq4IhvPwSJ4qFGYlz/JpDccbVlNLI5iJbkKsvSFh9P0V 6mhysfzS9QY0q2H5yBrNTSJIbbuiYcKc2QXp+UWvxCyhEsuLFQEY8T1LX8aAmYb2 pIKTk0rv6tLdIV32IzjW60O8wbBA4C8+PkfK5fHpw/DHUo7vXbNdo= Received: (qmail 14463 invoked by alias); 20 Aug 2013 14:34:28 -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 14450 invoked by uid 89); 20 Aug 2013 14:34:28 -0000 X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.2 Received: from mail-oa0-f53.google.com (HELO mail-oa0-f53.google.com) (209.85.219.53) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 20 Aug 2013 14:34:27 +0000 Received: by mail-oa0-f53.google.com with SMTP id k18so884622oag.12 for ; Tue, 20 Aug 2013 07:34:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=VunmS3/SaB3h3PmsvElVKCUtuepO78WCBmPaYN8WLbk=; b=IqGBV4oveobcOoNxBEHYiUfSUb5/rTYHe4F1e0kB2lbGbchuPpr3qc/8nxAMdCa34r PpEgNsl+jDepBqDzyjweIRZQM6p4WxmIKu5p8eQYhum9qvB+OYCAOGRA62HACQiWsHdZ iBlBbfwZRMNZCjE8CfLQgvmh4ITfoSAmf9Jioj1AJPHoMP+eknswcp/clWJIwUb9+WJK TlC6dWFJFYgBcVB4mfhmB+oz8zIPTZ7l2gv4gnRgBAPU1S/iDaGCd/yITHLZJyAb4+uc h4nUTfCoL2ZgCUtSIl7IIuT1XJsezARoMSEojf+NMWR1JtmPX/ATNRJUP8uUwb4BsBXz v8mw== X-Gm-Message-State: ALoCoQl264Qsp3HGKyO7JKa67e4c/TpmfuDWNxNHoFZha7aGPCe9gJ8uPP0uGhxMh2iUgJ9YyYdl X-Received: by 10.42.223.134 with SMTP id ik6mr187594icb.4.1377009266073; Tue, 20 Aug 2013 07:34:26 -0700 (PDT) Received: from moria.site (pool-98-113-157-218.nycmny.fios.verizon.net. [98.113.157.218]) by mx.google.com with ESMTPSA id ri1sm583886igc.2.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Aug 2013 07:34:25 -0700 (PDT) Message-ID: <52137E6F.7040509@naturalbridge.com> Date: Tue, 20 Aug 2013 10:34:23 -0400 From: Kenneth Zadeck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: gcc-patches , Mike Stump Subject: fixed rot on the wide-int branch. Index: gcc/optabs.c =================================================================== --- gcc/optabs.c (revision 201884) +++ gcc/optabs.c (working copy) @@ -867,7 +867,8 @@ expand_subword_shift (enum machine_mode outof_input, const1_rtx, 0, unsignedp, methods); if (shift_mask == BITS_PER_WORD - 1) { - tmp = immed_wide_int_const (wide_int::minus_one (op1_mode), op1_mode); + tmp = immed_wide_int_const + (wide_int::minus_one (GET_MODE_PRECISION (op1_mode)), op1_mode); tmp = simplify_expand_binop (op1_mode, xor_optab, op1, tmp, 0, true, methods); } Index: gcc/recog.c =================================================================== --- gcc/recog.c (revision 201884) +++ gcc/recog.c (working copy) @@ -1187,8 +1187,7 @@ const_scalar_int_operand (rtx op, enum m /* Multiword partial int. */ HOST_WIDE_INT x = CONST_WIDE_INT_ELT (op, CONST_WIDE_INT_NUNITS (op) - 1); - return (wide_int::sext (x, prec & (HOST_BITS_PER_WIDE_INT - 1)) - == x); + return (sext_hwi (x, prec & (HOST_BITS_PER_WIDE_INT - 1)) == x); } } return 1;