<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - undefined behavior in SelectionDAGAddressAnalysis.cpp"
   href="https://bugs.llvm.org/show_bug.cgi?id=36074">36074</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>undefined behavior in SelectionDAGAddressAnalysis.cpp
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>yannlaiglechapuy@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19738" name="attach_19738" title="reduced code">attachment 19738</a> <a href="attachment.cgi?id=19738&action=edit" title="reduced code">[details]</a></span>
reduced code

With the attached reduced file:

<span class="quote">> llc -O1 SelectionDAG_UB.ll</span >
[...]lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp:23:22:
runtime error: signed integer overflow: 7124803381091165632 -
-7949118599238474896 cannot be represented in type 'long long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
[...]lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp:23:22 in 
Stack dump:
0.      Program arguments: llc -O1 SelectionDAG_UB.ll
1.      Running pass 'Function Pass Manager' on module 'SelectionDAG_UB.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@Test'</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>