]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
fix building the dfp testcase
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 7 Oct 2016 07:58:00 +0000 (07:58 +0000)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 7 Oct 2016 07:58:00 +0000 (07:58 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16030

configure.ac

index 5f4929a4451be7905195ad7976180ef68c054794..61345392003bb9775caff4434ba3689c539789af 100644 (file)
@@ -1435,8 +1435,12 @@ AM_CONDITIONAL([HAS_VSX], [test x$ac_compiler_supports_vsx_flag = xyes \
 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 @@ safe_CFLAGS=$CFLAGS
 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_compiler_have_dfp_type=no
 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)