https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71647
Bug ID: 71647
Summary: aligned(x:32) in #pragma omp simd does not work
Product: gcc
Version: 6.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: niva at niisi dot msk.ru
Target Milestone: ---
Created attachment 38759
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38759&action=edit
The source file to reproduce the problem.
I use gcc (GCC) 6.1.1 20160623. The command line is:
gcc -O3 -S -mavx -fopt-info-vec-optimized -fopenmp-simd test1a.c
When I use #pragma omp simd aligned(a,b:32) in the source file (see
attachment), the compiler reports:
test1a.c:9:8: note: loop vectorized
test1a.c:9:8: note: loop peeled for vectorization to enhance alignment
But when I use #pragma omp simd aligned(a,b:4*sizeof(double)),
the alignment is taken into account, and the compiler output is:
test1a.c:9:8: note: loop vectorized
gcc 5.3.1 works ok in both cases.