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: unassignedb...@nondot.org
          Reporter: dimi...@andric.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to