| 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. |
| 4 |
|
| 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 |
| 8 |
|
| 9 |
// RUN: %clang --target=i386 -### %s -mskip-rax-setup -S 2>&1 | FileCheck --check-prefix=SRS %s |
| 10 |
// SRS: "-mskip-rax-setup" |
| 11 |
|
| 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" |
| 14 |
|
| 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" |