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 | f187a65f99938da692caf99145d281754cf4dd45 (patch) | |
tree | 4dba573e29425e07b419ad321af1e39589347e75 /llvm/unittests/ADT/TripleTest.cpp | |
parent | 2f7f5e3535589a6c83a579a2fd2debae1d83f3f4 (diff) | |
download | bcm5719-llvm-f187a65f99938da692caf99145d281754cf4dd45.tar.gz bcm5719-llvm-f187a65f99938da692caf99145d281754cf4dd45.zip |
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
llvm-svn: 253206
Diffstat (limited to 'llvm/unittests/ADT/TripleTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/TripleTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/TripleTest.cpp b/llvm/unittests/ADT/TripleTest.cpp index 97635cae488..ff29b64ea07 100644 --- a/llvm/unittests/ADT/TripleTest.cpp +++ b/llvm/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()); } { |