diff options
author | Pengfei Wang <pengfei.wang@intel.com> | 2019-05-31 06:09:35 +0000 |
---|---|---|
committer | Pengfei Wang <pengfei.wang@intel.com> | 2019-05-31 06:09:35 +0000 |
commit | 7c9c5922e0c09a794cbcdb9437915456399e6a63 (patch) | |
tree | 1079b1aec030c2d0fe3e00e3badd62809cb4c6e2 /test/Preprocessor | |
parent | eeee4079f9164143102deec6a9eb002bd3c823c2 (diff) | |
download | clang-7c9c5922e0c09a794cbcdb9437915456399e6a63.tar.gz |
[X86] Add VP2INTERSECT instructions
Support intel AVX512 VP2INTERSECT instructions in clang
Patch by Xiang Zhang (xiangzhangllvm)
Differential Revision: https://reviews.llvm.org/D62367
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r-- | test/Preprocessor/x86_target_features.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Preprocessor/x86_target_features.c b/test/Preprocessor/x86_target_features.c index fa815dc61e..2dfca34121 100644 --- a/test/Preprocessor/x86_target_features.c +++ b/test/Preprocessor/x86_target_features.c @@ -458,3 +458,13 @@ // AVX512BF16_NOAVX512VL: #define __AVX512BF16__ 1 +// RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mavx512vp2intersect -x c -E -dM -o - %s | FileCheck -check-prefix=VP2INTERSECT %s + +// VP2INTERSECT: #define __AVX512F__ 1 +// VP2INTERSECT: #define __AVX512VP2INTERSECT__ 1 + +// RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mno-avx512vp2intersect -x c -E -dM -o - %s | FileCheck -check-prefix=NOVP2INTERSECT %s +// RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mavx512vp2intersect -mno-avx512f -x c -E -dM -o - %s | FileCheck -check-prefix=NOVP2INTERSECT %s + +// NOVP2INTERSECT-NOT: #define __AVX512VP2INTERSECT__ 1 + |