[llvm-bugs] [Bug 40274] New: JSONTest.Integers fails when built with gcc on 32-bit x86

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 9 10:58:35 PST 2019


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: unassignedbugs at nondot.org
          Reporter: mgorny at gentoo.org
                CC: llvm-bugs at lists.llvm.org

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190109/44357ed2/attachment.html>


More information about the llvm-bugs mailing list