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:
parent
08774a9c74
commit
49aff4ec1c
|
@ -255,9 +255,7 @@ fi
|
||||||
|
|
||||||
if test $mes_cpu = x86_64; then
|
if test $mes_cpu = x86_64; then
|
||||||
XFAIL_TESTS="$XFAIL_TESTS
|
XFAIL_TESTS="$XFAIL_TESTS
|
||||||
lib/tests/stdio/70-printf-simple.c
|
|
||||||
lib/tests/stdio/70-printf-stdarg.c
|
lib/tests/stdio/70-printf-stdarg.c
|
||||||
lib/tests/stdio/70-printf.c
|
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -273,6 +271,8 @@ if test $compiler = gcc; then
|
||||||
if test $mes_cpu = x86_64; then
|
if test $mes_cpu = x86_64; then
|
||||||
XFAIL_TESTS="$XFAIL_TESTS
|
XFAIL_TESTS="$XFAIL_TESTS
|
||||||
lib/tests/stdio/70-printf-hello.c
|
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/scaffold/70-extern.c
|
||||||
lib/tests/stdio/80-sscanf.c
|
lib/tests/stdio/80-sscanf.c
|
||||||
lib/tests/mes/90-abtod.c
|
lib/tests/mes/90-abtod.c
|
||||||
|
|
|
@ -42,7 +42,7 @@ ntoab (long x, int base, int signed_p)
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
unsigned long i;
|
unsigned long i;
|
||||||
#if __MESC__
|
#if __MESC__ && __arm__
|
||||||
u = __mesabi_uldiv (u, (unsigned long) base, &i);
|
u = __mesabi_uldiv (u, (unsigned long) base, &i);
|
||||||
#else
|
#else
|
||||||
i = u % base;
|
i = u % base;
|
||||||
|
|
Loading…
Reference in New Issue