https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69710
--- Comment #13 from Doug Gilmore <doug.gilmore at imgtec dot com> --- I think this should be fairly straightforward to fix in the autovectorization pass. Hopefully I should be able to post a patch in the next few days.