[PATCH] D30413: ARM: Set default CPU for OpenBSD/arm to Cortex-A8
Brad Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 27 13:58:44 PST 2017
brad updated this revision to Diff 89933.
brad added a comment.
Add a test
https://reviews.llvm.org/D30413
Files:
lib/Support/Triple.cpp
unittests/ADT/TripleTest.cpp
Index: unittests/ADT/TripleTest.cpp
===================================================================
--- unittests/ADT/TripleTest.cpp
+++ unittests/ADT/TripleTest.cpp
@@ -1018,6 +1018,10 @@
EXPECT_EQ("cortex-a8", Triple.getARMCPUForArch());
}
{
+ llvm::Triple Triple("arm--openbsd");
+ EXPECT_EQ("cortex-a8", Triple.getARMCPUForArch());
+ }
+ {
llvm::Triple Triple("armv6-unknown-freebsd");
EXPECT_EQ("arm1176jzf-s", Triple.getARMCPUForArch());
}
Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp
+++ lib/Support/Triple.cpp
@@ -1515,6 +1515,7 @@
return "strongarm";
}
case llvm::Triple::NaCl:
+ case llvm::Triple::OpenBSD:
return "cortex-a8";
default:
switch (getEnvironment()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30413.89933.patch
Type: text/x-patch
Size: 819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170227/67305896/attachment.bin>
More information about the llvm-commits
mailing list