+2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+
+ PR target/71297
+ * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
+ Allow standard error handling to take over when a wrong number
+ of arguments is presented to __builtin_vec_ld () or
+ __builtin_vec_st ().
+
2016-07-08 Jiong Wang <jiong.wang@arm.com>
* config/aarch64/aarch64-simd-builtins.def (smax): Remove float
are able to honor __restrict__, for example. We may want to
consider this for all memory access built-ins.
- When -maltivec=be is specified, simply punt to existing
- built-in processing. */
+ When -maltivec=be is specified, or the wrong number of arguments
+ is provided, simply punt to existing built-in processing. */
if (fcode == ALTIVEC_BUILTIN_VEC_LD
- && (BYTES_BIG_ENDIAN || !VECTOR_ELT_ORDER_BIG))
+ && (BYTES_BIG_ENDIAN || !VECTOR_ELT_ORDER_BIG)
+ && nargs == 2)
{
tree arg0 = (*arglist)[0];
tree arg1 = (*arglist)[1];
/* Similarly for stvx. */
if (fcode == ALTIVEC_BUILTIN_VEC_ST
- && (BYTES_BIG_ENDIAN || !VECTOR_ELT_ORDER_BIG))
+ && (BYTES_BIG_ENDIAN || !VECTOR_ELT_ORDER_BIG)
+ && nargs == 3)
{
tree arg0 = (*arglist)[0];
tree arg1 = (*arglist)[1];
+2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+
+ PR target/71297
+ * gcc.target/powerpc/pr71297.c: New.
+
2016-07-08 Jiong Wang <jiong.wang@arm.com>
* gcc.target/aarch64/simd/vminmaxnm_1.c: New.