Skip to content

Commit 07181b4

Browse files
committed
fixup! clang-format
1 parent 6ee708b commit 07181b4

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

llvm/lib/TargetParser/RISCVISAInfo.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,7 @@ Error RISCVISAInfo::checkDependency() {
748748
{"xqcicm"}, {"xqcics"}, {"xqcicsr"}, {"xqciint"},
749749
{"xqcilia"}, {"xqcilo"}, {"xqcilsm"}, {"xqcisls"}};
750750
static constexpr StringLiteral ZcdOverlaps[] = {
751-
{"zcmt"}, {"zcmp"}, {"xqciac"}, {"xqcicm"}
752-
};
751+
{"zcmt"}, {"zcmp"}, {"xqciac"}, {"xqcicm"}};
753752

754753
if (HasI && HasE)
755754
return getIncompatibleError("i", "e");
@@ -763,10 +762,9 @@ Error RISCVISAInfo::checkDependency() {
763762
if (HasD && (HasC || Exts.count("zcd")))
764763
for (auto Ext : ZcdOverlaps)
765764
if (Exts.count(Ext.str()))
766-
return getError(Twine("'") + Ext +
767-
"' extension is incompatible with '" +
768-
(HasC ? "c" : "zcd") +
769-
"' extension when 'd' extension is enabled");
765+
return getError(
766+
Twine("'") + Ext + "' extension is incompatible with '" +
767+
(HasC ? "c" : "zcd") + "' extension when 'd' extension is enabled");
770768

771769
if (XLen != 32 && Exts.count("zcf"))
772770
return getError("'zcf' is only supported for 'rv32'");

llvm/unittests/TargetParser/RISCVISAInfoTest.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,10 @@ TEST(ParseArchString, RejectsConflictingExtensions) {
670670
}
671671

672672
for (StringRef Input : {"rv32i_zcd_xqciac0p3"}) {
673-
EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
674-
"'xqciac' extension is incompatible with 'zcd' extension when 'd' "
675-
"extension is enabled");
673+
EXPECT_EQ(
674+
toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
675+
"'xqciac' extension is incompatible with 'zcd' extension when 'd' "
676+
"extension is enabled");
676677
}
677678

678679
for (StringRef Input : {"rv32idc_xqcicm0p2"}) {
@@ -682,9 +683,10 @@ TEST(ParseArchString, RejectsConflictingExtensions) {
682683
}
683684

684685
for (StringRef Input : {"rv32i_zcd_xqcicm0p2"}) {
685-
EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
686-
"'xqcicm' extension is incompatible with 'zcd' extension when 'd' "
687-
"extension is enabled");
686+
EXPECT_EQ(
687+
toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
688+
"'xqcicm' extension is incompatible with 'zcd' extension when 'd' "
689+
"extension is enabled");
688690
}
689691

690692
for (StringRef Input : {"rv32i_zcmp_xqccmp0p1", "rv64i_zcmp_xqccmp0p1"}) {

0 commit comments

Comments
 (0)