x32
authorAlastair McKinstry <mckinstry@debian.org>
Sun, 15 Jan 2017 11:08:14 +0000 (11:08 +0000)
committerAlastair McKinstry <mckinstry@debian.org>
Sun, 15 Jan 2017 11:08:14 +0000 (11:08 +0000)
Gbp-Pq: Name x32.patch

config/opal_config_asm.m4

index 3bdaa6266b43583745c790040d8c03830810e3b0..14fb59183d25a5b07556e8f372ab0cca8ef54baa 100644 (file)
@@ -1003,6 +1003,11 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
         OPAL_GCC_INLINE_ASSIGN=""
         OPAL_ASM_SUPPORT_64BIT=0
         case "${host}" in
+        x86_64-*x32)
+            opal_cv_asm_arch="AMD64"
+            OPAL_ASM_SUPPORT_64BIT=1
+            OPAL_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)'
+            ;;
         i?86-*|x86_64*)
             if test "$ac_cv_sizeof_long" = "4" ; then
                 opal_cv_asm_arch="IA32"