ntoab: Use __mesabi_uldiv only for arm.

* 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.
This commit is contained in:
Jan Nieuwenhuizen 2019-09-09 16:01:40 +02:00
parent 08774a9c74
commit 49aff4ec1c
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 4 additions and 4 deletions

View file

@ -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

View 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;