<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 --- - PowerPC - code generation issue when using -break-anti-dependences=critical"
   href="https://llvm.org/bugs/show_bug.cgi?id=31193">31193</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PowerPC - code generation issue when using -break-anti-dependences=critical
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>eric.schweitz@pgroup.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=17676" name="attach_17676" title="branch target out of range">attachment 17676</a> <a href="attachment.cgi?id=17676&action=edit" title="branch target out of range">[details]</a></span>
branch target out of range

We are seeing the following problem with the attached input (reduced.ll) with
the OpenPOWER8 tools.

% llc -version
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
  LLVM version 3.9.1
  Optimized build.
  Default target: powerpc64le-unknown-linux-gnu
  Host CPU: pwr8

  Registered Targets:
    ppc32   - PowerPC 32
    ppc64   - PowerPC 64
    ppc64le - PowerPC 64 LE
% llc reduced.ll -mcpu=native -O2 -break-anti-dependencies=critical
-code-model=large -o reduced.s
% /usr/bin/as reduced.s -mpower8 -o reduced.o
reduced.s: Assembler messages:
reduced.s:751: Error: operand out of range (0x0000000000008000 is not between
0xffffffffffff8000 and 0x0000000000007ffc)

This does not reproduce on trunk with this .ll file; however, small
perturbations in code generation could cause the label to fall within range.

If -filetype=obj is used, no diagnostic is given, but the output has a backward
branch to the incorrect target rather than a forward branch.</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>