This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/33846] [4.3 Regression] ICE in trunc_int_for_mode, at explow.c:55
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Oct 2007 06:05:25 -0000
- Subject: [Bug rtl-optimization/33846] [4.3 Regression] ICE in trunc_int_for_mode, at explow.c:55
- References: <bug-33846-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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