[llvm-bugs] [Bug 41001] New: [GlobalISel] [aarch64] i1 boolean is still signed extended to -1

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 7 15:39:52 PST 2019


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

            Bug ID: 41001
           Summary: [GlobalISel] [aarch64] i1 boolean is still signed
                    extended to -1
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: efriedma at quicinc.com
                CC: aemerson at apple.com, arnaud.degrandmaison at arm.com,
                    llvm-bugs at lists.llvm.org, mgrang at codeaurora.org,
                    peter.smith at linaro.org, rtereshin at apple.com,
                    Ties.Stuij at arm.com

Testcase:

void a(void f(bool)) { f(true); }

Build with "clang --target=aarch64 -S".

This produces "mov w8, #-1" instead of "mov w8, #-1" at -O0 with GlobalISel. 
(I won't bother turning this into a complete program, but it causes a
miscompile in practice.)

This is basically a continuation of bug 36719; here it's an argument instead of
a return value.

-- 
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/20190307/6fee3745/attachment.html>


More information about the llvm-bugs mailing list