blob: 5f545d535f25a91bbd21f4b92cd1db806c8eab3c [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
Tim Northover157d9112014-01-16 08:48:16 +00008// RUN: %clang -target x86_64-apple-none-macho -arch armv7 -mhard-float -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
9// RUN: %clang -target x86_64-apple-none-macho -arch armv7 -msoft-float -fPIC -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
10
Tim Northovera5877502013-12-13 16:05:12 +000011
12// RUN: FileCheck %s < %t
Tim Northover9c7e0352013-12-12 11:55:52 +000013
14// ARMv6m has no float
15// CHECK: libclang_rt.soft_static.a
16
17// ARMv7em does, but defaults to soft
18// CHECK: libclang_rt.soft_static.a
19
20// Which can be overridden
21// CHECK: libclang_rt.hard_static.a
22
23// ARMv7m has no float either
24// CHECK: libclang_rt.soft_pic.a
25
Tim Northovera5877502013-12-13 16:05:12 +000026// But it can be enabled on ARMv7em
Tim Northover9c7e0352013-12-12 11:55:52 +000027// CHECK: libclang_rt.hard_pic.a
28
29// "softfp" must link against a soft-float library since that's what the
30// callers we're compiling will expect.
31// CHECK: libclang_rt.soft_pic.a
Tim Northovera5877502013-12-13 16:05:12 +000032
Tim Northover157d9112014-01-16 08:48:16 +000033// -arch "armv7" (== embedded v7a) can be used in a couple of variants:
34// CHECK: libclang_rt.hard_static.a
35// CHECK: libclang_rt.soft_pic.a