1 // REQUIRES: arm-registered-target 2 // RUN: not %clang %s -target armv7-apple-ios -mfloat-abi=hard 2>&1 | FileCheck -check-prefix=ARMV7-ERROR %s 3 // RUN: %clang %s -target armv7-apple-ios -mfloat-abi=softfp -### 2>&1 | FileCheck -check-prefix=NOERROR %s 4 // RUN: %clang %s -arch armv7 -target thumbv7-apple-darwin-eabi -mfloat-abi=hard -### 2>&1 | FileCheck -check-prefix=NOERROR %s 5 6 // ARMV7-ERROR: unsupported option '-mfloat-abi=hard' for target 'thumbv7-apple-ios' 7 // NOERROR-NOT: unsupported option 8 9 // RUN: %clang -target armv7-linux-androideabi21 %s -### -c 2>&1 \ 10 // RUN: | FileCheck --check-prefix=CHECK-ARM7-ANDROID %s 11 // CHECK-ARM7-ANDROID-NOT: "-target-feature" "+soft-float" 12 // CHECK-ARM7-ANDROID: "-target-feature" "+soft-float-abi" 13 14 // RUN: %clang -target armv8-linux-androideabi21 %s -### -c 2>&1 \ 15 // RUN: | FileCheck --check-prefix=CHECK-ARM8-ANDROID %s 16 // CHECK-ARM8-ANDROID-NOT: "-target-feature" "+soft-float" 17 // CHECK-ARM8-ANDROID: "-target-feature" "+soft-float-abi" 18 19 // RUN: not %clang -target armv7-linux-androideabi21 %s -S -o - -mfloat-abi=hard 2>&1 \ 20 // RUN: | FileCheck --check-prefix=CHECK-ANDROID-ERROR %s 21 // CHECK-ANDROID-ERROR: unsupported option '-mfloat-abi=hard' for target 'armv7-unknown-linux-android21' 22 23 // RUN: %clang -target armv7-linux-androideabi21 %s -S -o - -mfloat-abi=soft -### 2>&1 \ 24 // RUN: | FileCheck --check-prefix=CHECK-ANDROID-NOERROR %s 25 // RUN: %clang -target armv7-linux-androideabi21 %s -S -o - -mfloat-abi=softfp -### 2>&1 \ 26 // RUN: | FileCheck --check-prefix=CHECK-ANDROID-NOERROR %s 27 // CHECK-ANDROID-NOERROR-NOT: unsupported option 28 29 // RUN: not %clang -target armv7-apple-watchos4 %s -S -o - -mfloat-abi=soft 2>&1 \ 30 // RUN: | FileCheck --check-prefix=CHECK-WATCHOS-ERROR1 %s 31 // CHECK-WATCHOS-ERROR1: unsupported option '-mfloat-abi=soft' for target 'thumbv7-apple-watchos4' 32 33 // RUN: not %clang -target armv7-apple-watchos4 %s -S -o - -mfloat-abi=softfp 2>&1 \ 34 // RUN: | FileCheck --check-prefix=CHECK-WATCHOS-ERROR2 %s 35 // CHECK-WATCHOS-ERROR2: unsupported option '-mfloat-abi=softfp' for target 'thumbv7-apple-watchos4' 36 37 // RUN: %clang -target armv7-apple-watchos4 %s -S -o - -mfloat-abi=hard -### 2>&1 \ 38 // RUN: | FileCheck --check-prefix=CHECK-WATCHOS-NOERROR %s 39 // CHECK-WATCHOS-NOERROR-NOT: unsupported option 40