<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Some atomics tests fail on 32 bit"
   href="http://llvm.org/bugs/show_bug.cgi?id=15457">15457</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Some atomics tests fail on 32 bit
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>hhinnant@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bruce.mitchener@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When building for 32 bit (and with -O2), some tests fail that don't fail when
building for x86_64.

This is pretty much the same scenario as
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - std::bitset<63> test fails on 32 bit target"
   href="show_bug.cgi?id=15444">http://llvm.org/bugs/show_bug.cgi?id=15444</a> ... I'm on Mountain Lion and using a
current drop of libcxx.

The errors are:

Assertion failed: (obj == T(1)), function do_test, file integral.pass.cpp, line
132.
./testit: line 90: 61449 Abort trap: 6           ./$TEST_EXE
/Users/bruce/Development/libcxx/test/atomics/atomics.types.generic/integral.pass.cpp
failed at run time
Compile line was: xcrun clang++ -std=c++0x -stdlib=libc++ -arch i386 -O2
-I/Users/bruce/Development/libcxx/test/support
-I/Users/bruce/Development/libcxx/include -L/Users/bruce/Development/libcxx/lib
integral.pass.cpp
failed 1 tests in
/Users/bruce/Development/libcxx/test/atomics/atomics.types.generic
passed 4 tests in
/Users/bruce/Development/libcxx/test/atomics/atomics.types.generic


Assertion failed: (t == T(1)), function test, file atomic_fetch_sub.pass.cpp,
line 41.
./testit: line 90: 61562 Abort trap: 6           ./$TEST_EXE
/Users/bruce/Development/libcxx/test/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_sub.pass.cpp
failed at run time
Compile line was: xcrun clang++ -std=c++0x -stdlib=libc++ -arch i386 -O2
-I/Users/bruce/Development/libcxx/test/support
-I/Users/bruce/Development/libcxx/include -L/Users/bruce/Development/libcxx/lib
atomic_fetch_sub.pass.cpp


Assertion failed: (t == T(1)), function test, file
atomic_fetch_sub_explicit.pass.cpp, line 43.
./testit: line 90: 61568 Abort trap: 6           ./$TEST_EXE
/Users/bruce/Development/libcxx/test/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_sub_explicit.pass.cpp
failed at run time
Compile line was: xcrun clang++ -std=c++0x -stdlib=libc++ -arch i386 -O2
-I/Users/bruce/Development/libcxx/test/support
-I/Users/bruce/Development/libcxx/include -L/Users/bruce/Development/libcxx/lib
atomic_fetch_sub_explicit.pass.cpp</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>