xref: /aosp_15_r20/external/clang/test/Driver/arch-armv7k.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // Tests that make sure armv7k is mapped to the correct CPU and ABI choices
2*67e74705SXin Li 
3*67e74705SXin Li // RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7k -c %s -### 2>&1 | FileCheck %s
4*67e74705SXin Li // CHECK: "-cc1"{{.*}} "-target-cpu" "cortex-a7"
5*67e74705SXin Li // CHECK-NOT: "-fsjlj-exceptions"
6*67e74705SXin Li 
7*67e74705SXin Li // "thumbv7k-apple-ios" is a bit of a weird triple, but since the backend is
8*67e74705SXin Li // going to choose to use dwarf-based exceptions for it, the front-end needs to
9*67e74705SXin Li // match.
10*67e74705SXin Li 
11*67e74705SXin Li // RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7k -miphoneos-version-min=9.0 -c %s -### 2>&1 | FileCheck %s
12*67e74705SXin Li 
13*67e74705SXin Li // 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
14*67e74705SXin Li // CHECK-SJLJ: "-fsjlj-exceptions"
15