This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
inline assembly vs. intrinsic functions
- From: roy rosen <roy dot 1rosen at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 26 Oct 2010 07:54:36 +0200
- Subject: inline assembly vs. intrinsic functions
Hi,
I am trying to demonstrate my port capabilities.
I am writing an application which needs to use instructions like max
a,b,c,d,e,f where a,b,c are inputs and d,e,f are outputs.
Is that possible to write an intrinsic function for that?
I think not because that means that I need to pass d,e,f by reference
which means that they would be in memory and not in a register as
meant by the instruction.
Is there any port with such an example?
So, I thought of implementing that with inline assembly but here I
encounter a different problem: The compiler does not understand the
instruction given in inline assembly and therefore it does not
parallelize it with other insns.
Is there any other solution for that which I don't see?
Thanks, Roy.