NCG lowering of sqrt

Ben Gamari ben at
Fri Apr 28 15:01:26 UTC 2017

Ryan Yates <fryguybob at> writes:

> Hi Kavon,
> I looked a bit and it does not appear that there is an SSE sqrt in the
> native code gen.  It should be easy to add (see a similar addition here:
>  The x87 version was available for
> 32-bit.  I think if you use the LLVM backend it will give you the SSE sqrt.
Indeed. I pushed a starting point to D3508; I haven't validated it but
there's a chance it will work. If not it would be great if someone could
pick it up. Otherwise I'll return to it when I have time.


- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <>

More information about the ghc-devs mailing list