Re: Missing POWER9 built-in functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 20, 2023 at 12:52:48AM -0700, Matthew R. Wilson wrote:
> I have gcc-generated .s files built with -mcpu=power9 -mfloat128 and
> they generated `bl __gcc_qadd` to perform the addition, which is why I
> started going down the path of looking into the built-in functions.
> 
> But sure enough, I just tried it with my local GCC and it does directly
> generate the xsaddqp instructions now. So I'm not sure what went wrong
> with the compiler flags or whatever else with the earlier tests I have.

You used "long double" and you didn't use "-mabi=ieeelongdouble".  You
can instead use "__ieee128" for the types, which will always work (for
some version of "always"...  You need to compile for at least a power8).


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux