http://llvm.org/bugs/show_bug.cgi?id=2487
Summary: loop codegen bug
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
This is for svn 52617 targeting ia32 hosted on Ubuntu Hardy.
[EMAIL PROTECTED] tmp25]$ llvm-gcc -Wall -fwrapv -O0 small.c -o small
[EMAIL PROTECTED] tmp25]$ ./small
1
[EMAIL PROTECTED] tmp25]$ llvm-gcc -Wall -fwrapv -O1 small.c -o small
[EMAIL PROTECTED] tmp25]$ ./small
0
int g_6;
void func_1 (void);
void func_1 (void)
{
char l_3;
for (l_3 = 0; l_3 >= 0; ++l_3) {
if (!l_3) {
for (g_6 = 1; 0; --g_6);
}
}
}
int main (void)
{
func_1 ();
printf ("%d\n", g_6);
return 0;
}
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs