<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - JSONTest.Integers fails when built with gcc on 32-bit x86"
   href="https://bugs.llvm.org/show_bug.cgi?id=40274">40274</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>JSONTest.Integers fails when built with gcc on 32-bit x86
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Support Libraries
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mgorny@gentoo.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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: <a href="https://bugs.gentoo.org/674088">https://bugs.gentoo.org/674088</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>