From: Bill Seurer, 507-253-3502, seurer@us.ibm.com <(no_default)> Date: Thu, 9 Jul 2020 21:41:38 +0000 (-0500) Subject: rs6000: Fix __builtin_altivec_mask_for_load to use correct type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6b7ba5de624f2a17d799bac5ff017cd065ce035;p=gcc.git rs6000: Fix __builtin_altivec_mask_for_load to use correct type gcc/ChangeLog: PR target/95581 * config/rs6000/rs6000-call.c: Add new type v16qi_ftype_pcvoid. (altivec_init_builtins) Change __builtin_altivec_mask_for_load to use v16qi_ftype_pcvoid with correct number of parameters. --- diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c index 4e840e260a6..213673dfe30 100644 --- a/gcc/config/rs6000/rs6000-call.c +++ b/gcc/config/rs6000/rs6000-call.c @@ -12843,6 +12843,10 @@ altivec_init_builtins (void) = build_function_type_list (opaque_V4SI_type_node, long_integer_type_node, pcvoid_type_node, NULL_TREE); + tree v16qi_ftype_pcvoid + = build_function_type_list (V16QI_type_node, + pcvoid_type_node, + NULL_TREE); tree v16qi_ftype_long_pcvoid = build_function_type_list (V16QI_type_node, long_integer_type_node, pcvoid_type_node, @@ -13245,7 +13249,7 @@ altivec_init_builtins (void) targetm.vectorize.builtin_mask_for_load. */ decl = add_builtin_function ("__builtin_altivec_mask_for_load", - v16qi_ftype_long_pcvoid, + v16qi_ftype_pcvoid, ALTIVEC_BUILTIN_MASK_FOR_LOAD, BUILT_IN_MD, NULL, NULL_TREE); TREE_READONLY (decl) = 1;