PR c++/83778
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Call
fold_for_warn before checking if arg2 is INTEGER_CST.
From-SVN: r256599
+2018-01-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/83778
+ * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Call
+ fold_for_warn before checking if arg2 is INTEGER_CST.
+
2018-01-12 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/predicates.md (load_multiple_operation): Delete.
tree call = NULL_TREE;
int nunits = GET_MODE_NUNITS (mode);
+ arg2 = fold_for_warn (arg2);
+
/* If the second argument is an integer constant, if the value is in
the expected range, generate the built-in code if we can. We need
64-bit and direct move to extract the small integer vectors. */
arg0 = (*arglist)[0];
arg1 = (*arglist)[1];
arg1_type = TREE_TYPE (arg1);
- arg2 = (*arglist)[2];
+ arg2 = fold_for_warn ((*arglist)[2]);
if (TREE_CODE (arg1_type) != VECTOR_TYPE)
goto bad;