[llvm-bugs] [Bug 24544] New: PowerPC backend hits "Addend source register is not live!" assertion in PPCVSXFMAMutate.cpp:188

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 21 22:10:00 PDT 2015


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

            Bug ID: 24544
           Summary: PowerPC backend hits "Addend source register is not
                    live!" assertion in PPCVSXFMAMutate.cpp:188
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: anton at samba.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The testcase below is hitting the following assert:

clang: /home/anton/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp:188: bool
{anonymous}::PPCVSXFMAMutate::processBlock(llvm::MachineBasicBlock&): Assertion
`(!TargetRegisterInfo::isVirtualRegister(AddendSrcReg) ||
LIS->getInterval(AddendSrcReg).liveAt(FMAIdx)) && "Addend source register is
not live!"' failed.

when built with:

# clang -O1 -ffast-math -c testcase.i

# cat testcase.i

typedef struct {
} LSH_recall_t;

typedef struct {
} ptb_vec_t;

int LSH_recall_init(LSH_recall_t * recall, int d_step, float d_min, float
d_max,
            int M, int L, int T, float W)
{
    double dist, r, p;
    int i, j, k;
    for (i = 0; i < d_step; i++) {
        dist = d_min + (d_max - d_min) * i / d_step;
        dist = W / sqrt(dist);
        p = p_col_helper(dist);
    }
}

-- 
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/20150822/e7023bdc/attachment.html>


More information about the llvm-bugs mailing list