Hi folks,
(I wanted to get this to the list before my EOD..) :-)
This is a simplified test that is failing for me on Power8, BE, when
gimple-folding is disabled.
I noticed this while working testcase patches for the mergehl folding,
but this is a pre-existing issue.
The majority of the builtins-1-be.c test is OK, so possibly just this
one intrinsic that has the underlying issue.
--><--
/* { dg-do compile { target { powerpc64-*-* } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } {
"-mcpu=power8" } } */
// ICE on power8 BE in ira code with -mno-fold-gimple. works OK with
-mfold-gimple.
/* { dg-options "-mcpu=power8 -O0 -mno-fold-gimple" } */
#include <altivec.h>
int main ()
{
vector long long l3 = {5L, 14L};
vector long long l4 = {7L, 24L};
vector long long l7 = vec_div (l3, l4);
return 0;
}
/home/willschm/gcc/build/gcc-mainline-baseline/gcc/xgcc
-B/home/willschm/gcc/build/gcc-mainline-baseline/gcc/
/home/willschm/gcc/testme.c -fno-diagnostics-show-caret
-fdiagnostics-color=never -mcpu=power8 -O0 -ffat-lto-objects -S -m32 -o
builtins-1-be.s -dap -mno-fold-gimple -da
gimple folding of rs6000 builtins has been disabled.
during RTL pass: ira
dump file: testme.c.278r.ira
/home/willschm/gcc/testme.c: In function ‘main’:
/home/willschm/gcc/testme.c:16:1: internal compiler error: in
elimination_costs_in_insn, at reload1.c:3633
0x108a05af elimination_costs_in_insn
/home/willschm/gcc/gcc-mainline-baseline/gcc/reload1.c:3630
0x108a8be7 calculate_elim_costs_all_insns()
/home/willschm/gcc/gcc-mainline-baseline/gcc/reload1.c:1607
0x106f79b7 ira_costs()
/home/willschm/gcc/gcc-mainline-baseline/gcc/ira-costs.c:2249
0x106ef2d3 ira_build()
/home/willschm/gcc/gcc-mainline-baseline/gcc/ira-build.c:3421
0x106e30af ira
/home/willschm/gcc/gcc-mainline-baseline/gcc/ira.c:5292
0x106e30af execute
/home/willschm/gcc/gcc-mainline-baseline/gcc/ira.c:5603
Please submit a full bug report,
with preprocessed source if appropriate.
On Wed, 2018-01-17 at 11:31 -0600, Segher Boessenkool wrote:
<...>
> > My regression test results suggest that the addition of the
> > -mno-fold-gimple option to the existing testcases appears to have
> > uncovered an ICE, so pausing for the moment...
>
> Good luck :-) If you are reasonably certain the bug is not in your patch
> (but pre-existing), please do commit the patch.
>
>
> Segher
>