search for: rcpps

Displaying 11 results from an estimated 11 matches for "rcpps".

Did you mean: rcpp
2008 May 20
2
[LLVMdev] Making use of SSE intrinsics
Hi all, I'd like to make use of some specific x86 Streaming SIMD Extension instructions, but I don't know where to start. For instance the 'rcpps' instructions computes a low precision but fast reciprocal. I've noticed that LLVM supports intrinsics, but I couldn't find any information on how to use them. I've tried digging through the LLVM-GCC code but it's just too complex for me. I would be very grateful if someone coul...
2008 May 22
4
[LLVMdev] SSE intrinsic alignment bug?
...ction::arg_iterator args = function->arg_begin(); BasicBlock *entryBlock = new BasicBlock("", function, 0); LLVMBuilder *builder = new LLVMBuilder(entryBlock); { Value *out_arg = args++; Value *in_arg = args++; Function *rcpps = Intrinsic::getDeclaration(module, Intrinsic::x86_sse_rcp_ps); Value *in = builder->Insert(new LoadInst(in_arg, "", false, 1)); Value *out = builder->CreateCall(rcpps, in); builder->Insert(new StoreInst(out, out_arg, false, 1)...
2008 May 20
0
[LLVMdev] Making use of SSE intrinsics
On Tue, May 20, 2008 at 5:03 AM, Nicolas Capens <nicolas at capens.net> wrote: > LoadInst *x = new LoadInst(ptr_x, "", false, basicBlock); > > // y = rcpps(x) // FIXME > StoreInst *storeResult = new StoreInst(y, ptr_y, false, basicBlock); Using an IRBuilder, something like the following (uncompiled, but it's at least approximately right): Value* x = Builder.CreateLoad(ptr_x); Function* rcpps = Intrinsic::getDeclaration(Module, Intrinsic::x86...
2008 May 22
2
[LLVMdev] SSE intrinsic alignment bug?
...ligned; on other targets there should be code in the function prologue to force it to be aligned. On May 22, 2008, at 4:36 PM, Nicolas Capens wrote: > Small typo, for the correct assembly code I meant: > > mov eax,dword ptr [esp+8] > movups xmm0,xmmword ptr [eax] > rcpps xmm1,xmm0 > mov eax,dword ptr [esp+4] > movups xmmword ptr [eax],xmm1 > ret > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/l...
2008 May 23
2
[LLVMdev] SSE intrinsic alignment bug?
...ally >> a bug or something I’m not doing correctly, or whether it’s already >> being addressed. The following thread appears to talk about >> something similar:http://thread.gmane.org/gmane.comp.compilers.llvm.devel/9476/focus=9478 > > Looking at LLVM's definition of the rcpps intrinsic, this looks like > a bug to me (RCPPSm_Int uses a plain load; it looks like it > should be using memopv4f32). > > Dan > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.e...
2008 May 22
0
[LLVMdev] SSE intrinsic alignment bug?
Small typo, for the correct assembly code I meant: mov eax,dword ptr [esp+8] movups xmm0,xmmword ptr [eax] rcpps xmm1,xmm0 mov eax,dword ptr [esp+4] movups xmmword ptr [eax],xmm1 ret -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080523/c171ce0c/attachment.html>
2008 May 22
0
[LLVMdev] SSE intrinsic alignment bug?
...e if this is really > a bug or something I’m not doing correctly, or whether it’s already > being addressed. The following thread appears to talk about > something similar:http://thread.gmane.org/gmane.comp.compilers.llvm.devel/9476/focus=9478 Looking at LLVM's definition of the rcpps intrinsic, this looks like a bug to me (RCPPSm_Int uses a plain load; it looks like it should be using memopv4f32). Dan
2008 May 23
0
[LLVMdev] SSE intrinsic alignment bug?
...bug or something I’m not doing correctly, or whether it’s already >>> being addressed. The following thread appears to talk about >>> something similar:http://thread.gmane.org/gmane.comp.compilers.llvm.devel/9476/focus=9478 >> >> Looking at LLVM's definition of the rcpps intrinsic, this looks like >> a bug to me (RCPPSm_Int uses a plain load; it looks like it >> should be using memopv4f32). >> >> Dan >> >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at c...
2013 Jan 01
0
[LLVMdev] git repository of the tutorial
...ix it and test for others also.) I have pulled llvm from github. The last commit is this. commit 5284f976327d789b9e52089ff684fb36f6d964dd Author: Craig Topper <craig.topper at gmail.com> Date: Tue Jan 1 00:11:07 2013 +0000 Merge AVX/SSE instruction definitions for SQRTPS/PD, RSQRTPS, RCPPS. No funcitonal change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 171337 91177308-0d34-0410-b5e6-96231b3b80d8 But when I compile it. I still get the following link error. I don't understand why the architecture is not correct. My machine is Mac OS X 10.8.2. ~/d...
2013 Jan 01
1
[LLVMdev] git repository of the tutorial
...ve pulled llvm from github. > > The last commit is this. > commit 5284f976327d789b9e52089ff684fb36f6d964dd > Author: Craig Topper <craig.topper at gmail.com> > Date: Tue Jan 1 00:11:07 2013 +0000 > > Merge AVX/SSE instruction definitions for SQRTPS/PD, RSQRTPS, > RCPPS. No funcitonal change intended. > > git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 171337 > 91177308-0d34-0410-b5e6-96231b3b80d8 > > > But when I compile it. I still get the following link error. I don't > understand why the architecture is not correct. My...
2012 Dec 30
3
[LLVMdev] git repository of the tutorial
Hello, I just applied changes of LLVM 3.2 and it is tested with LLVM 3.2 downloaded from the LLVM Download Page. I just worked for master branch only. The rest of the other branches need to be changed about this also. This will be done as soon as possible. (Before I fix this, If you look at the commits for this issue for master branch, you can easily fix it and test for others also.) Sorry for