Hi,<br><br> The arguments to the 'and' instruction must be integer types or vectors of integer types. If<br>I have a compiler whose source language has support for andps by having its own intrinsics,<br>then I would have to generate code to convert the float vector into an int vector before passing<br>
it to llvm's and instruction, then convert the result back.<br><br> Zoltan <br><br><div class="gmail_quote">On Tue, Dec 8, 2009 at 8:20 PM, Evan Cheng <span dir="ltr"><<a href="mailto:evan.cheng@apple.com">evan.cheng@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5"><br>
On Dec 8, 2009, at 11:18 AM, Zoltan Varga wrote:<br>
<br>
> Hi,<br>
><br>
> LLVM is used to have an llvm.x86.and_ps instrinsic for the ANDPS instruction, but it seems to be gone, and it is a bit hard to<br>
> synthetize it from vector instructions, since 'and' only works on vectors of integer types. Would a patch be accepted which adds this and related instructions back ?<br>
<br>
</div></div>No. It won't be. Why not just generate a llvm and instruction?<br>
<br>
Evan<br>
<br>
><br>
> Zoltan<br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
</blockquote></div><br>