From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6448 invoked by alias); 30 Jan 2014 17:40:42 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 6437 invoked by uid 89); 30 Jan 2014 17:40:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Jan 2014 17:40:40 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0UFo1Et018282 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 30 Jan 2014 10:50:02 -0500 Received: from stumpy.slc.redhat.com ([10.3.113.19]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s0UFo0Pq017647; Thu, 30 Jan 2014 10:50:00 -0500 Message-ID: <52EA74A8.4060303@redhat.com> Date: Thu, 30 Jan 2014 18:07:00 -0000 From: Jeff Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Paulo Matos , Andreas Schwab CC: "gcc@gcc.gnu.org" Subject: Re: Regression [v850,mep...]: sign_extend in loop breaks zero-overhead loop generation References: <19EB96622A777C4AB91610E763265F463F2F43@SJEXCHMB14.corp.ad.broadcom.com> <87bnytk0fs.fsf@igel.home> <19EB96622A777C4AB91610E763265F463F3030@SJEXCHMB14.corp.ad.broadcom.com> <871tzpjycb.fsf@igel.home> <19EB96622A777C4AB91610E763265F463F30B5@SJEXCHMB14.corp.ad.broadcom.com> In-Reply-To: <19EB96622A777C4AB91610E763265F463F30B5@SJEXCHMB14.corp.ad.broadcom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00331.txt.bz2 On 01/30/14 08:19, Paulo Matos wrote: >> -----Original Message----- >> From: Andreas Schwab [mailto:schwab@linux-m68k.org] >> Sent: 30 January 2014 15:15 >> To: Paulo Matos >> Cc: gcc@gcc.gnu.org >> Subject: Re: Regression [v850,mep...]: sign_extend in loop breaks zero-overhead >> loop generation >> >> Paulo Matos writes: >> >>> If instead I write: >>> void >>> foo (short blockSize) >>> { >>> short i; >>> unsigned short loopCount; >>> loopCount = (unsigned short) (blockSize + delayLength) % 8; >>> for (i = 0; i < loopCount; i++) >>> *temp_ptr++ = x ^ *temp_ptr; >>> } >> >> This is still undefined. >> > > OK, of course. Don't know what I am doing today. > It's undefined because 'i' might overflow... I will get back to this. Thanks for pointing this out. When you've got it sorted out, go ahead and file a BZ, include the regression markers so that it shows up in the searches most of us are paying the most attention to right now. jeff