Re: NCG lowering of sqrt

2017-04-28 Thread Ben Gamari
Ryan Yates 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: > https://phabricator.haskell.org/D3265). The x87 version was available for > 32-bit. I

Re: NCG lowering of sqrt

2017-04-28 Thread Ryan Yates
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: https://phabricator.haskell.org/D3265). The x87 version was available for 32-bit. I think if you use the LLVM backend it will give you the

NCG lowering of sqrt

2017-04-28 Thread Kavon Farvardin
Given a Cmm expression such as (_c8Gq::F64) = call MO_F64_Sqrt(_s8oX::F64); // CmmUnsafeForeignCall the native code generator produces an actual call to the sqrt C function, which has the side-effect of causing all floating-point registers to be dumped as they are caller-saved. In the