[LLVMbugs] [Bug 6525] New: possible wrong code bug

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 6 09:29:18 PST 2010


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

           Summary: possible wrong code bug
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu


Created an attachment (id=4403)
 --> (http://llvm.org/bugs/attachment.cgi?id=4403)
failure-inducing testcase

The -O2 result is definitely the right one.  See using r97881 on Ubuntu 9.10 on
x86.

regehr at john-home:~/volatile/bugs/tmp278$ clang -O2 small.c -o small
regehr at john-home:~/volatile/bugs/tmp278$ ./small
0
regehr at john-home:~/volatile/bugs/tmp278$ clang -O3 small.c -o small
regehr at john-home:~/volatile/bugs/tmp278$ ./small
1

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