1 // REQUIRES: mips-registered-target
3 // Check handling MIPS specific features options.
6 // RUN: %clang -target mips-linux-gnu -### -c %s \
7 // RUN: -mno-mips16 -mips16 2>&1 \
8 // RUN: | FileCheck --check-prefix=CHECK-MIPS16 %s
9 // CHECK-MIPS16: "-target-feature" "+mips16"
12 // RUN: %clang -target mips-linux-gnu -### -c %s \
13 // RUN: -mips16 -mno-mips16 2>&1 \
14 // RUN: | FileCheck --check-prefix=CHECK-NOMIPS16 %s
15 // CHECK-NOMIPS16: "-target-feature" "-mips16"
18 // RUN: %clang -target mips-linux-gnu -### -c %s \
19 // RUN: -mno-dsp -mdsp 2>&1 \
20 // RUN: | FileCheck --check-prefix=CHECK-MDSP %s
21 // CHECK-MDSP: "-target-feature" "+dsp"
24 // RUN: %clang -target mips-linux-gnu -### -c %s \
25 // RUN: -mdsp -mno-dsp 2>&1 \
26 // RUN: | FileCheck --check-prefix=CHECK-NOMDSP %s
27 // CHECK-NOMDSP: "-target-feature" "-dsp"
30 // RUN: %clang -target mips-linux-gnu -### -c %s \
31 // RUN: -mno-dspr2 -mdspr2 2>&1 \
32 // RUN: | FileCheck --check-prefix=CHECK-MDSPR2 %s
33 // CHECK-MDSPR2: "-target-feature" "+dspr2"
36 // RUN: %clang -target mips-linux-gnu -### -c %s \
37 // RUN: -mdspr2 -mno-dspr2 2>&1 \
38 // RUN: | FileCheck --check-prefix=CHECK-NOMDSPR2 %s
39 // CHECK-NOMDSPR2: "-target-feature" "-dspr2"
42 // RUN: %clang -target mips-linux-gnu -### -c %s \
44 // RUN: | FileCheck --check-prefix=CHECK-MIPS-G %s
45 // CHECK-MIPS-G: "-mllvm" "-mips-ssection-threshold=16"