From: Bill Schmidt Date: Fri, 17 Dec 2021 16:39:00 +0000 (-0600) Subject: rs6000: Fix fake vec_promote overload X-Git-Tag: basepoints/gcc-13~2270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfedfc304ad2159acbff1d89e707e359e97353bf;p=thirdparty%2Fgcc.git rs6000: Fix fake vec_promote overload rs6000-overload.def defines one instance of vec_promote so that it can be registered with the front end. Actual expansion of the vec_promote overload is done with special-case code in rs6000-c.c. During another cleanup, I observed that the fake instance has the wrong number of arguments. Fix that. 2021-12-17 Bill Schmidt gcc/ * config/rs6000/rs6000-overload.def (__builtin_vec_promote): Add second argument. --- diff --git a/gcc/config/rs6000/rs6000-overload.def b/gcc/config/rs6000/rs6000-overload.def index 531a4fcd1af9..2b2853918c03 100644 --- a/gcc/config/rs6000/rs6000-overload.def +++ b/gcc/config/rs6000/rs6000-overload.def @@ -3021,7 +3021,7 @@ ; is replaced by a constructor. The single overload here causes ; __builtin_vec_promote to be registered with the front end so that can happen. [VEC_PROMOTE, vec_promote, __builtin_vec_promote] - vsi __builtin_vec_promote (vsi); + vsi __builtin_vec_promote (vsi, const int); ABS_V4SI PROMOTE_FAKERY [VEC_RE, vec_re, __builtin_vec_re]