[llvm-bugs] [Bug 31193] New: PowerPC - code generation issue when using -break-anti-dependences=critical

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 28 09:29:32 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31193

            Bug ID: 31193
           Summary: PowerPC - code generation issue when using
                    -break-anti-dependences=critical
           Product: new-bugs
           Version: 3.9
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: eric.schweitz at pgroup.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17676
  --> https://llvm.org/bugs/attachment.cgi?id=17676&action=edit
branch target out of range

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

% llc -version
LLVM (http://llvm.org/):
  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.

-- 
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/20161128/ac419281/attachment.html>


More information about the llvm-bugs mailing list