Hi,

In LLVM we can use the `<vector 4 float>` type


> > -- in StgCmmPrim.hs
> > translateOp Float4AddOp    = Just (MO_F_Add  W32_4)
>
>
[#llvm <irc://irc.oftc.net/%23llvm>] LLVM: Low Level Virtual Machine:
http://llvm.org/
> Hi, if I apply '%res = fadd <vector 4 float> %arg0 %arg1' on an SSE2
capable machine, will that `fadd` instruction generate operations that work
in the XMM 128 bit register?
> i get "addps %xmm1, %xmm0" for that
> nicholas: Awesome, that's an SSE instruction. Thanks for your help.

and it will generate SSE instructions for us.

Vivian

DISCLAIMER

This transmission contains information that may be confidential. It is
intended for the named addressee only. Unless you are the named addressee
you may not copy or use it or disclose it to anyone else.
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to