diff options
Diffstat (limited to 'test/Preprocessor/x86_target_features.c')
-rw-r--r-- | test/Preprocessor/x86_target_features.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/test/Preprocessor/x86_target_features.c b/test/Preprocessor/x86_target_features.c index 7bc5cd8..806eeec 100644 --- a/test/Preprocessor/x86_target_features.c +++ b/test/Preprocessor/x86_target_features.c @@ -114,6 +114,51 @@ // AVX512PF: #define __SSE__ 1 // AVX512PF: #define __SSSE3__ 1 +// RUN: %clang -target i386-unknown-unknown -march=atom -mavx512dq -x c -E -dM -o - %s | FileCheck --check-prefix=AVX512DQ %s + +// AVX512DQ: #define __AVX2__ 1 +// AVX512DQ: #define __AVX512DQ__ 1 +// AVX512DQ: #define __AVX512F__ 1 +// AVX512DQ: #define __AVX__ 1 +// AVX512DQ: #define __SSE2_MATH__ 1 +// AVX512DQ: #define __SSE2__ 1 +// AVX512DQ: #define __SSE3__ 1 +// AVX512DQ: #define __SSE4_1__ 1 +// AVX512DQ: #define __SSE4_2__ 1 +// AVX512DQ: #define __SSE_MATH__ 1 +// AVX512DQ: #define __SSE__ 1 +// AVX512DQ: #define __SSSE3__ 1 + +// RUN: %clang -target i386-unknown-unknown -march=atom -mavx512bw -x c -E -dM -o - %s | FileCheck --check-prefix=AVX512BW %s + +// AVX512BW: #define __AVX2__ 1 +// AVX512BW: #define __AVX512BW__ 1 +// AVX512BW: #define __AVX512F__ 1 +// AVX512BW: #define __AVX__ 1 +// AVX512BW: #define __SSE2_MATH__ 1 +// AVX512BW: #define __SSE2__ 1 +// AVX512BW: #define __SSE3__ 1 +// AVX512BW: #define __SSE4_1__ 1 +// AVX512BW: #define __SSE4_2__ 1 +// AVX512BW: #define __SSE_MATH__ 1 +// AVX512BW: #define __SSE__ 1 +// AVX512BW: #define __SSSE3__ 1 + +// RUN: %clang -target i386-unknown-unknown -march=atom -mavx512vl -x c -E -dM -o - %s | FileCheck --check-prefix=AVX512VL %s + +// AVX512VL: #define __AVX2__ 1 +// AVX512VL: #define __AVX512F__ 1 +// AVX512VL: #define __AVX512VL__ 1 +// AVX512VL: #define __AVX__ 1 +// AVX512VL: #define __SSE2_MATH__ 1 +// AVX512VL: #define __SSE2__ 1 +// AVX512VL: #define __SSE3__ 1 +// AVX512VL: #define __SSE4_1__ 1 +// AVX512VL: #define __SSE4_2__ 1 +// AVX512VL: #define __SSE_MATH__ 1 +// AVX512VL: #define __SSE__ 1 +// AVX512VL: #define __SSSE3__ 1 + // RUN: %clang -target i386-unknown-unknown -march=atom -mavx512pf -mno-avx512f -x c -E -dM -o - %s | FileCheck --check-prefix=AVX512F2 %s // AVX512F2: #define __AVX2__ 1 @@ -236,3 +281,11 @@ // NO3DNOWPRFCHW: #define __PRFCHW__ 1 +// RUN: %clang -target i386-unknown-unknown -march=atom -madx -x c -E -dM -o - %s | FileCheck --check-prefix=ADX %s + +// ADX: #define __ADX__ 1 + +// RUN: %clang -target i386-unknown-unknown -march=atom -mrdseed -x c -E -dM -o - %s | FileCheck --check-prefix=RDSEED %s + +// RDSEED: #define __RDSEED__ 1 + |