This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Regression [v850,mep...]: sign_extend in loop breaks zero-overhead loop generation
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Paulo Matos <pmatos at broadcom dot com>
- Cc: "gcc\ at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 30 Jan 2014 15:29:27 +0100
- Subject: Re: Regression [v850,mep...]: sign_extend in loop breaks zero-overhead loop generation
- Authentication-results: sourceware.org; auth=none
- References: <19EB96622A777C4AB91610E763265F463F2F43 at SJEXCHMB14 dot corp dot ad dot broadcom dot com>
Paulo Matos <pmatos@broadcom.com> writes:
> 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++;
> }
You know that this is undefined code?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."