diff options
Diffstat (limited to 'test/Preprocessor/x86_target_features.c')
-rw-r--r-- | test/Preprocessor/x86_target_features.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Preprocessor/x86_target_features.c b/test/Preprocessor/x86_target_features.c index ac9e730..9c4192c 100644 --- a/test/Preprocessor/x86_target_features.c +++ b/test/Preprocessor/x86_target_features.c @@ -293,3 +293,26 @@ // RDSEED: #define __RDSEED__ 1 +// RUN: %clang -target i386-unknown-unknown -march=atom -mxsave -x c -E -dM -o - %s | FileCheck --check-prefix=XSAVE %s + +// XSAVE: #define __XSAVE__ 1 + +// RUN: %clang -target i386-unknown-unknown -march=atom -mxsaveopt -x c -E -dM -o - %s | FileCheck --check-prefix=XSAVEOPT %s + +// XSAVEOPT: #define __XSAVEOPT__ 1 +// XSAVEOPT: #define __XSAVE__ 1 + +// RUN: %clang -target i386-unknown-unknown -march=atom -mxsavec -x c -E -dM -o - %s | FileCheck --check-prefix=XSAVEC %s + +// XSAVEC: #define __XSAVEC__ 1 +// XSAVEC: #define __XSAVE__ 1 + +// RUN: %clang -target i386-unknown-unknown -march=atom -mxsaves -x c -E -dM -o - %s | FileCheck --check-prefix=XSAVES %s + +// XSAVES: #define __XSAVES__ 1 +// XSAVES: #define __XSAVE__ 1 + +// RUN: %clang -target i386-unknown-unknown -march=atom -mxsaveopt -mno-xsave -x c -E -dM -o - %s | FileCheck --check-prefix=NOXSAVE %s + +// NOXSAVE-NOT: #define __XSAVEOPT__ 1 +// NOXSAVE-NOT: #define __XSAVE__ 1 |