[X86] Add support for more than 32 features for __builtin_cpu_is
authorCraig Topper <craig.topper@intel.com>
Sat, 20 Oct 2018 03:51:52 +0000 (03:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 20 Oct 2018 03:51:52 +0000 (03:51 +0000)
commit4d8ced1807a044a349825ead80b7a15f1872e000
tree15b7c8f8aed9d1a2f016b71d061efd8b5fd23dac
parent0aca35df77e3be49160b20c54f894e71e6cc8f2e
[X86] Add support for more than 32 features for __builtin_cpu_is

libgcc supports more than 32 features by adding a new 32-bit variable __cpu_features2.

This adds the clang support for checking these feature bits.

Patches for compiler-rt and llvm to support this are coming as well.

Probably still need an additional patch for target multiversioning in clang.

Differential Revision: https://reviews.llvm.org/D53458

llvm-svn: 344832
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/CodeGen/builtin-cpu-supports.c
clang/test/CodeGen/target-builtin-noerror.c