17 lines · c
1// RUN: %clang -target i386-unknown-unknown -### -S %s -msse -msse4 -mno-sse -mno-mmx -msse 2>&1 | FileCheck %s2// 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 %s7// IEEE-NOT: error: unknown argument8 9// RUN: %clang --target=i386 -### %s -mskip-rax-setup -S 2>&1 | FileCheck --check-prefix=SRS %s10// SRS: "-mskip-rax-setup"11 12// RUN: %clang --target=i386 -### %s -mno-skip-rax-setup -S 2>&1 | FileCheck --check-prefix=NO-SRS %s13// 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 %s16// IND-CS: "-mindirect-branch-cs-prefix"17