[llvm-bugs] [Bug 32733] New: Incorrect codegen for AArch64 -O0 -mllvm -global-isel

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 21 06:26:52 PDT 2017


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

            Bug ID: 32733
           Summary: Incorrect codegen for AArch64 -O0 -mllvm -global-isel
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: GlobalISel
          Assignee: unassignedbugs at nondot.org
          Reporter: kristof.beyls at gmail.com
                CC: llvm-bugs at lists.llvm.org

The following program miscompiles with globalisel:

extern int printf(const char *, ...);
int c = 0;
int *d = 0;
int main() {
    printf("checksum = %x\n", ~(&c == d) ^ 1);
}

It should print "checksum = fffffffe", but instead prints "checksum = 1".

Command line used to reproduce this: clang -O0 t.c -mllvm -global-isel

-- 
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/20170421/6f9f0cec/attachment-0001.html>


More information about the llvm-bugs mailing list