mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
ARMv7k: use Cortex-A7 by default even for tvOS
Also actually test the default CPU from those triples. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260621 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f7640fe2c1
commit
aee93e78d1
@ -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