added intrinsics support for (whole of) vbmi2 instructions, matching a similar work on the backend (D40206)
Update the ICL macros in test/Preprocessor/predefined-arch-macros.c
|1254 ↗||(On Diff #128090)|
Arguments corresponding to immediates need a capital 'I' in front of them so clang will error if they are a compile time constant.
|135 ↗||(On Diff #128090)|
Dont' remove the TODO until all features are added.
|589 ↗||(On Diff #128090)|
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.