diff options
| author | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2015-10-25 08:07:37 +0000 |
|---|---|---|
| committer | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2015-10-25 08:07:37 +0000 |
| commit | fe897623f3b050693df0cd2a234ca6dcfbd4878b (patch) | |
| tree | 102c8f644e21db6b2bf0d39e7551bc2b9708d5e4 /llvm/unittests/ADT | |
| parent | e376c40308823cabe9d2c416ddb348598df39568 (diff) | |
| download | bcm5719-llvm-fe897623f3b050693df0cd2a234ca6dcfbd4878b.tar.gz bcm5719-llvm-fe897623f3b050693df0cd2a234ca6dcfbd4878b.zip | |
[X86] Add support for elfiamcu triple
This adds support for the i?86-*-elfiamcu triple, which indicates the IAMCU psABI is used.
Differential Revision: http://reviews.llvm.org/D13977
llvm-svn: 251222
Diffstat (limited to 'llvm/unittests/ADT')
| -rw-r--r-- | llvm/unittests/ADT/TripleTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/TripleTest.cpp b/llvm/unittests/ADT/TripleTest.cpp index 71072932bed..015eb853e5b 100644 --- a/llvm/unittests/ADT/TripleTest.cpp +++ b/llvm/unittests/ADT/TripleTest.cpp @@ -81,6 +81,12 @@ TEST(TripleTest, ParsedIDs) { EXPECT_EQ(Triple::Darwin, T.getOS()); EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); + T = Triple("i386-pc-linux-elfiamcu"); + EXPECT_EQ(Triple::x86, T.getArch()); + EXPECT_EQ(Triple::PC, T.getVendor()); + EXPECT_EQ(Triple::Linux, T.getOS()); + EXPECT_EQ(Triple::ELFIAMCU, T.getEnvironment()); + T = Triple("x86_64-pc-linux-gnu"); EXPECT_EQ(Triple::x86_64, T.getArch()); EXPECT_EQ(Triple::PC, T.getVendor()); |

