[llvm-bugs] [Bug 40402] New: using optimizations yields different output

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 22 08:16:36 PST 2019


            Bug ID: 40402
           Summary: using optimizations yields different output
           Product: clang
           Version: 7.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dvoreader at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Created attachment 21364
  --> https://bugs.llvm.org/attachment.cgi?id=21364&action=edit
test case

I wrote a simple encryption algorithm as home project on my android device
above termux.
In the main function I used it to encrypt and decrypt a message.
When I used -O0 It printed the original message, but with -O2, it gave me
totally different output.
clang version : 
>>> clang -v
clang version 7.0.0 (tags/RELEASE_700/final)
Target: arm--linux-android
Thread model: posix

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/20190122/278ccb66/attachment.html>

More information about the llvm-bugs mailing list