https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891

--- Comment #18 from marcus at mc dot pp.se ---
vect-iv-7.c is probably a good (small) test case to start looking at.
The source code is scalar, but gets auto-vectorized by gcc 14 at -O2.
On big endian, the result arr[] becomes

10 8 14 12 18 16 22 20 26 24 30 28 34 32 38 36 

but should be

8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38

so obviously endianness is not handled correctly here.

There is no guarantee that this is the issue hitting the attribute handler,
but since it's auto-vectorisation it could hit more or less any code.

(There is no point in bisecting here; gcc 13 simply does not do the
 auto-vectorization.)

Reply via email to