From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20669 invoked by alias); 30 May 2014 07:18:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 20659 invoked by uid 89); 30 May 2014 07:18:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f50.google.com Received: from mail-wg0-f50.google.com (HELO mail-wg0-f50.google.com) (74.125.82.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 30 May 2014 07:18:38 +0000 Received: by mail-wg0-f50.google.com with SMTP id x12so1548727wgg.9 for ; Fri, 30 May 2014 00:18:35 -0700 (PDT) X-Received: by 10.180.74.203 with SMTP id w11mr3673545wiv.27.1401434315033; Fri, 30 May 2014 00:18:35 -0700 (PDT) Received: from yakj.usersys.redhat.com (net-37-117-132-7.cust.vodafonedsl.it. [37.117.132.7]) by mx.google.com with ESMTPSA id be3sm7887780wjc.5.2014.05.30.00.18.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 May 2014 00:18:34 -0700 (PDT) Message-ID: <538830C7.4000706@gnu.org> Date: Fri, 30 May 2014 07:18:00 -0000 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: pinskia@gmail.com, "H.J. Lu" CC: GCC Patches Subject: Re: PING: PATCH [4/n]: Prepare x32: Permute the conversion and addition if one operand is a constant References: <4E18C5BE.6020809@gnu.org> <4E1AD86A.8000800@gnu.org> <4E1DC42D.1010307@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-05/txt/msg02575.txt.bz2 Il 29/05/2014 19:20, pinskia@gmail.com ha scritto: >> What is your Pmode? > > Pmode is dimode while ptr_mode is simode. Pointers are zero extended when converting between si and di modes. As you noted, the fundamental difference between x32 and aarch64 is that aarch64 will still use 64-bit accesses instead of 32-bit. Did you define the VALID_POINTER_MODE hook to rule out Pmode as a valid pointer mode? Perhaps you can use it to make this transformation conditional on VALID_POINTER_MODE(Pmode). Paolo