x32
authorAlastair McKinstry <mckinstry@debian.org>
Wed, 27 Sep 2017 12:33:11 +0000 (13:33 +0100)
committerAlastair McKinstry <mckinstry@debian.org>
Wed, 27 Sep 2017 12:33:11 +0000 (13:33 +0100)
===================================================================

Gbp-Pq: Name x32.patch

config/opal_config_asm.m4

index bb2b9c4725c4ce5beef96dc655d258e668b259f1..0aa889493fb6a1e568655ff972a100bd4d83cc85 100644 (file)
@@ -1004,6 +1004,14 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
         OPAL_GCC_INLINE_ASSIGN=""
         OPAL_ASM_SUPPORT_64BIT=0
         case "${host}" in
+       x86_64-*x32)
+       # Note sizeof(long) = 4
+           opal_cv_asm_arch="X86_64"
+           OPAL_ASM_SUPPORT_64BIT=1
+            OPAL_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)'
+            OPAL_CHECK_CMPXCHG16B
+            ;;
+       
         i?86-*|x86_64*|amd64*)
             if test "$ac_cv_sizeof_long" = "4" ; then
                 opal_cv_asm_arch="IA32"