This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: More ia64 intrinsics
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: 19 Jun 2003 21:12:29 -0700
- Subject: Re: RFC: More ia64 intrinsics
- Organization: CodeSourcery, LLC
- References: <20030620021942.GA24799@lucon.org>
On Thu, 2003-06-19 at 19:19, H. J. Lu wrote:
> Intel C++ compiler defines quite a few intrinsics for ia64:
>
> http://www.tacc.utexas.edu/resources/user_guides/intel/c_ug/
>
> There are 4 categories of intrinsics:
>
> 1. Native intrinsics.
> 2. Lock and atomic operation related intrinsics
> 3. Operating system related intrinsics.
> 4. MMX/SSE intrinsics.
>
> I don't know how useful MMX/SSE intrinsics for ia64 are. But #1, #2
> and #3 are useful in user space and kernel. I'd like to submit a
> patch to provide the same functionality. However, I am not sure if
> gcc should use the same intrinsic names like
>
> long _InterlockedIncrement(long *addend)
>
> Increment the addend by one atomically. Maps to the fetchadd4
> instruction.
I think we should just use the Intel names. There's no need to be
gratuitously incompatible.
--
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC