summaryrefslogtreecommitdiffstats
path: root/lld/unittests/DriverTests/GnuLdDriverTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/unittests/DriverTests/GnuLdDriverTest.cpp')
-rw-r--r--lld/unittests/DriverTests/GnuLdDriverTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/unittests/DriverTests/GnuLdDriverTest.cpp b/lld/unittests/DriverTests/GnuLdDriverTest.cpp
index 102dcc0e4b8..13d20a4411a 100644
--- a/lld/unittests/DriverTests/GnuLdDriverTest.cpp
+++ b/lld/unittests/DriverTests/GnuLdDriverTest.cpp
@@ -207,6 +207,12 @@ TEST_F(GnuLdParserTest, Emulation) {
EXPECT_TRUE(
parse("mips64el-linux-gnu-ld", "a.o", "-m", "elf32btsmip", nullptr));
EXPECT_EQ(Triple::mips, _ctx->getTriple().getArch());
+ EXPECT_TRUE(
+ parse("mipsel-linux-gnu-ld", "a.o", "-m", "elf32btsmipn32", nullptr));
+ EXPECT_EQ(Triple::mips, _ctx->getTriple().getArch());
+ EXPECT_TRUE(
+ parse("mips-linux-gnu-ld", "a.o", "-m", "elf32ltsmipn32", nullptr));
+ EXPECT_EQ(Triple::mipsel, _ctx->getTriple().getArch());
}
// Linker script
OpenPOWER on IntegriCloud