------- Comment #2 from tbm at cyrius dot com 2007-10-21 06:05 -------
/* Testcase by Martin Michlmayr <[EMAIL PROTECTED]> */
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize" } */
int clamp_val (int i)
{
return ~i >> 31;
}
void _mix_some_samples (long buf, int *mix_buffer, int mix_size)
{
int i;
signed int *p = mix_buffer;
for (i = mix_size ; i > 0; i--)
{
*((short *) buf) = clamp_val ((*p) + 0x800000);
buf += 2;
p++;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33846
