[cfe-commits] [libcxx] r154508 - /libcxx/trunk/include/atomic

Richard Smith richard at metafoo.co.uk
Wed Apr 11 11:38:31 PDT 2012


On Wed, Apr 11, 2012 at 11:34 AM, David Chisnall <csdavec at swan.ac.uk> wrote:

> On 11 Apr 2012, at 19:30, Richard Smith wrote:
>
> > Hi David,
> >
> > Clang now crashes in the libc++ atomics tests. Cutdown testcase:
>

Sorry, I should have said it asserts:

clang-3.1: src/lib/VMCore/Instructions.cpp:1056: void
llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() ==
cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must
be a pointer to Val type!"' failed.


> >
> > _Atomic(bool) b = true;
> >
> > I suspect there's an i1 / i8 confusion somewhere.
>
> What platform?  On FreeBSD/x86-64, I have:
>

On Linux/x86-64. I see:

****************************************************
Results for /home/richardsmith/space/libcxx/test/atomics:
using clang version 3.1 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
with -std=c++0x -stdlib=libc++
----------------------------------------------------
sections without tests   : 0
sections with failures   : 2
sections without failures: 12
                       +   ----
total number of sections : 14
----------------------------------------------------
number of tests failed   : 2
number of tests passed   : 50
                       +   ----
total number of tests    : 52
****************************************************

The failing tests are test/atomics/atomics.flag/init.pass.cpp
and test/atomics/atomics.types.generic/bool.pass.cpp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120411/7d3aa72a/attachment.html>


More information about the cfe-commits mailing list