https://bugs.llvm.org/show_bug.cgi?id=46013
Sanjay Patel <spatel+l...@rotateright.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Sanjay Patel <spatel+l...@rotateright.com> ---
Fixed in IR:
https://reviews.llvm.org/rG2552f65183eb
x86 codegen now shows:
movl %edi, %eax
shrl %eax
vs. gcc:
movsbl %dil, %eax
shrl %eax
Ie, we assume the 8-bit function argument is sign-extended to 32-bit as shown
in the IR from comment 1. So we don't need to explicitly set the high bits. If
that's a problem, please file a new bug for x86.
--
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