2015-11-18 02:27:27 +08:00
|
|
|
// Tests that make sure armv7k is mapped to the correct CPU and ABI choices
|
2015-10-31 00:30:27 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7k -c %s -### 2>&1 | FileCheck %s
|
|
|
|
// CHECK: "-cc1"{{.*}} "-target-cpu" "cortex-a7"
|
2015-10-31 00:30:41 +08:00
|
|
|
// CHECK-NOT: "-fsjlj-exceptions"
|
2015-11-18 02:27:27 +08:00
|
|
|
|
|
|
|
// "thumbv7k-apple-ios" is a bit of a weird triple, but since the backend is
|
2016-01-28 03:32:40 +08:00
|
|
|
// going to choose to use dwarf-based exceptions for it, the front-end needs to
|
2015-11-18 02:27:27 +08:00
|
|
|
// match.
|
|
|
|
|
2016-01-28 03:32:40 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7k -miphoneos-version-min=9.0 -c %s -### 2>&1 | FileCheck %s
|
2016-01-28 06:14:02 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7 -mwatchos-version-min=9.0 -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SJLJ
|
|
|
|
// CHECK-SJLJ: "-fsjlj-exceptions"
|