[LLVMdev] SSE Scalar Convert Intrinsics

David Greene dag at cray.com
Fri Jun 5 15:19:03 PDT 2009


On Friday 05 June 2009 15:22, Eli Friedman wrote:

> > Do we need two intrinsics for these scalar converts, one to satisfy the
> > (arguably broken) GCC interface and one to really reflect the operation
> > as specified by the ISA?
>
> We really need zero intrinsics... it's quite easy to map onto existing
> LLVM instructions.  See the definition of CVTSD2SIrm.

In some cases, yes.  But not all of the X86 instructions are accessible
through LLVM IR.  And sometimes we like the ability to have our frontend
lower to intrinsics so we know EXACTLY what code will come out the other
end.

And see my previous post about sint_to_fp with a memory operand not working
in TableGen ("TableGen Type Inference").  I'll be debugging that next week,
probably.

                               -Dave



More information about the llvm-dev mailing list