ntoab: Use __mesabi_uldiv only for arm.
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 9 Sep 2019 14:01:40 +0000 (16:01 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 9 Sep 2019 14:04:13 +0000 (16:04 +0200)
* lib/mes/ntoab.c (ntoab)[__MESC__ && __arm__]: Use __mesabi_uldiv.
* build-aux/check-mescc.sh (XFAIL_TESTS): 70-printf-simple.c and
70-printf.c now pass for x86_64 mescc.

build-aux/check-mescc.sh
lib/mes/ntoab.c

index 858ab60c985282f408f65ce678a35aab4b02c98a..84158697150597b52abbe64797accd74b8d9b395 100755 (executable)
@@ -255,9 +255,7 @@ fi
 
 if test $mes_cpu = x86_64; then
     XFAIL_TESTS="$XFAIL_TESTS
-lib/tests/stdio/70-printf-simple.c
 lib/tests/stdio/70-printf-stdarg.c
-lib/tests/stdio/70-printf.c
 "
 fi
 
@@ -273,6 +271,8 @@ if test $compiler = gcc; then
     if test $mes_cpu = x86_64; then
         XFAIL_TESTS="$XFAIL_TESTS
 lib/tests/stdio/70-printf-hello.c
+lib/tests/stdio/70-printf-simple.c
+lib/tests/stdio/70-printf.c
 lib/tests/scaffold/70-extern.c
 lib/tests/stdio/80-sscanf.c
 lib/tests/mes/90-abtod.c
index 548e45eb6ec308c38840b072c8bc28343ed9a371..ce91c73aeb9264b0a07e2248f9c802c0e4d94637 100644 (file)
@@ -42,8 +42,8 @@ ntoab (long x, int base, int signed_p)
   do
     {
       unsigned long i;
-#if __MESC__
-      u = __mesabi_uldiv(u, (unsigned long) base, &i);
+#if __MESC__ && __arm__
+      u = __mesabi_uldiv (u, (unsigned long) base, &i);
 #else
       i = u % base;
       u = u / base;