https://bugs.llvm.org/show_bug.cgi?id=40274
Bug ID: 40274
Summary: JSONTest.Integers fails when built with gcc on 32-bit
x86
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
FAIL: LLVM-Unit :: Support/./SupportTests/JSONTest.Integers (2788 of 29276)
******************** TEST 'LLVM-Unit ::
Support/./SupportTests/JSONTest.Integers' FAILED ********************
Note: Google Test filter = JSONTest.Integers
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from JSONTest
[ RUN ] JSONTest.Integers
/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/unittests/Support/JSONTest.cpp:322:
Failure
Expected: T.Val
Which is: 4611686018427387905
To be equal to: *Doc
Which is: 4611686018427387905
Integer, not exact double. Stored as int64, convertible.
/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/unittests/Support/JSONTest.cpp:322:
Failure
Expected: T.Val
Which is: -4611686018427387905
To be equal to: *Doc
Which is: -4611686018427387905
Negative integer, not exact double. Stored as int64, convertible.
[ FAILED ] JSONTest.Integers (0 ms)
[----------] 1 test from JSONTest (1 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] JSONTest.Integers
1 FAILED TEST
********************
This is the only test failing on 32-bit x86, when building with gcc-7. It
passes on 64-bit build, and (from what I've been told) it also passes when
built with clang or gcc with less than -O2. So I think it's some optimization
problem.
Original report: https://bugs.gentoo.org/674088
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs