PR target/71270
* config/arm/arm.c (neon_valid_immediate): Reject vector constants
in big-endian mode when they are not a single duplicated value.
From-SVN: r244716
+2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ PR target/71270
+ * config/arm/arm.c (neon_valid_immediate): Reject vector constants
+ in big-endian mode when they are not a single duplicated value.
+
2017-01-20 Richard Biener <rguenther@suse.de>
* BASE-VER: Bump to 7.0.1.
return 18;
}
+ /* The tricks done in the code below apply for little-endian vector layout.
+ For big-endian vectors only allow vectors of the form { a, a, a..., a }.
+ FIXME: Implement logic for big-endian vectors. */
+ if (BYTES_BIG_ENDIAN && vector && !const_vec_duplicate_p (op))
+ return -1;
+
/* Splat vector constant out into a byte vector. */
for (i = 0; i < n_elts; i++)
{