Home | History | Annotate | Download | only in Driver

Lines Matching full:mips

1 // Check passing Mips ABI options to the backend.
3 // RUN: %clang -target mips-linux-gnu -### -c %s 2>&1 \
4 // RUN: | FileCheck -check-prefix=MIPS-DEF %s
5 // MIPS-DEF: "-target-cpu" "mips32r2"
6 // MIPS-DEF: "-target-abi" "o32"
13 // RUN: %clang -target mips-linux-gnu -### -c %s \
15 // RUN: | FileCheck -check-prefix=MIPS-ABI-32 %s
16 // MIPS-ABI-32: "-target-cpu" "mips32r2"
17 // MIPS-ABI-32: "-target-abi" "o32"
19 // RUN: %clang -target mips-linux-gnu -### -c %s \
21 // RUN: | FileCheck -check-prefix=MIPS-ABI-O32 %s
22 // MIPS-ABI-O32: "-target-cpu" "mips32r2"
23 // MIPS-ABI-O32: "-target-abi" "o32"
25 // RUN: %clang -target mips-linux-gnu -### -c %s \
27 // RUN: | FileCheck -check-prefix=MIPS-ABI-N32 %s
28 // MIPS-ABI-N32: "-target-cpu" "mips64r2"
29 // MIPS-ABI-N32: "-target-abi" "n32"
33 // RUN: | FileCheck -check-prefix=MIPS-ABI-64 %s
34 // MIPS-ABI-64: "-target-cpu" "mips64r2"
35 // MIPS-ABI-64: "-target-abi" "n64"
39 // RUN: | FileCheck -check-prefix=MIPS-ABI-N64 %s
40 // MIPS-ABI-N64: "-target-cpu" "mips64r2"
41 // MIPS-ABI-N64: "-target-abi" "n64"
45 // RUN: | FileCheck -check-prefix=MIPS-ABI-O64 %s
46 // MIPS-ABI-O64: error: unknown target ABI 'o64'
48 // RUN: %clang -target mips-linux-gnu -### -c %s \
50 // RUN: | FileCheck -check-prefix=MIPS-ABI-EABI %s
51 // MIPS-ABI-EABI: "-target-cpu" "mips32r2"
52 // MIPS-ABI-EABI: "-target-abi" "eabi"
54 // RUN: not %clang -target mips-linux-gnu -c %s \
56 // RUN: | FileCheck -check-prefix=MIPS-ABI-UNKNOWN %s
57 // MIPS-ABI-UNKNOWN: error: unknown target ABI 'unknown'
59 // RUN: %clang -target mips-linux-gnu -### -c %s \
61 // RUN: | FileCheck -check-prefix=MIPS-ARCH-1 %s
62 // MIPS-ARCH-1: "-target-cpu" "mips1"
63 // MIPS-ARCH-1: "-target-abi" "o32"
65 // RUN: %clang -target mips-linux-gnu -### -c %s \
67 // RUN: | FileCheck -check-prefix=MIPS-ARCH-2 %s
68 // MIPS-ARCH-2: "-target-cpu" "mips2"
69 // MIPS-ARCH-2: "-target-abi" "o32"
71 // RUN: %clang -target mips-linux-gnu -### -c %s \
73 // RUN: | FileCheck -check-prefix=MIPS-ARCH-3 %s
74 // MIPS-ARCH-3: "-target-cpu" "mips3"
75 // MIPS-ARCH-3: "-target-abi" "o32"
77 // RUN: %clang -target mips-linux-gnu -### -c %s \
79 // RUN: | FileCheck -check-prefix=MIPS-ARCH-4 %s
80 // MIPS-ARCH-4: "-target-cpu" "mips4"
81 // MIPS-ARCH-4: "-target-abi" "o32"
83 // RUN: %clang -target mips-linux-gnu -### -c %s \
85 // RUN: | FileCheck -check-prefix=MIPS-ARCH-5 %s
86 // MIPS-ARCH-5: "-target-cpu" "mips5"
87 // MIPS-ARCH-5: "-target-abi" "o32"
89 // RUN: %clang -target mips-linux-gnu -### -c %s \
91 // RUN: | FileCheck -check-prefix=MIPS-ARCH-32 %s
92 // MIPS-ARCH-32: "-target-cpu" "mips32"
93 // MIPS-ARCH-32: "-target-abi" "o32"
95 // RUN: %clang -target mips-linux-gnu -### -c %s \
97 // RUN: | FileCheck -check-prefix=MIPS-ARCH-32R2 %s
98 // MIPS-ARCH-32R2: "-target-cpu" "mips32r2"
99 // MIPS-ARCH-32R2: "-target-abi" "o32"
101 // RUN: %clang -target mips-linux-gnu -### -c %s \
103 // RUN: | FileCheck -check-prefix=MIPS-ARCH-3264 %s
104 // MIPS-ARCH-3264: "-target-cpu" "mips64"
105 // MIPS-ARCH-3264: "-target-abi" "o32"
109 // RUN: | FileCheck -check-prefix=MIPS-ARCH-64 %s
110 // MIPS-ARCH-64: "-target-cpu" "mips64"
111 // MIPS-ARCH-64: "-target-abi" "n64"
115 // RUN: | FileCheck -check-prefix=MIPS-ARCH-64R2 %s
116 // MIPS-ARCH-64R2: "-target-cpu" "mips64r2"
117 // MIPS-ARCH-64R2: "-target-abi" "n64"
121 // RUN: | FileCheck -check-prefix=MIPS-ARCH-OCTEON %s
122 // MIPS-ARCH-OCTEON: "-target-cpu" "octeon"
123 // MIPS-ARCH-OCTEON: "-target-abi" "n64"
127 // RUN: | FileCheck -check-prefix=MIPS-ARCH-6432 %s
128 // MIPS-ARCH-6432: error: unknown target CPU 'mips32'
130 // RUN: not %clang -target mips-linux-gnu -c %s \
132 // RUN: | FileCheck -check-prefix=MIPS-ARCH-UNKNOWN %s
133 // MIPS-ARCH-UNKNOWN: error: unknown target CPU 'unknown'