Project

General

Profile

Bug #820

Hex rounding of floating point values works wrong for ARM soft float

Added by Dmitry Moskalchuk over 4 years ago. Updated over 3 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Category:
libcrystax
Target version:
Start date:
12/26/2014
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm
Host OS:
Toolchain:
Android version:
CrystaX Version:

Description

Running device test [armeabi]: crystax-test-stdio2 (test-printfloat)
/opt/android/android-sdk-mac/platform-tools/adb -s "HT011P800177" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./test-printfloat"
1..11
ok 1 - printfloat
ok 2 - printfloat
ok 3 - printfloat
ok 4 - printfloat
ok 5 - printfloat
ok 6 - printfloat
ok 7 - printfloat
ok 8 - printfloat
ok 9 - printfloat
ok 10 - printfloat
jni/test-printfloat.c:326: printf("%.11A", 0x1.23456789abcdep0) ==> [0X1.23456789ABDP+0], expected [0X1.23456789ABCP+0]
1
---> TEST FAILED!!

It only happens for 'armeabi' binaries, i.e. built in soft float mode

History

#1 Updated by Dmitry Moskalchuk over 4 years ago

  • Subject changed from printf("%.11A", 0x1.23456789abcdep0) produce wrong result for ARM soft float to Hex rounding of floating point values works wrong for ARM soft float
  • Description updated (diff)

#2 Updated by Dmitry Moskalchuk over 4 years ago

BTW, the same error happens when running this test on x86 emulator. On real x86 device test passed.

#3 Updated by Dmitry Moskalchuk over 4 years ago

  • Target version set to 10.1.0

#4 Updated by Dmitry Moskalchuk over 4 years ago

  • Target version deleted (10.1.0)

#5 Updated by Dmitry Moskalchuk over 4 years ago

  • Priority changed from Low to Normal

#6 Updated by Dmitry Moskalchuk almost 4 years ago

  • Target version set to 10.3.0

#7 Updated by Dmitry Moskalchuk over 3 years ago

  • Target version changed from 10.3.0 to 11.0.0

Also available in: Atom PDF