[LLVMbugs] [Bug 2364] New: likely integer codegen bug

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun May 25 12:06:48 PDT 2008


           Summary: likely integer codegen bug
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            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 51558 on Ubuntu Feisty on x86-32 this code is miscompiled:

int func_6 (void)
  int i = 0;
  char x;
  for (x = 0;
       (x != 12);
       x -= 4) {
  return i;

llvm-gcc -fwrapv -O1 -S -o - small.c -Wall -fomit-frame-pointer


        movl    $253, %eax

I believe the correct result is 61.

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