[PATCH] D59567: [X86] Add __popcntd and __popcntq to ia32intrin.h to match gcc and icc. Remove popcnt feature flag from _popcnt32/_popcnt64 and move to ia32intrin.h to match gcc
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 19 15:54:02 PDT 2019
craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel, andreadb.
gcc and icc both implement __popcntd and __popcntq which we did not. gcc doesn't seem to require a feature flag for the _popcnt32/_popcnt64 spelling and will use a libcall if its not supported.
https://reviews.llvm.org/D59567
Files:
clang/lib/Headers/ia32intrin.h
clang/lib/Headers/popcntintrin.h
clang/test/CodeGen/popcnt-builtins.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59567.191411.patch
Type: text/x-patch
Size: 4566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190319/1db4fcec/attachment.bin>
More information about the cfe-commits
mailing list