Hi,<br><br>  That seems to work, thanks.<br><br>                Zoltan<br><br><div class="gmail_quote">On Tue, Dec 8, 2009 at 8:57 PM, Samuel Crow <span dir="ltr"><<a href="mailto:samuraileumas@yahoo.com">samuraileumas@yahoo.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 style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi Zoltan,<br>
<br>I think the bitcast operation is rather painless to use.  And if you want to be able to execute it on a float vector you could try putting the and operation in a function with inline linkage and that would be all that's needed to convert over and back.  BTW, bitcasting is a no-op conversion in actual code.<br>
<br>--Sam Crow<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> Zoltan Varga <<a href="mailto:vargaz@gmail.com" target="_blank">vargaz@gmail.com</a>><br><b><span style="font-weight: bold;">To:</span></b>
 Evan Cheng <<a href="mailto:evan.cheng@apple.com" target="_blank">evan.cheng@apple.com</a>><br><b><span style="font-weight: bold;">Cc:</span></b> LLVM Developers Mailing List <<a href="mailto:llvmdev@cs.uiuc.edu" target="_blank">llvmdev@cs.uiuc.edu</a>><br>
<b><span style="font-weight: bold;">Sent:</span></b> Tue, December 8, 2009 1:39:18 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] LLVM intrinsic for SSE ANDPS instruction<br></font><div class="im">
<br>
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></div></div></blockquote>

</div><br>

      </div></blockquote></div><br>