https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117001
--- Comment #1 from Robert Hardwick <Robert.Hardwick at arm dot com> --- Apolgies, i've got that the wrong way around. With -O3 -fno-tree-loop-vectorize -march=armv8.2-a+sve output is CORRECT [0, 0, 0, 1, 0, 1, 1, 0] with -O3 -march=armv8.2-a+sve output is INCORRECT [0, 0, 0, 1, 0, 0, 1, 0]