<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><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 <vargaz@gmail.com><br><b><span style="font-weight: bold;">To:</span></b>
Evan Cheng <evan.cheng@apple.com><br><b><span style="font-weight: bold;">Cc:</span></b> LLVM Developers Mailing List <llvmdev@cs.uiuc.edu><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><br>
<meta http-equiv="x-dns-prefetch-control" content="off">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>
<meta http-equiv="x-dns-prefetch-control" content="on"></div></div></blockquote>
<!-- cg27.c2.mail.ac4.yahoo.com compressed/chunked Tue Dec 8 07:51:03 PST 2009 -->
</div><br>
</body></html>