Skip to content

Commit 016b533

Browse files
committed
[RISCV] Add ISAInfoTest for a few XQCI extensions
Missed out adding rv32 only support test checks for a few of the extensions.
1 parent 978de2d commit 016b533

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

llvm/unittests/TargetParser/RISCVISAInfoTest.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,21 @@ TEST(ParseArchString, RejectsConflictingExtensions) {
662662
EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
663663
"'xqcia' is only supported for 'rv32'");
664664
}
665+
666+
for (StringRef Input : {"rv64i_xqcicsr0p2"}) {
667+
EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
668+
"'xqcicsr' is only supported for 'rv32'");
669+
}
670+
671+
for (StringRef Input : {"rv64i_xqcilsm0p2"}) {
672+
EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
673+
"'xqcilsm' is only supported for 'rv32'");
674+
}
675+
676+
for (StringRef Input : {"rv64i_xqcics0p2"}) {
677+
EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
678+
"'xqcics' is only supported for 'rv32'");
679+
}
665680
}
666681

667682
TEST(ParseArchString, MissingDepency) {

0 commit comments

Comments
 (0)