blob: e0a0342f118f1a8d305d87a8875b62d79a92bc09 [file] [log] [blame]
Tim Northover9c7e0352013-12-12 11:55:52 +00001// RUN: %clang -target x86_64-apple-darwin -arch armv6m -resource-dir=%S/Inputs/resource_dir %s -### 2> %t
2// RUN: %clang -target x86_64-apple-darwin -arch armv7em -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
3// RUN: %clang -target x86_64-apple-darwin -arch armv7em -mhard-float -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
4
5// RUN: %clang -target x86_64-apple-darwin -arch armv7m -fPIC -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
Tim Northovera5877502013-12-13 16:05:12 +00006// RUN: %clang -target x86_64-apple-darwin -arch armv7em -fPIC -mfloat-abi=hard -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
7// RUN: %clang -target x86_64-apple-darwin -arch armv7em -fPIC -mfloat-abi=softfp -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
8
9// RUN: FileCheck %s < %t
Tim Northover9c7e0352013-12-12 11:55:52 +000010
11// ARMv6m has no float
12// CHECK: libclang_rt.soft_static.a
13
14// ARMv7em does, but defaults to soft
15// CHECK: libclang_rt.soft_static.a
16
17// Which can be overridden
18// CHECK: libclang_rt.hard_static.a
19
20// ARMv7m has no float either
21// CHECK: libclang_rt.soft_pic.a
22
Tim Northovera5877502013-12-13 16:05:12 +000023// But it can be enabled on ARMv7em
Tim Northover9c7e0352013-12-12 11:55:52 +000024// CHECK: libclang_rt.hard_pic.a
25
26// "softfp" must link against a soft-float library since that's what the
27// callers we're compiling will expect.
28// CHECK: libclang_rt.soft_pic.a
Tim Northovera5877502013-12-13 16:05:12 +000029
30// FIXME: test ARMv7a when we switch to -none-macho as the triple