[LLVMbugs] [Bug 5192] New: ice: Mapped to new node

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Oct 14 20:58:12 PDT 2009


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

           Summary: ice: Mapped to new node
           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 on Ubuntu Jaunty on x86.

regehr at john-home:~/volatile/tmp205$ clang -O3 small.c -w

clang-cc: LegalizeTypes.cpp:619: void
llvm::DAGTypeLegalizer::RemapValue(llvm::SDValue&): Assertion
`N.getNode()->getNodeId() != NewNode && "Mapped to new node!"' failed.
0   clang-cc 0x09069fe8
Stack dump:
0.      Program arguments:
/home/regehr/z/tmp/llvm-gcc-r84167-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 -O3
-w -fexceptions=0 -fdiagnostics-show-option -o /tmp/cc-OFP0dP.s -x c small.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@func'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

regehr at john-home:~/volatile/tmp205$ clang -v

clang version 1.1 (trunk 84167)
Target: i386-pc-linux-gnu
Thread model: posix

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

struct S1
{
  unsigned char f0;
  unsigned char f1;
  unsigned char f2;
};
struct S2
{
  unsigned char f1;
  unsigned char f3;
};
struct S3
{
  unsigned char f0;
  struct S1 f1;
  unsigned char f2;
};
struct S4
{
  short f0;
  unsigned char f1;
  struct S3 f2;
  unsigned char f3;
  long long f4;
};
struct S2 g_10 = {
  0
};

struct S2 g_33 = {
  0
};

struct S1 g_41 = {
  0
};

struct S4
func_57 (struct S4 p_60)
{
  if (p_60.f2.f1.f1)
    {
      struct S4 l_70 = {
        0
      };
      if (safe (g_41.f0 != safe (p_60.f2.f1.f2) || g_10.f1 && g_33.f3))
        return l_70;
      else
        {
          struct S4 l_71 = {
            -2, 1, -1, 0x33, 0x1D78, 6, 0xBC, -1, -1
          };
          return l_71;
        }
    }
}

void
func (void)
{
  struct S4 l_125 = {
    0
  };
  func_57 (func_57 (func_57 (l_125)));
}


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