[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / x86_features.c
blob7900b15368980641975324a9a4ea6b56f92c319e
1 // RUN: %clang -target i386-unknown-unknown -### -S %s -msse -msse4 -mno-sse -mno-mmx -msse 2>&1 | FileCheck %s
2 // CHECK: "pentium4" "-target-feature" "+sse4.2" "-target-feature" "-mmx" "-target-feature" "+sse"
3 // Note that we filter out all but the last -m(no)sse.
5 // Test that we don't produce an error with -mieee-fp.
6 // RUN: %clang -### %s -mieee-fp -S 2>&1 | FileCheck --check-prefix=IEEE %s
7 // IEEE-NOT: error: unknown argument
9 // RUN: %clang --target=i386 -### %s -mskip-rax-setup -S 2>&1 | FileCheck --check-prefix=SRS %s
10 // SRS: "-mskip-rax-setup"
12 // RUN: %clang --target=i386 -### %s -mno-skip-rax-setup -S 2>&1 | FileCheck --check-prefix=NO-SRS %s
13 // NO-SRS-NOT: "-mskip-rax-setup"
15 // RUN: %clang --target=i386 -### %s -mindirect-branch-cs-prefix -S 2>&1 | FileCheck --check-prefix=IND-CS %s
16 // IND-CS: "-mindirect-branch-cs-prefix"