[llvm-bugs] [Bug 32726] New: arm: Assertion failed: (isReg() && "This is not a register operand!"), function getReg, file include/llvm/MC/MCInst.h, line 66.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 20 12:00:51 PDT 2017


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

            Bug ID: 32726
           Summary: arm: Assertion failed: (isReg() && "This is not a
                    register operand!"), function getReg, file
                    include/llvm/MC/MCInst.h, line 66.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: llvm-bugs at lists.llvm.org

This is an assertion somewhere in Firefox's webrtc code, reported in
https://bugs.freebsd.org/218782, which occurs both in 4.0.0 and trunk 300422.

Reduced test case in C++:

// clang -cc1 -triple arm-- -S webrtc-minimized.cpp
class A {
  int m_fn1();
  enum { kNumProbs = 12 };
  static const unsigned short prob_uw16_[];
};
const unsigned short A::prob_uw16_[] = {205, 410};
char ProcessFrame_quant_uw8[4];
int ProcessFrame_prob_idx_uw32, ProcessFrame_width;
int A::m_fn1() {
  int y_sub_size = ProcessFrame_width;
  unsigned char *y_sorted = new unsigned char;
  if (ProcessFrame_width)
    for (int i = 0; i < kNumProbs; i++) {
      ProcessFrame_prob_idx_uw32 = y_sub_size * prob_uw16_[i];
      ProcessFrame_quant_uw8[i] = y_sorted[ProcessFrame_prob_idx_uw32];
    }
  for (;;)
    ;
}

-- 
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/20170420/e16fcafa/attachment.html>


More information about the llvm-bugs mailing list