summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2015-05-27 19:49:53 +0000
committerRenato Golin <renato.golin@linaro.org>2015-05-27 19:49:53 +0000
commit66b682ab043dac8108b44b8a7069a547bb0071ee (patch)
tree719edd5d00f3c3792a929c3f57a4eee5c57f8e6c /llvm/unittests
parent54da91e3e1b82bc7ebfdc90017ced5dc995ca6d6 (diff)
downloadbcm5719-llvm-66b682ab043dac8108b44b8a7069a547bb0071ee.tar.gz
bcm5719-llvm-66b682ab043dac8108b44b8a7069a547bb0071ee.zip
ARMTargetParser: Make BSD Thumb/BE armv6 work
Simple change to make arch like "thumbv6" and "armbev6" to return the correct CPU for FreeBSD and NetBSD. llvm-svn: 238353
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/ADT/TripleTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/TripleTest.cpp b/llvm/unittests/ADT/TripleTest.cpp
index b0f01b26e72..23a9128a8f2 100644
--- a/llvm/unittests/ADT/TripleTest.cpp
+++ b/llvm/unittests/ADT/TripleTest.cpp
@@ -800,6 +800,14 @@ TEST(TripleTest, getARMCPUForArch) {
EXPECT_STREQ("arm1176jzf-s", Triple.getARMCPUForArch());
}
{
+ llvm::Triple Triple("thumbv6-unknown-freebsd");
+ EXPECT_STREQ("arm1176jzf-s", Triple.getARMCPUForArch());
+ }
+ {
+ llvm::Triple Triple("armebv6-unknown-freebsd");
+ EXPECT_STREQ("arm1176jzf-s", Triple.getARMCPUForArch());
+ }
+ {
llvm::Triple Triple("arm--win32");
EXPECT_STREQ("cortex-a9", Triple.getARMCPUForArch());
}
OpenPOWER on IntegriCloud