[LLVMbugs] [Bug 8840] New: fatal error: error in backend: Cannot select: 0x8027e6a10: i64 = srl 0x8027e6610, 0x8027cdc10 [ID=25]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 21 12:25:20 PST 2010


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

           Summary: fatal error: error in backend: Cannot select:
                    0x8027e6a10: i64 = srl 0x8027e6610, 0x8027cdc10
                    [ID=25]
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


with r122355 I am getting.. a few commits before this wasnt the case:


struct tm {
        int             tm_sec;
        int             tm_mday;
};
static char     winmsg_buf[256];
char           *
MakeWinMsgEv(str, win, esc, padlen, ev, rec)
        char           *str;
{
        char           *s = str;
        register char  *p = winmsg_buf;
        struct tm      *tm;
        int             l         , i, r;
        int             num;
        int             longflg;
        char           *qmpos = 0;
        tm = 0;
        for (;
             *s && (l = winmsg_buf + 256 - 1 - p) > 0;
             s++, p++) {
                switch (*s) {
                        if (qmpos) {
                case 'd':
                                sprintf(p, "%02d", tm->tm_mday % 100);
                                if (p - winmsg_buf > num && !longflg) {
                                }
                        }
                }
        }
}
pes delta$ clang -O2 screen.c                                                   
fatal error: error in backend: Cannot select: 0x8027dfa10: i64 = srl
0x8027df610, 0x8027d1c10 [ID=25]
  0x8027df610: i64 = mul 0x8027df110, 0x8027df510 [ID=23]
    0x8027df110: i64 = sign_extend 0x8027d1210 [ID=21]
      0x8027d1210: i32,ch = load 0x802778f28, 0x8027c1210,
0x8027d1010<LD4[inttoptr (i64 4 to i32*)](tbaa=!"int")> [ORD=7] [ID=19]
        0x802778f28: ch = EntryToken [ORD=5] [ID=0]
        0x8027c1210: i64 = Constant<4> [ORD=6] [ID=2]
        0x8027d1010: i64 = undef [ORD=7] [ID=3]
    0x8027df510: i64 = Constant<1374389535> [ID=15]
  0x8027d1c10: i64 = Constant<63> [ID=17]
pes delta$

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