[llvm-bugs] [Bug 25960] New: program outputs is not right.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 29 01:12:38 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25960

            Bug ID: 25960
           Summary: program outputs is not right.
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lyc1990 at qq.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15529
  --> https://llvm.org/bugs/attachment.cgi?id=15529&action=edit
my source code, which compiled with clang  the output is wrong

I writed a piece of C code, with inline assembly.
Just used to calculate 100/7,   quotient 14 and reminder 2

when use gcc compile the code, it is alright
but when use clang, the output is random.

My source code is attached.

I'm using clang 3.6 on ubuntu

-- 
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/20151229/f4378ffb/attachment.html>


More information about the llvm-bugs mailing list