diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-08-16 14:20:49 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2024-08-19 00:22:28 -0700 |
commit | d489b7ccb7b43fe54dfb4b2884d7f1eb2cb5806e (patch) | |
tree | ccab0dda514534b2b46e3b1e83f3622b44bee0ca /llvm/unittests/TargetParser/RISCVISAInfoTest.cpp | |
parent | 164d1230f78b32647e1a6e948245e75f557a8068 (diff) | |
download | llvm-d489b7ccb7b43fe54dfb4b2884d7f1eb2cb5806e.zip llvm-d489b7ccb7b43fe54dfb4b2884d7f1eb2cb5806e.tar.gz llvm-d489b7ccb7b43fe54dfb4b2884d7f1eb2cb5806e.tar.bz2 |
[RISCV] Merge some ISA error reporting together and make some errors more precise.
Loop over the extension names that have the same error message.
Print the name of Zvk* extensions instead of 'zvk*'.
Diffstat (limited to 'llvm/unittests/TargetParser/RISCVISAInfoTest.cpp')
-rw-r--r-- | llvm/unittests/TargetParser/RISCVISAInfoTest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/unittests/TargetParser/RISCVISAInfoTest.cpp b/llvm/unittests/TargetParser/RISCVISAInfoTest.cpp index 4c5087b..0d6a354 100644 --- a/llvm/unittests/TargetParser/RISCVISAInfoTest.cpp +++ b/llvm/unittests/TargetParser/RISCVISAInfoTest.cpp @@ -660,37 +660,37 @@ TEST(ParseArchString, MissingDepency) { for (StringRef Input : {"rv32i_zvkb"}) { EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()), - "'zvk*' requires 'v' or 'zve*' extension to also be specified"); + "'zvkb' requires 'v' or 'zve*' extension to also be specified"); } for (StringRef Input : {"rv32i_zvkg"}) { EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()), - "'zvk*' requires 'v' or 'zve*' extension to also be specified"); + "'zvkg' requires 'v' or 'zve*' extension to also be specified"); } for (StringRef Input : {"rv32i_zvkgs0p7"}) { EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()), - "'zvk*' requires 'v' or 'zve*' extension to also be specified"); + "'zvkg' requires 'v' or 'zve*' extension to also be specified"); } for (StringRef Input : {"rv32i_zvkned"}) { EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()), - "'zvk*' requires 'v' or 'zve*' extension to also be specified"); + "'zvkned' requires 'v' or 'zve*' extension to also be specified"); } for (StringRef Input : {"rv32i_zvknha"}) { EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()), - "'zvk*' requires 'v' or 'zve*' extension to also be specified"); + "'zvknha' requires 'v' or 'zve*' extension to also be specified"); } for (StringRef Input : {"rv32i_zvksed"}) { EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()), - "'zvk*' requires 'v' or 'zve*' extension to also be specified"); + "'zvksed' requires 'v' or 'zve*' extension to also be specified"); } for (StringRef Input : {"rv32i_zvksh"}) { EXPECT_EQ(toString(RISCVISAInfo::parseArchString(Input, true).takeError()), - "'zvk*' requires 'v' or 'zve*' extension to also be specified"); + "'zvksh' requires 'v' or 'zve*' extension to also be specified"); } for (StringRef Input : {"rv32i_zvknhb"}) { |