added intrinsics support for (whole of) vbmi2 instructions, matching a similar work on the backend (D40206)
Details
Diff Detail
- Repository
- rC Clang
Event Timeline
Update the ICL macros in test/Preprocessor/predefined-arch-macros.c
include/clang/Basic/BuiltinsX86.def | ||
---|---|---|
1254 | Arguments corresponding to immediates need a capital 'I' in front of them so clang will error if they are a compile time constant. | |
lib/Basic/Targets/X86.cpp | ||
135 | Dont' remove the TODO until all features are added. | |
593 | Do two equality checks ORed together. I think bad target attributes on functions only issue a warning and are discarded in codegen. So strings like avx512vbmifoo can get here and we should ignore them. |
Add tests for -mavx512vbmi2 and -mno-avx512vbmi2 to test/Driver/x86-target-features.c
Add a test for -mno-avx512bw also disabling avx512vbmi2 to test/Preprocessor/x86_target_features.c. Look for AVX512VBMINOAVX512BW for the existing test for avx512vbmi. Also add the test -mavx512vbmi2.
lib/Basic/Targets/X86.cpp | ||
---|---|---|
593 | conditions on 582 .. 585 see that only "avx512vbmi" and "avx512vbmi2" will be candidates to the added check at 589, so we should be fine |
Arguments corresponding to immediates need a capital 'I' in front of them so clang will error if they are a compile time constant.