|
1 | 1 | // RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \
|
2 |
| -// RUN: -Wa,-mmsa %s -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-MMSA |
| 2 | +// RUN: -Wa,-mmsa %s -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-MMSA |
3 | 3 | // CHECK-MMSA: "-cc1" {{.*}}"-mmsa"
|
4 | 4 |
|
5 | 5 | // RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \
|
6 |
| -// RUN: -Wa,-mno-msa,-mmsa %s -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-MMSA |
| 6 | +// RUN: -Wa,-mmsa,-mno-msa %s -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-NOMMSA |
| 7 | +// CHECK-NOMMSA: "-cc1" |
| 8 | +// CHECK-NOMMSA-NOT: "-mssa" |
7 | 9 |
|
8 |
| -// RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \ |
9 |
| -// RUN: -Wa,-mmsa,-mno-msa %s -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-NOMMSA |
10 |
| -// CHECK-NOMMSA: "-cc1" |
11 |
| - |
12 |
| -// RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \ |
13 |
| -// RUN: -fno-integrated-as -Wa,-mmsa %s -Werror 2>&1 | FileCheck %s --check-prefix=MIPS-MSA |
14 |
| -// MIPS-MSA: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EL" "-KPIC" "-mmsa" |
15 |
| - |
16 |
| -// RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \ |
17 |
| -// RUN: -fno-integrated-as -Wa,-mno-msa %s -Werror 2>&1 | FileCheck %s --check-prefix=MIPS-NOMSA |
18 |
| -// MIPS-NOMSA: as{{(.exe)?}}" |
19 |
| -// MIPS-NOMSA-NOT: "-mmsa" |
| 10 | +// RUN: not %clang -### -c --target=x86_64 -Wa,-mmsa -Wa,-mno-msa %s 2>&1 | FileCheck %s --check-prefix=ERR |
| 11 | +// ERR: error: unsupported argument '-mmsa' to option '-Wa,' |
| 12 | +// ERR: error: unsupported argument '-mno-msa' to option '-Wa,' |
0 commit comments