|
From: <sv...@va...> - 2016-10-07 07:58:07
|
Author: cborntra
Date: Fri Oct 7 08:58:00 2016
New Revision: 16030
Log:
fix building the dfp testcase
Modified:
trunk/configure.ac
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Oct 7 08:58:00 2016
@@ -1435,8 +1435,12 @@
AC_MSG_CHECKING([that assembler knows DFP])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
]], [[
+ #ifdef __s390__
+ __asm__ __volatile__("adtr 1, 2, 3")
+ #else
__asm__ __volatile__("dadd 1, 2, 3");
__asm__ __volatile__("dcffix 1, 2");
+ #endif
]])], [
ac_asm_have_dfp=yes
AC_MSG_RESULT([yes])
@@ -1449,8 +1453,12 @@
CFLAGS="-mhard-dfp -Werror"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
]], [[
+ #ifdef __s390__
+ __asm__ __volatile__("adtr 1, 2, 3")
+ #else
__asm__ __volatile__("dadd 1, 2, 3");
__asm__ __volatile__("dcffix 1, 2");
+ #endif
]])], [
ac_compiler_have_dfp=yes
AC_MSG_RESULT([yes])
@@ -1475,7 +1483,7 @@
AC_MSG_RESULT([no])
])
AM_CONDITIONAL(BUILD_DFP_TESTS, test x$ac_compiler_have_dfp_type = xyes \
- -a xHWCAP_$HAS_DFP = xyes )
+ -a x$HWCAP_HAS_DFP = xyes )
# HTM (Hardware Transactional Memory)
|