Building the following testcase with -O -ftree-vectorize on x86_64:
long test (int *x) { unsigned long sx, xprec;
sx = *x >= 0 ? *x : -*x;
xprec = sx * 64;
if (sx < 16384) foo (sx);
return xprec; }
results in an ICE:
crash1.c:5:1: internal compiler error: vector VEC(vec_void_p,base) index domain error, in vinfo_for_stmt at tree-vectorizer.h:628
(When building with --disable-checking, we get a segmentation fault instead.)
Building the following testcase with -O -ftree-vectorize on x86_64:
long
test (int *x)
{
unsigned long sx, xprec;
sx = *x >= 0 ? *x : -*x;
xprec = sx * 64;
if (sx < 16384)
foo (sx);
return xprec;
}
results in an ICE:
crash1.c:5:1: internal compiler error: vector VEC(vec_ void_p, base) index domain error, in vinfo_for_stmt at tree-vectorizer .h:628
(When building with --disable-checking, we get a segmentation fault instead.)