Skip to content

Commit 5c5f669

Browse files
authored
[RISCV] Add ISAInfoTest tests for a few XQCI extensions (#120060)
Missed out adding rv32 only support test checks for a few of the extensions.
1 parent b3d392a commit 5c5f669

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

llvm/unittests/TargetParser/RISCVISAInfoTest.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -653,14 +653,12 @@ TEST(ParseArchString, RejectsConflictingExtensions) {
653653
"'xwchc' and 'zcb' extensions are incompatible");
654654
}
655655

656-
for (StringRef Input : {"rv64i_xqcisls0p2"}) {
657-
EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
658-
"'xqcisls' is only supported for 'rv32'");
659-
}
660-
661-
for (StringRef Input : {"rv64i_xqcia0p2"}) {
662-
EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
663-
"'xqcia' is only supported for 'rv32'");
656+
for (StringRef Input :
657+
{"rv64i_xqcisls0p2", "rv64i_xqcia0p2", "rv64i_xqcicsr0p2",
658+
"rv64i_xqcilsm0p2", "rv64i_xqcics0p2"}) {
659+
EXPECT_THAT(
660+
toString(RISCVISAInfo::parseArchString(Input, true).takeError()),
661+
::testing::EndsWith(" is only supported for 'rv32'"));
664662
}
665663
}
666664

0 commit comments

Comments
 (0)