]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Driver/mips-features.c
Vendor import of clang release_32 branch r168974 (effectively, 3.2 RC2):
[FreeBSD/FreeBSD.git] / test / Driver / mips-features.c
1 // REQUIRES: mips-registered-target
2 //
3 // Check handling MIPS specific features options.
4 //
5 // -mips16
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"
10 //
11 // -mno-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"
16 //
17 // -mdsp
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"
22 //
23 // -mno-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"
28 //
29 // -mdspr2
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"
34 //
35 // -mno-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"
40 //
41 // -G
42 // RUN: %clang -target mips-linux-gnu -### -c %s \
43 // RUN:     -G 16 2>&1 \
44 // RUN:   | FileCheck --check-prefix=CHECK-MIPS-G %s
45 // CHECK-MIPS-G: "-mllvm" "-mips-ssection-threshold=16"