enhancement for gmp package to be buildable by Intel compiler on
IA64
Logovskaya, Ekaterina
ekaterina.logovskaya at intel.com
Thu Oct 16 18:36:45 CEST 2003
Hello!
The fact is that Intel compiler doesn't support asm inlines on IA64. I
didn't manage to build gmp-4.0-136 package from United linux 1.0
distribution by Intel compiler because of asm inline there in
longlong.h; here is a part of the code:
....
206 #if defined (__ia64) && W_TYPE_SIZE == 64
207 #if defined (__GNUC__)
208 #define umul_ppmm(ph, pl, m0, m1) \
209 do {
\
210 UDItype __m0 = (m0), __m1 = (m1);
\
211 __asm__ ("xma.hu %0 = %1, %2, f0"
\
212 : "=f" (ph)
\
213 : "f" (m0), "f" (m1));
\
214 (pl) = __m0 * __m1;
\
215 } while (0)
....
Here is the simplest patch, which prevents using asm inlines while
building package with Intel Compiler. Please take a look at it. I think
other gmp users could be interested in this because it would only
increase gmp portability and therefore attraction.
Thanks and regards,
----Katya Logovskaya---
------------------------------------------------------------------------
-------------
--- longlong.h 2001-11-15 23:48:14.000000000 +0300
+++ longlong.h 2002-11-30 16:32:18.000000000 +0300
@@ -204,7 +204,7 @@
#endif /* hppa */
#if defined (__ia64) && W_TYPE_SIZE == 64
-#if defined (__GNUC__)
+#if defined (__GNUC__) && !defined(__INTEL_COMPILER)
#define umul_ppmm(ph, pl, m0, m1) \
do {
\
UDItype __m0 = (m0), __m1 = (m1);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /list-archives/gmp-devel/attachments/20031016/5cdba1f8/attachment.htm
More information about the gmp-devel
mailing list