The attached example is vectorized in a sense of SSE2 but not in a sense of AVX. There are no ymm register references in the assembly source. When I replace the X-1 index with X in line 13 then I get true AVX code. Is there something I overlooked ? Thanks for any hints.
The command line is
/opt/intel/composer_xe_2013.2.146/bin/intel64/ifort -r8 -O3 -xAVX -vec-report6 -c -S test.f90