[Bug rtl-optimization/33846] [4.3 Regression] ICE in trunc_int_for_mode, at explow.c:55
tbm at cyrius dot com
gcc-bugzilla@gcc.gnu.org
Sun Oct 21 06:05:00 GMT 2007
------- Comment #2 from tbm at cyrius dot com 2007-10-21 06:05 -------
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
/* { 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
More information about the Gcc-bugs
mailing list