forked from OSchip/llvm-project
ARM: Default to Swift when compiling for iOS 6 or later.
Test cases adjusted accordingly. This fixes rdar://14871821. llvm-svn: 189756
This commit is contained in:
parent
0212272ce2
commit
f49c80178e
|
@ -133,8 +133,13 @@ void ARMSubtarget::resetSubtargetFeatures(const MachineFunction *MF) {
|
|||
}
|
||||
|
||||
void ARMSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
|
||||
if (CPUString.empty())
|
||||
CPUString = "generic";
|
||||
if (CPUString.empty()) {
|
||||
if (isTargetIOS() && !getTargetTriple().isOSVersionLT(6))
|
||||
// Default to Swift for iOS 6 or later versions.
|
||||
CPUString = "swift";
|
||||
else
|
||||
CPUString = "generic";
|
||||
}
|
||||
|
||||
// Insert the architecture feature derived from the target triple into the
|
||||
// feature string. This is important for setting features that are implied
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llc < %s -mtriple=armv7-apple-ios6.0 | FileCheck %s
|
||||
; RUN: llc < %s -mtriple=armv7-apple-ios6.0 -mcpu=generic| FileCheck %s
|
||||
|
||||
; rdar://9877866
|
||||
%struct.SmallStruct = type { i32, [8 x i32], [37 x i8] }
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; RUN: llc -mtriple=armv7-apple-ios6.0 -mcpu=swift < %s | FileCheck %s
|
||||
; RUN: llc -mtriple=armv7-apple-ios6.0 < %s | FileCheck %s --check-prefix=CHECK-STRICT-ATOMIC
|
||||
; RUN: llc -mtriple=armv7-apple-ios6.0 < %s | FileCheck %s
|
||||
; RUN: llc -mtriple=armv7-apple-ios6.0 -mcpu=generic < %s | FileCheck %s --check-prefix=CHECK-STRICT-ATOMIC
|
||||
|
||||
; Release operations only need the store barrier provided by a "dmb ishst",
|
||||
|
||||
|
|
Loading…
Reference in New Issue