File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -2556,7 +2556,7 @@ static void CollectArgsForIntegratedAssembler(Compilation &C,
2556
2556
bool Crel = false , ExperimentalCrel = false ;
2557
2557
bool UseRelaxRelocations = C.getDefaultToolChain ().useRelaxRelocations ();
2558
2558
bool UseNoExecStack = false ;
2559
- std::optional< bool > Msa;
2559
+ bool Msa = false ;
2560
2560
const char *MipsTargetFeature = nullptr ;
2561
2561
StringRef ImplicitIt;
2562
2562
for (const Arg *A :
@@ -2786,7 +2786,7 @@ static void CollectArgsForIntegratedAssembler(Compilation &C,
2786
2786
<< " -Wa,--crel" << D.getTargetTriple ();
2787
2787
}
2788
2788
}
2789
- if (Msa && *Msa )
2789
+ if (Msa)
2790
2790
CmdArgs.push_back (" -mmsa" );
2791
2791
if (!UseRelaxRelocations)
2792
2792
CmdArgs.push_back (" -mrelax-relocations=no" );
Original file line number Diff line number Diff line change 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
7
-
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"
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"
You can’t perform that action at this time.
0 commit comments