On Fri, Oct 21, 2016 at 1:33 AM, Joseph Myers <jos...@codesourcery.com> wrote: > On Fri, 21 Oct 2016, Uros Bizjak wrote: > >> 2016-10-21 Uros Bizjak <ubiz...@gmail.com> >> >> * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ >> and IX86_BUILTIN_HUGE_VALQ here ... >> (ix86_expand_builtin): ... not here. >> >> Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. >> Committed to mainline SVN. > > Do you know if it's possible to make architecture-specific built-in > functions into aliases of architecture-independent ones? That would be > the ideal thing for the *q __float128 functions - make them aliases of the > *f128 architecture-independent ones, and so subject to any > architecture-independent optimizations (for these two there's nothing more > than folding to do, but at some point I expect we'll optimize fabsf128 and > copysignf128 as much as the corresponding functions for float / double / > long double, for example).
The only thing that is remotely similar to the above functionality is library name argument to add_builtin_function. Maybe this function can be enhanced to consider library_name as a true alias for arch-independent optimizations, not only as a fallback library call? Uros.