This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Support some Intel intrinsics in the IA-64 backend
- From: Andreas Schwab <schwab at suse dot de>
- To: "Roger Sayle" <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Richard Henderson" <rth at redhat dot com>
- Date: Mon, 12 Mar 2007 19:30:33 +0100
- Subject: Re: [PATCH] Support some Intel intrinsics in the IA-64 backend
- References: <4370.208.41.78.162.1173722505.squirrel@mail.eyesopen.com>
"Roger Sayle" <roger@eyesopen.com> writes:
> ! #ifndef _IA64INTRIN_H_INCLUDED
> ! #define _IA64INTRIN_H_INCLUDED
> !
> ! /* The data types intended for user use. */
> ! typedef long __m64 __attribute__ ((__vector_size__ (8)));
> ! typedef long __int64;
> !
> ! static inline __int64 __attribute__((__always_inline__))
> ! _i64_popcnt (__int64 __A)
> ! {
> ! return (__int64) __builtin_popcountl (__A);
> ! }
> !
> ! extern inline __m64 __attribute__((__always_inline__))
> ! _m64_mux1 (__m64 __A, const int __N)
> ! {
> ! return (__m64) __builtin_ia64_mux1 ((long) __A, __N);
> ! }
Some are static inline, some extern inline.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."