From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11250 invoked by alias); 30 Jul 2011 13:17:58 -0000 Received: (qmail 11242 invoked by uid 22791); 30 Jul 2011 13:17:57 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 30 Jul 2011 13:17:43 +0000 Received: by wyg30 with SMTP id 30so845379wyg.20 for ; Sat, 30 Jul 2011 06:17:42 -0700 (PDT) Received: by 10.227.60.201 with SMTP id q9mr3491078wbh.52.1312031862112; Sat, 30 Jul 2011 06:17:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.209.76 with HTTP; Sat, 30 Jul 2011 06:17:22 -0700 (PDT) In-Reply-To: References: <4E312C6A.8040301@gnu.org> <4E325477.60705@gnu.org> From: Paolo Bonzini Date: Sat, 30 Jul 2011 16:35:00 -0000 Message-ID: Subject: Re: PING: PATCH [4/n]: Prepare x32: Permute the conversion and addition if one operand is a constant To: "H.J. Lu" Cc: Uros Bizjak , gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 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 X-SW-Source: 2011-07/txt/msg02745.txt.bz2 On Sat, Jul 30, 2011 at 00:32, H.J. Lu wrote: > The whole approach doesn't work. The testcase at > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49721#c1 > > shows GCC depends on transforming: > > (zero_extend:DI (plus:SI (FOO:SI) (const_int Y))) > > to > > (plus:DI (zero_extend:DI (FOO:SI)) (const_int Y)) > > Otherwise we either get compiler crash or wrong codes. Please explain how/why here or in the BZ. Compiler crashes can be fixed, wrong code is often a symptom of latent bugs. Paolo