File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
llvm/unittests/TargetParser Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -737,8 +737,7 @@ TEST(TargetParserTest, ARMFPUNeonSupportLevel) {
737737 for (ARM::FPUKind FK = static_cast <ARM::FPUKind>(0 );
738738 FK <= ARM::FPUKind::FK_LAST;
739739 FK = static_cast <ARM::FPUKind>(static_cast <unsigned >(FK) + 1 ))
740- if (FK == ARM::FK_LAST ||
741- ARM::getFPUName (FK).find (" neon" ) == std::string::npos)
740+ if (FK == ARM::FK_LAST || !ARM::getFPUName (FK).contains (" neon" ))
742741 EXPECT_EQ (ARM::NeonSupportLevel::None, ARM::getFPUNeonSupportLevel (FK));
743742 else
744743 EXPECT_NE (ARM::NeonSupportLevel::None, ARM::getFPUNeonSupportLevel (FK));
@@ -748,9 +747,8 @@ TEST(TargetParserTest, ARMFPURestriction) {
748747 for (ARM::FPUKind FK = static_cast <ARM::FPUKind>(0 );
749748 FK <= ARM::FPUKind::FK_LAST;
750749 FK = static_cast <ARM::FPUKind>(static_cast <unsigned >(FK) + 1 )) {
751- if (FK == ARM::FK_LAST ||
752- (ARM::getFPUName (FK).find (" d16" ) == std::string::npos &&
753- ARM::getFPUName (FK).find (" vfpv3xd" ) == std::string::npos))
750+ if (FK == ARM::FK_LAST || (!ARM::getFPUName (FK).contains (" d16" ) &&
751+ !ARM::getFPUName (FK).contains (" vfpv3xd" )))
754752 EXPECT_EQ (ARM::FPURestriction::None, ARM::getFPURestriction (FK));
755753 else
756754 EXPECT_NE (ARM::FPURestriction::None, ARM::getFPURestriction (FK));
You can’t perform that action at this time.
0 commit comments