blob: fb3ead6cbbad4ddb5710cf76ec0acfd4e69243d9 [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
6// RUN: %clang -target x86_64-apple-darwin -arch armv7 -fPIC -mfloat-abi=hard -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
7// RUN: %clang -target x86_64-apple-darwin-eabi -arch armv7em -fPIC -mfloat-abi=softfp -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
8
9// ARMv6m has no float
10// CHECK: libclang_rt.soft_static.a
11
12// ARMv7em does, but defaults to soft
13// CHECK: libclang_rt.soft_static.a
14
15// Which can be overridden
16// CHECK: libclang_rt.hard_static.a
17
18// ARMv7m has no float either
19// CHECK: libclang_rt.soft_pic.a
20
21// But it can be enabled on ARMv7
22// CHECK: libclang_rt.hard_pic.a
23
24// "softfp" must link against a soft-float library since that's what the
25// callers we're compiling will expect.
26// CHECK: libclang_rt.soft_pic.a