[LLVMbugs] [Bug 2326] New: ICE

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed May 14 09:36:30 PDT 2008


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

           Summary: ICE
           Product: new-bugs
           Version: unspecified
          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


Using svn 51018 on Ubuntu Feisty on x86-32 I get this:

[regehr at babel tmp3]$ llvm-gcc small.c
cc1: SelectionDAG.cpp:1071: llvm::SDOperand
llvm::SelectionDAG::FoldSetCC(llvm::MVT::ValueType, llvm::SDOperand,
llvm::SDOperand, llvm::ISD::CondCode): Assertion
`!MVT::isInteger(N1.getValueType()) && "Illegal setcc for integer!"' failed.
small.c:55: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.





typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
int8_t g_39 = 0x23L;
uint16_t g_67 = 0x3DF5L;
uint8_t g_118 = 0x5DL;
int32_t func_4 ;
int32_t
func_59 (uint32_t p_60)
{
  int32_t l_61 = 0x86C3CE99L;
  uint32_t l_117 = -2L;
  int16_t l_127 = 4L;
  uint8_t l_165 = 1L;
  for (p_60 = -24;; ++p_60)
    {
      uint32_t l_108 = 0L;
      uint8_t l_125 = 0x9DL;
      int32_t l_132 = 0x41C1EEBAL;
      int32_t l_167 = 0L;
      if (g_39)
        {
          int8_t l_119 = 0xE6L;
          uint16_t l_163 = 1L;
          if (g_39)

              for (l_61 = 0;; --p_60)
                return g_67;

          else
            {
              uint16_t l_116 = 0xC021L;
              if (lshift_s_s
                  (l_116 <
                   rshift_s_u (func_15 (p_60 == l_108 & p_60 <= l_108, l_117),
                               p_60) < func_4, 0xF14100A9L))
                return g_118;
              for (l_125 = -26;; l_125 += 0)

              if (l_163)
                {
                  uint8_t l_164 = 0L;
                  for (l_164 = 9;; ++l_164)
                    return l_165;
                }
              else
                for (l_119 = -20;; l_119 += 5)
                  return l_167;
            }
        }
    }
}


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