http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51890
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-18 10:06:07 UTC --- You need to enable -fno-math-errno as sqrt may set errno which we cannot vectorize. Then the loop is vectorized (-ffast-math conveniently also enables -fno-math-errno).