<html>
    <head>
      <base href="https://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 --- - csmith fuzz testcase incorrectness on -O1+ without LLVM optimizations"
   href="https://llvm.org/bugs/show_bug.cgi?id=25276">25276</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>csmith fuzz testcase incorrectness on -O1+ without LLVM optimizations
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alonzakai@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15134" name="attach_15134" title="testcase">attachment 15134</a> <a href="attachment.cgi?id=15134&action=edit" title="testcase">[details]</a></span>
testcase

Attached is a csmith fuzz testcase that fails when clang is given -O1, *even
without LLVM optimizations*, so it seems like the issue is in clang and not the
LLVM optimizer?

clang newfail_27643_1.cpp -O0 -emit-llvm -o a.bc -c -w -disable-llvm-optzns ;
clang a.bc ; ./a.out

gives the same result as gcc, while replacing -O0 with -O1 in that command
yields a different and incorrect output.

tested on latest trunk as of right now,

=====
commit 333aedbc24d97c7927193a261a71491d69b77225
Author: Yaron Keren <<a href="mailto:yaron.keren@gmail.com">yaron.keren@gmail.com</a>>
Date:   Wed Oct 21 18:16:01 2015 +0000

    Rename clang config.h include guard from CONFIG_H to CLANG_CONFIG_H
    to make it different from LLVM config.h include guard.

    git-svn-id: <a href="https://llvm.org/svn/llvm-project/cfe/trunk@250921">https://llvm.org/svn/llvm-project/cfe/trunk@250921</a>
91177308-0d34-0410-b5e6-96231b3b80d8

=====
commit ba3f35ef578512993618c7e961bdd9132a8863f2
Author: Yaron Keren <<a href="mailto:yaron.keren@gmail.com">yaron.keren@gmail.com</a>>
Date:   Wed Oct 21 18:36:52 2015 +0000

    Revert r250923 as config.h is not an installed header.

    git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@250924">https://llvm.org/svn/llvm-project/llvm/trunk@250924</a>
91177308-0d34-0410-b5e6-96231b3b80d8
=====</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>