Hi, tree-prof/pr66295.c fails for me with: ... /tmp/ccNQJq0U.s: Assembler messages: /tmp/ccNQJq0U.s:102: Error: no such instruction: `vpxord %zmm0,%zmm0,%zmm0' /tmp/ccNQJq0U.s:127: Error: no such instruction: `vpxord %zmm0,%zmm0,%zmm0' ...
The test-case builds clones for the following architectures: ... __attribute__ ((target_clones("avx,avx2,avx512f,default"))); ... Following the logic in check_effective_target_vect_simd_clones: ... # On i?86/x86_64 #pragma omp declare simd builds a sse2, avx, # avx2 and avx512f clone. Only the right clone for the # specified arch will be chosen, but still we need to at least # be able to assemble avx512f. if { (([istarget i?86-*-*] || [istarget x86_64-*-*]) && [check_effective_target_avx512f]) } { set et_vect_simd_clones_saved($et_index) 1 } ... we fix the fail by adding a check for effective target avx512f. Tested on x86_64 with -m64/-m32. Committed as trivial. Thanks, - Tom
Require effective target avx512f for tree-prof/pr66295.c 2017-04-29 Tom de Vries <t...@codesourcery.com> * gcc.dg/tree-prof/pr66295.c: Require effective target avx512f. --- gcc/testsuite/gcc.dg/tree-prof/pr66295.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/tree-prof/pr66295.c b/gcc/testsuite/gcc.dg/tree-prof/pr66295.c index d7d64c4..36a30ac 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/pr66295.c +++ b/gcc/testsuite/gcc.dg/tree-prof/pr66295.c @@ -1,5 +1,6 @@ /* { dg-require-ifunc "" } */ /* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } } */ +/* { dg-require-effective-target avx512f } */ /* { dg-options "-O2" } */ static double bar (double *__restrict, double *__restrict, int)