[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / mips-msa.c
blob28b5012da336cc89057b62ae9ddb9908fa277cf8
1 // RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \
2 // RUN: -Wa,-mmsa %s -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-MMSA
3 // CHECK-MMSA: "-cc1" {{.*}}"-mmsa"
5 // RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \
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"
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,'