On Power 8 LE the following builtin test function produce an internal compiler error when compiled with the command: gcc -c -m64 -mcpu=power7 <file name> gcc/testsuite/gcc.target/powerpc/builtins-3-runnable.c during RTL pass: vregs gcc/testsuite/gcc.target/powerpc/fold-vec-neg-longlong.p8.c during RTL pass: vregs gcc/testsuite/gcc.target/powerpc/fold-vec-neg-longlong.p9.c during RTL pass: vregs gcc/testsuite/gcc.target/powerpc/sse2-pmuludq-1.c during RTL pass: expand For completeness, the following also fails and has an existing PR for it. gcc/testsuite/gcc.target/powerpc/builtin-fctid-fctiw-runnable.c during RTL pass: reload Note, existing PR 83964,
GCC trunk commit 257752 fixed the issue with: gcc/testsuite/gcc.target/powerpc/builtins-3-runnable.c during RTL pass: vregs
Moved Power 8 vec_float2, vec_signed2 and vec_unsigned2 builtin tests to new file builtins-3-runnable-p8.c. Fixed ICE for vec_signed2 and vec_unsigned2 which were found in builtins-3-runnable.c once the vec_float2 test was moved to a P8 test file. Commit 257937.
gcc/testsuite/gcc.target/powerpc/sse2-pmuludq-1.c Test requres Power 8 as a minimum. Compiling with -mcpu=power7 generates an ICE but the test requires Power8. So the ICE shouldn't be an issue under normal testing conditions.
gcc/testsuite/gcc.target/powerpc/fold-vec-neg-longlong.p8.c during RTL pass: vregs gcc/testsuite/gcc.target/powerpc/fold-vec-neg-longlong.p9.c during RTL pass: vregs Both tests fixed with mainline commit 258006 on 2/26/2018
Author: carll Date: Wed Mar 14 23:01:12 2018 New Revision: 258539 URL: https://gcc.gnu.org/viewcvs?rev=258539&root=gcc&view=rev Log: gcc/ChangeLog: 2018-03-14 Carl Love <cel@us.ibm.com> PR target/84422 * config/rs6000/rs6000-builtin.def: Change expansion for VMULESW to BU_P8V_AV_2. Change expansion for VMULEUW to BU_P8V_AV_2. * config/rs6000/rs6000.c: Change ALTIVEC_BUILTIN_VMULESW to P8V_BUILTIN_VMULESW. Change ALTIVEC_BUILTIN_VMULEUW to P8V_BUILTIN_VMULEUW. Change ALTIVEC_BUILTIN_VMULOSW to P8V_BUILTIN_VMULOSW. Change ALTIVEC_BUILTIN_VMULOUW to P8V_BUILTIN_VMULOUW. * config/rs6000/rs6000-c.c: Change ALTIVEC_BUILTIN_VMULESW to P8V_BUILTIN_VMULESW. Change ALTIVEC_BUILTIN_VMULEUW to P8V_BUILTIN_VMULEUW. Change ALTIVEC_BUILTIN_VMULOSW to P8V_BUILTIN_VMULOSW. Change ALTIVEC_BUILTIN_VMULOUW to P8V_BUILTIN_VMULOUW. Modified: trunk/gcc/config/rs6000/rs6000-builtin.def trunk/gcc/config/rs6000/rs6000-c.c trunk/gcc/config/rs6000/rs6000.c
gcc/testsuite/gcc.target/powerpc/builtin-fctid-fctiw-runnable.c was fixed by reverting the patch that added them. Commit 258492 gcc/testsuite/gcc.target/powerpc/sse2-pmuludq-1.c was fixed by commit 258539 At this point all of the test cases that were generating and ICE for -mcpu=power7 have been fixed. Closing the issue.