[LLVMdev] Swaps of FP registers

Scott Graham scott.llvm at h4ck3r.net
Tue Jul 3 17:10:21 PDT 2007


On 7/3/07, Fernando Magno Quintao Pereira <fernando at cs.ucla.edu> wrote:
>
>      what is the best way to implement a swap of floating point registers
> in X86? For the integer registers, I am using xchg. Is there a similar
> instruction for floating point?


FXCH swaps stN with st0, but you'd have to use memory for arbitrary swaps I
believe. I have no idea if it's the "best" though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070703/a30febcb/attachment.html>


More information about the llvm-dev mailing list