[PATCH][X86] __builtin_ctz/clz sometimed defined for zero input

Robinson, Paul Paul_Robinson at playstation.sony.com
Mon Oct 27 16:05:43 PDT 2014


New patch attached that defines new builtins and uses them in lzcntintrin.h.  This patch doesn't change anything about the behavior of the old builtins (although they come along for the ride when I refactored the CGBuiltins.cpp implementation).  I also tightened up the test for the lzcntintrin.h functions, as it didn't notice the incorrect translation.
Yeah I know I should have a doc update as well; I'll get to it, but I have to leave right now.
--paulr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141027/dbd47146/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctz-clz2.diff
Type: application/octet-stream
Size: 7735 bytes
Desc: ctz-clz2.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141027/dbd47146/attachment.obj>


More information about the cfe-commits mailing list