mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 01:11:44 +00:00
ARMv7k: use Cortex-A7 by default even for tvOS
Also actually test the default CPU from those triples. llvm-svn: 260621
This commit is contained in:
parent
9e7cb55466
commit
49f7c6fb6b
@ -1412,6 +1412,7 @@ StringRef Triple::getARMCPUForArch(StringRef MArch) const {
|
||||
case llvm::Triple::MacOSX:
|
||||
case llvm::Triple::IOS:
|
||||
case llvm::Triple::WatchOS:
|
||||
case llvm::Triple::TvOS:
|
||||
if (MArch == "v7k")
|
||||
return "cortex-a7";
|
||||
break;
|
||||
|
@ -982,6 +982,18 @@ TEST(TripleTest, getARMCPUForArch) {
|
||||
llvm::Triple Triple("armv7s-apple-ios7");
|
||||
EXPECT_EQ("swift", Triple.getARMCPUForArch());
|
||||
}
|
||||
{
|
||||
llvm::Triple Triple("armv7k-apple-ios9");
|
||||
EXPECT_EQ("cortex-a7", Triple.getARMCPUForArch());
|
||||
}
|
||||
{
|
||||
llvm::Triple Triple("armv7k-apple-watchos3");
|
||||
EXPECT_EQ("cortex-a7", Triple.getARMCPUForArch());
|
||||
}
|
||||
{
|
||||
llvm::Triple Triple("armv7k-apple-tvos9");
|
||||
EXPECT_EQ("cortex-a7", Triple.getARMCPUForArch());
|
||||
}
|
||||
{
|
||||
llvm::Triple Triple("armv7em-apple-ios7");
|
||||
EXPECT_EQ("cortex-m4", Triple.getARMCPUForArch());
|
||||
|
Loading…
Reference in New Issue
Block a user