[LLVMbugs] [Bug 2088] New: Miscompilation with indvars

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Feb 24 06:53:15 PST 2008


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

           Summary: Miscompilation with indvars
           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: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1455)
 --> (http://llvm.org/bugs/attachment.cgi?id=1455)
Testcase

To reproduce: compare the output of "lli abortbug.bc" and "opt -indvars
abortbug.bc -o - | lli" with the attached testcase.

I think it's somehow illegally rewriting the induction variable z.

Original source (from X86/README.txt):
main ()
{
  int i = 0;
  unsigned long int z = 0;

  do {
    z -= 0x00004000;
    i++;
    if (i > 0x00040000)
      abort ();
  } while (z > 0);
  exit (0);
}
compiled with clang.


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