blob: cde157d8b4d4bd80842a8002cec8e325e1fab2a2 [file] [log] [blame]
Tim Northoverfc1a75b2013-10-03 14:23:28 +00001// RUN: %clang -arch armv7 -target thumbv7-apple-darwin-eabi -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-AAPCS
Stephen Hines6bcf27b2014-05-29 04:14:42 -07002// RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7m -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-AAPCS
Tim Northoverc11b3892013-10-03 14:29:54 +00003// RUN: %clang -arch armv7s -target thumbv7-apple-ios -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-APCS
Tim Northoverfc1a75b2013-10-03 14:23:28 +00004// RUN: %clang -arch armv7s -target thumbv7-apple-darwin -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-APCS
Stephen Hines651f13c2014-04-23 16:59:28 -07005// RUN: %clang -arch armv6m -target thumbv7-apple-darwin -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-MACHO-EMBEDDED
6// RUN: %clang -arch armv7m -target thumbv7-apple-darwin -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-MACHO-EMBEDDED
7// RUN: %clang -arch armv7em -target thumbv7-apple-darwin -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-MACHO-EMBEDDED
Tim Northover66b5dac2013-10-24 10:48:50 +00008
Tim Northover66b5dac2013-10-24 10:48:50 +00009// CHECK-IOS: "-triple" "thumbv7" "thumbv7-apple-ios
Tim Northoverfc1a75b2013-10-03 14:23:28 +000010
11// CHECK-AAPCS: "-target-abi" "aapcs"
12// CHECK-APCS: "-target-abi" "apcs-gnu"
Stephen Hines651f13c2014-04-23 16:59:28 -070013
14// CHECK-MACHO-EMBEDDED: "-triple" "{{thumbv[67]e?m}}-apple-unknown-macho"
15// CHECK-MACHO-EMBEDDED: "-mrelocation-model" "pic"