[Bug target/126784] Sub-optimal code sequence for __builtin_convertvector
"liuhongt at gcc dot gnu.org via Gcc-bugs" <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126784
--- Comment #2 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
>
> which have 1 less builtin_convertvector, and benifits more when v2si support
> min/max but v2di doesn't support min/max,
v2si
f1 (v2si a, v2si b, v2di *p)
{
v2si zz = a < b ? a : b;
v2di z = __builtin_convertvector (zz, v2di);
*p = z;
return __builtin_convertvector (z, v2si);
}