[LLVMbugs] [Bug 4787] New: ICE: Assertion `(unsigned)FI-LowSpillSlot < SpillSlotToUsesMap.size() && "Invalid spill slot"' failed.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 26 07:33:59 PDT 2009


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

           Summary: ICE: Assertion `(unsigned)FI-LowSpillSlot <
                    SpillSlotToUsesMap.size() && "Invalid spill slot"'
                    failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


Seen using r80083 on Ubuntu Hardy on x86.

regehr at john-home:~/volatile/tmp187$ clang -w -O small.c
clang-cc: VirtRegMap.cpp:181: void llvm::VirtRegMap::addSpillSlotUse(int,
llvm::MachineInstr*): Assertion `(unsigned)FI-LowSpillSlot <
SpillSlotToUsesMap.size() && "Invalid spill slot"' failed.
0   clang-cc 0x09334248
Stack dump:
0.      Program arguments:
/home/regehr/z/tmp/llvm-gcc-r80083-install/bin/../libexec/clang-cc -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c --relocation-model
static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4 --fmath-errno=1 -O1
-w -fdiagnostics-show-option -o /tmp/cc-UAgyYy.s -x c small.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Linear Scan Register Allocator' on function '@uint86'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

regehr at john-home:~/volatile/tmp187$ cat small.c

char foo (int si1, char si2)
{
  return si2 ? : 1;
}

char bar (char ui1, char ui2)
{
  return ui2 ? : 1;
}

static char baz (char left, int right)
{
  return right ? : left;
}

char bux (int ui1, char ui2)
{
  return ui2 ? : 1;
}

static char buzz (int ui1, int uint8ui2)
{
  return ui1;
}

char qixx (int uint32ui2)
{
}

long long int zizz (long long int ui1, char ui2)
{
  return ui2;
}

static char aaa (long long int left, int right)
{
  return right ? : left;
}

long long int g4;
long long int g16;
char g27;

void uint86 (char p28)
{
  char l58;
  func (safe
        (zizz (bar (g16, 1), qixx) != g4 == aaa (g27, g16)
         && safe (g4, 1)), safe (1), safe (foo (safe (~l58),
                                                 bux (g4, g4)),
                                            safe (baz
                                                  (g16 < buzz (p28, 1), 1),
                                                  func (p28 != g4))), !1);
}


-- 
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