<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 --- - UBSan error in lib/Target/R600/AMDGPUISelLowering.cpp (left shift of negative value)"
   href="http://llvm.org/bugs/show_bug.cgi?id=20982">20982</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>UBSan error in lib/Target/R600/AMDGPUISelLowering.cpp (left shift of negative value)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, tstellar@gmail.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>20815
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following R600 test fails under UBSan bootstrap of LLVM:

    LLVM :: CodeGen/R600/llvm.AMDGPU.bfe.i32.ll

The problem is the left shift of negative value in llvm::SDValue
constantFoldBFE<int32_t> in AMDGPUISelLowering.cpp (left shift of negative
value is undefined behavior in C).

To reproduce: build LLVM with just-built Clang and
-DLLVM_USE_SANITIZER=Undefined CMake option. I'm going to disable this specific
test case under UBSan, so that suppression will have to be removed as well.</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>