[llvm] da44224 - [RISCV][test] Fix broken unit test after d25751779ba

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 23 04:19:52 PDT 2023


Author: Alex Bradbury
Date: 2023-03-23T11:17:40Z
New Revision: da44224d3aa806be8b1c4a29c791387e151b4f23

URL: https://github.com/llvm/llvm-project/commit/da44224d3aa806be8b1c4a29c791387e151b4f23
DIFF: https://github.com/llvm/llvm-project/commit/da44224d3aa806be8b1c4a29c791387e151b4f23.diff

LOG: [RISCV][test] Fix broken unit test after d25751779ba

The patch had missed the RISCVISAInfoTest.cpp change.

Added: 
    

Modified: 
    llvm/unittests/Support/RISCVISAInfoTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/RISCVISAInfoTest.cpp b/llvm/unittests/Support/RISCVISAInfoTest.cpp
index 2f623a94ce2a8..0b749eb0c6815 100644
--- a/llvm/unittests/Support/RISCVISAInfoTest.cpp
+++ b/llvm/unittests/Support/RISCVISAInfoTest.cpp
@@ -141,7 +141,7 @@ TEST(ParseArchString, AcceptsSupportedBaseISAsAndSetsXLenAndFLen) {
   RISCVISAInfo &InfoRV32E = **MaybeRV32E;
   RISCVISAInfo::OrderedExtensionMap ExtsRV32E = InfoRV32E.getExtensions();
   EXPECT_EQ(ExtsRV32E.size(), 1UL);
-  EXPECT_TRUE(ExtsRV32E.at("e") == (RISCVExtensionInfo{1, 9}));
+  EXPECT_TRUE(ExtsRV32E.at("e") == (RISCVExtensionInfo{2, 0}));
   EXPECT_EQ(InfoRV32E.getXLen(), 32U);
   EXPECT_EQ(InfoRV32E.getFLen(), 0U);
 


        


More information about the llvm-commits mailing list