[llvm] 63ded49 - [RISCV][test] Fix typos in RISCVISAInfoTest
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 04:01:57 PDT 2023
Author: Alex Bradbury
Date: 2023-03-13T11:00:46Z
New Revision: 63ded49c1259ca6502072fcae0fd8dbd74e54e3e
URL: https://github.com/llvm/llvm-project/commit/63ded49c1259ca6502072fcae0fd8dbd74e54e3e
DIFF: https://github.com/llvm/llvm-project/commit/63ded49c1259ca6502072fcae0fd8dbd74e54e3e.diff
LOG: [RISCV][test] Fix typos in RISCVISAInfoTest
Added:
Modified:
llvm/unittests/Support/RISCVISAInfoTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/RISCVISAInfoTest.cpp b/llvm/unittests/Support/RISCVISAInfoTest.cpp
index 0e167ca133108..07e288139ff6b 100644
--- a/llvm/unittests/Support/RISCVISAInfoTest.cpp
+++ b/llvm/unittests/Support/RISCVISAInfoTest.cpp
@@ -60,7 +60,7 @@ TEST(ParseNormalizedArchString, AcceptsValidBaseISAsAndSetsXLen) {
EXPECT_EQ(InfoRV32E.getExtensions().size(), 1UL);
EXPECT_TRUE(InfoRV32E.getExtensions().at("e") ==
(RISCVExtensionInfo{"e", 2, 0}));
- EXPECT_EQ(InfoRV32I.getXLen(), 32U);
+ EXPECT_EQ(InfoRV32E.getXLen(), 32U);
auto MaybeRV64I = RISCVISAInfo::parseNormalizedArchString("rv64i2p0");
ASSERT_THAT_EXPECTED(MaybeRV64I, Succeeded());
@@ -76,7 +76,7 @@ TEST(ParseNormalizedArchString, AcceptsValidBaseISAsAndSetsXLen) {
EXPECT_EQ(InfoRV64E.getExtensions().size(), 1UL);
EXPECT_TRUE(InfoRV64E.getExtensions().at("e") ==
(RISCVExtensionInfo{"e", 2, 0}));
- EXPECT_EQ(InfoRV64I.getXLen(), 64U);
+ EXPECT_EQ(InfoRV64E.getXLen(), 64U);
}
TEST(ParseNormalizedArchString, AcceptsArbitraryExtensionsAndVersions) {
More information about the llvm-commits
mailing list