[PATCH] D44900: [X86] Fix Windows `i1 zeroext` conventions to use i8 instead of i32

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 26 11:07:32 PDT 2018


rnk added a comment.

In https://reviews.llvm.org/D44900#1048436, @mstorsjo wrote:

> LGTM.
>
> As I wrote in http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20180319/536996.html, it also seems like the same issue is present for non-windows calling conventions, although I guess that's a separate issue.


I think you're right, GCC (on Linux) emits those sign/zero extensions, but LLVM does not: https://godbolt.org/g/yqNXp7 This must have been an intentional decision, but I can find no evidence for it in the SysV ABI doc.


https://reviews.llvm.org/D44900





More information about the llvm-commits mailing list