https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96512
--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> --- It's ok with GCC8.4.0. /export/liuhongt/install/gcc8.4.0/bin/gcc -O1 -D_GCC_VEC_=1 -march=skylake-avx512 test.c -lm ./a.out SIMD: avx512 -- vector size = 8 :: 0 == 0 :: 0.0666667 == 0.0666667 :: 0.133333 == 0.133333 :: 0.2 == 0.2 :: 0.266667 == 0.266667 :: 0.333333 == 0.333333 :: 0.4 == 0.4 :: 0.466667 == 0.466667 :: 0.533333 == 0.533333 :: 0.6 == 0.6 :: 0.666667 == 0.666667 :: 0.733333 == 0.733333 :: 0.8 == 0.8 :: 0.866667 == 0.866667 :: 0.933333 == 0.933333 :: 1 == 1