summaryrefslogtreecommitdiff
path: root/lld/unittests
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-08-28 21:39:13 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-08-28 21:39:13 +0000
commit2d61742609781779df541a14988e258895745b82 (patch)
treea4ba5a15d3966e52d2e6d85c0ab16187cf6eeb22 /lld/unittests
parentc6328c74bfbf5da8d54070e90613b987a6b393f6 (diff)
[Mips] Support two more MIPS linking emulation options elf32btsmipn32/elf32ltsmipn32
Diffstat (limited to 'lld/unittests')
-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