projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Default to armv7 cpu for NaCl when march=arm
[oota-llvm.git]
/
unittests
/
ADT
/
TripleTest.cpp
diff --git
a/unittests/ADT/TripleTest.cpp
b/unittests/ADT/TripleTest.cpp
index 230f2ab7e1e7331ae7f05452f60550db0f9cc9f0..1113bb60dc4c0f3a2bb928b8b921abe693fca47c 100644
(file)
--- a/
unittests/ADT/TripleTest.cpp
+++ b/
unittests/ADT/TripleTest.cpp
@@
-669,6
+669,10
@@
TEST(TripleTest, getARMCPUForArch) {
EXPECT_STREQ("cortex-a8", Triple.getARMCPUForArch());
EXPECT_STREQ("swift", Triple.getARMCPUForArch("armv7s"));
}
+ {
+ llvm::Triple Triple("arm--nacl");
+ EXPECT_STREQ("cortex-a8", Triple.getARMCPUForArch("arm"));
+ }
}
}