[LLVMbugs] [Bug 2098] New: Regression: abort on incorrect code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 26 10:14:49 PST 2008


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

           Summary: Regression:  abort on incorrect code
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dalej at apple.com
                CC: llvmbugs at cs.uiuc.edu


This is incorrect code but should not abort.  Broken sometime between Feb 12
and Feb 21.  
x86-32 Darwin.

void
foo (long x)
{
  if (((x >> -2) & 1) != 0)
    bar ();
}

now what? /usr/local/bin/gcc uu.c
uu.c: In function ‘foo’:
uu.c:4: warning: right shift count is negative
Assertion failed: (shiftAmt <= BitWidth && "Invalid shift amount"), function
shl, file APInt.cpp, line 1234.
uu.c: At top level:
uu.c:6: internal compiler error: Abort trap


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