[llvm-bugs] [Bug 31062] New: [PowerPC] MIR lit test marked XFAIL for powerpc due to use of undefined physical register

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 18 11:58:42 PST 2016


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

            Bug ID: 31062
           Summary: [PowerPC] MIR lit test marked XFAIL for powerpc due to
                    use of undefined physical register
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: gberry at codeaurora.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

test/CodeGen/MIR/Generic/branch-probabilities.ll

# Machine code for function test: IsSSA, NoPHIs, TracksLiveness
Function Live Ins: %X3 in %vreg0

BB#0: derived from LLVM BB %entry
    Live Ins: %X3
    %vreg0<def> = COPY %X3; G8RC:%vreg0
    %vreg2<def> = ANDIo8 %vreg0, 1, %CR0<imp-def>; G8RC:%vreg2,%vreg0
    %vreg1<def> = COPY %CR0GT; CRBITRC:%vreg1
    BCn %vreg1<kill>, <BB#2>; CRBITRC:%vreg1
    B <BB#1>
    Successors according to CFG: BB#1(0x40000000 / 0x80000000 = 50.00%)
BB#2(0x40000000 / 0x80000000 = 50.00%)

BB#1: derived from LLVM BB %then
    Predecessors according to CFG: BB#0
    ADJCALLSTACKDOWN 112, %R1<imp-def,dead>, %R1<imp-use>
    BL8_NOP <ga:@foo>, <regmask %CR2 %CR3 %CR4 %F14 %F15 %F16 %F17 %F18 %F19
%F20 %F21 %F22 %F23 %F24 %F25 %F26 %F27 %F28 %F29 %F30 %F31 %R14 %R15 %R16 %R17
%R18 %R19 %R20 %R21 %R22 %R23 %R24 %R25 %R26 %R27 %R28 %R29 %R30 %R31 %X14 %X15
%X16 %X17 %X18 %X19 %X20 %X21 %X22 %X23 %X24 %X25 %X26 %X27 %X28 %X29 %X30 %X31
%CR2EQ %CR3EQ %CR4EQ %CR2GT %CR3GT %CR4GT %CR2LT %CR3LT %CR4LT %CR2UN %CR3UN
%CR4UN>, %LR8<imp-def,dead>, %RM<imp-use>, %X2<imp-use>, %R1<imp-def>
    ADJCALLSTACKUP 112, 0, %R1<imp-def,dead>, %R1<imp-use>
    B <BB#3>
    Successors according to CFG: BB#3(0x80000000 / 0x80000000 = 100.00%)

BB#2: derived from LLVM BB %else
    Predecessors according to CFG: BB#0
    ADJCALLSTACKDOWN 112, %R1<imp-def,dead>, %R1<imp-use>
    BL8_NOP <ga:@bar>, <regmask %CR2 %CR3 %CR4 %F14 %F15 %F16 %F17 %F18 %F19
%F20 %F21 %F22 %F23 %F24 %F25 %F26 %F27 %F28 %F29 %F30 %F31 %R14 %R15 %R16 %R17
%R18 %R19 %R20 %R21 %R22 %R23 %R24 %R25 %R26 %R27 %R28 %R29 %R30 %R31 %X14 %X15
%X16 %X17 %X18 %X19 %X20 %X21 %X22 %X23 %X24 %X25 %X26 %X27 %X28 %X29 %X30 %X31
%CR2EQ %CR3EQ %CR4EQ %CR2GT %CR3GT %CR4GT %CR2LT %CR3LT %CR4LT %CR2UN %CR3UN
%CR4UN>, %LR8<imp-def,dead>, %RM<imp-use>, %X2<imp-use>, %R1<imp-def>
    ADJCALLSTACKUP 112, 0, %R1<imp-def,dead>, %R1<imp-use>
    Successors according to CFG: BB#3(0x80000000 / 0x80000000 = 100.00%)

BB#3: derived from LLVM BB %end
    Predecessors according to CFG: BB#1 BB#2
    BLR8 %LR8<imp-use>, %RM<imp-use>

# End machine code for function test.

*** Bad machine code: Using an undefined physical register ***
- function:    test
- basic block: BB#1 then (0x1001f3982a8)
- instruction: BL8_NOP
- operand 4:   %X2<imp-use>

*** Bad machine code: Using an undefined physical register ***
- function:    test
- basic block: BB#2 else (0x1001f398358)
- instruction: BL8_NOP
- operand 4:   %X2<imp-use>
LLVM ERROR: Found 2 machine code errors.

-- 
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/20161118/ba4c3bb2/attachment.html>


More information about the llvm-bugs mailing list