[LLVMbugs] [Bug 20849] New: clang miscompiles basic C code involving modulo at -O3

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 4 15:11:59 PDT 2014


            Bug ID: 20849
           Summary: clang miscompiles basic C code involving modulo at -O3
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: michaelni at gmx.at
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12987
  --> http://llvm.org/bugs/attachment.cgi?id=12987&action=edit

the attached code when compiled with -O3
gives totally wrong output on x86_64
that is values larger than 126

Ubuntu clang version 3.5.0-svn216089-1~exp1 (branches/release_35) (based on
LLVM 3.5.0)

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140904/ec52b19e/attachment.html>

More information about the llvm-bugs mailing list