diff options
author | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2015-11-16 14:05:32 +0000 |
---|---|---|
committer | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2015-11-16 14:05:32 +0000 |
commit | 4c351fd4e8436df6bef759bc75d468785da72467 (patch) | |
tree | 0a6e11a752bc67071ea0d66a22969a832cd54699 /unittests/ADT/TripleTest.cpp | |
parent | 05400e9493fe6f8290516f854f911932835d34ef (diff) |
Handle ARMv6KZ naming
Summary:
* ARMv6KZ is the "canonical" name, given in the ARMARM
* ARMv6Z is an "official abbreviation" for it, mentioned in the ARMARM
* ARMv6ZK is a popular misspelling, which we should support as an alias.
The patch corrects the handling of the names.
Functional changes:
* ARMv6Z no longer treated as an architecture in its own right
* ARMv6ZK renamed to ARMv6KZ, accepting ARMv6ZK as an alias
* arm1176jz-s and arm1176jzf-s recognized as ARMv6ZK, instead of ARMv6K
* default ARMv6K CPU changed to arm1176j-s
Reviewers: rengolin, logan, compnerd
Subscribers: aemerson, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D14568
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT/TripleTest.cpp')
-rw-r--r-- | unittests/ADT/TripleTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/ADT/TripleTest.cpp b/unittests/ADT/TripleTest.cpp index 97635cae488..ff29b64ea07 100644 --- a/unittests/ADT/TripleTest.cpp +++ b/unittests/ADT/TripleTest.cpp @@ -856,6 +856,10 @@ TEST(TripleTest, getARMCPUForArch) { } { llvm::Triple Triple("armv6k-unknown-eabi"); + EXPECT_EQ("arm1176j-s", Triple.getARMCPUForArch()); + } + { + llvm::Triple Triple("armv6kz-unknown-eabi"); EXPECT_EQ("arm1176jzf-s", Triple.getARMCPUForArch()); } { |