[LLVMbugs] [Bug 18323] New: Clang++ 3.4 of Ubuntu 13.10 miscompiles simd_fast_mersenne_twister_engine of gcc 4.8.1

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 25 03:14:18 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18323

            Bug ID: 18323
           Summary: Clang++ 3.4 of Ubuntu 13.10 miscompiles
                    simd_fast_mersenne_twister_engine of gcc 4.8.1
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kazarmy at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11779
  --> http://llvm.org/bugs/attachment.cgi?id=11779&action=edit
simd_fast_mersenne_twister_engine test case.

Clang++ 3.4 (1:3.4~svn183914-1ubuntu1) of 64-bit Ubuntu 13.10 miscompiles the
simd_fast_mersenne_twister_engine class of g++ 4.8.1. Test case (attached) is
from the GCC libstdc++ test suite revision 195701 [1], modified slightly to
include the VERIFY macro definition. 

[1]
http://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/default.cc?revision=195701&view=markup

Produced output
---------------
1905317600 vs 1318548553
90692538 vs 1985957974
88078402 vs 1367744196
4101078356 vs 3463392791
1092336181 vs 2780736231
143236910 vs 3894488561
305079048 vs 3157036262
3417987406 vs 3491812767
887944328 vs 1724574180
211759797 vs 3645035493
a.out: default.cc:47: void run_test(std::initializer_list<typename
SFMT::result_type>) [SFMT =
__gnu_cxx::simd_fast_mersenne_twister_engine<unsigned int, 607, 2, 15, 3, 13,
3, 4261361663, 4018093949, 4286020477, 2146958127, 1, 0, 0, 1502015572>]:
Assertion `success' failed.
Aborted (core dumped)

-- 
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/20131225/b771dffc/attachment.html>


More information about the llvm-bugs mailing list