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: unassignedb...@nondot.org
Reporter: efrie...@quicinc.com
CC: aemer...@apple.com, arnaud.degrandmai...@arm.com,
llvm-bugs@lists.llvm.org, mgr...@codeaurora.org,
peter.sm...@linaro.org, rteres...@apple.com,
ties.st...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs