[LLVMbugs] [Bug 8514] New: Assertion `isReg() && "This is not a register operand!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Oct 30 08:37:12 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8514

           Summary: Assertion `isReg() && "This is not a register
                    operand!"' failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu


regehr at home:~/volatile/bugs/tmp337$ clang -v

clang version 2.9 (trunk 117785)
Target: i386-pc-linux-gnu
Thread model: posix

regehr at home:~/volatile/bugs/tmp337$ clang -c -w -O small.c

clang: /mnt/z/z/compiler-build/llvm-r117785/include/llvm/MC/MCInst.h:59:
unsigned int llvm::MCOperand::getReg() const: Assertion `isReg() && "This is
not a register operand!"' failed.
0  clang 0x093b0918
Stack dump:
0.    Program arguments:
/mnt/z/z/compiler-install/llvm-gcc-r117785-install/bin/clang -cc1 -triple
i386-pc-linux-gnu -emit-obj -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -target-linker-version 2.20.51 -resource-dir
/mnt/z/z/compiler-install/llvm-gcc-r117785-install/bin/../lib/clang/2.9 -O2 -w
-ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o small.o -x c small.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'small.c'.
4.    Running pass 'X86 AT&T-Style Assembly Printer' on function '@func_59'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

regehr at home:~/volatile/bugs/tmp337$ cat small.c

struct S0
{
  signed f1:1;
  signed f2:22;
};

struct S1
{
};

struct S2
{
  unsigned short f0;
  struct S0 f1;
};

struct S1 func_28 (struct S2 *const p_29, unsigned short p_30);
struct S2 *func_65 (struct S1 p_66, struct S2 *p_67, struct S0 p_68);

struct S0 
func_59 (struct S2 *p_60, const int * p_61, struct S0 p_62, unsigned p_63,
     struct S2 *p_64)
{
  unsigned l_74;
  struct S2 l_75 = {
    1, 0xA2B3
  };
  struct S0 l_76[9][5][2] = {
  };
lbl_81:func69 (0), func_65 (func_28 (p_60, l_75.f1.f1), &l_75, l_75.f1),
    l_76[1][0][1];
  for (l_74 = 0; 1; l_74 = l_74 + 1)
    for (p_63; p_63; p_63 = p_63 + 1)
      for (l_75.f0; l_75.f0; l_75.f0 = l_75.f0 + 1)
    {
      struct S0 tmp = {
        99
      };
      l_76[l_74][p_63][l_75.f0] = tmp;
    }
}

struct S2 *
func_65 (struct S1 p_66, struct S2 *p_67, struct S0 p_68)
{
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list