Evgeniy Stepanov | e9b4d98 | 2012-04-10 09:05:40 +0000 | [diff] [blame] | 1 | // Check passing options to the assembler for ARM targets. |
| 2 | // |
| 3 | // RUN: %clang -target arm-linux -### \ |
| 4 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 5 | // RUN: | FileCheck -check-prefix=ARM %s |
Evgeniy Stepanov | 700c508 | 2012-04-20 09:03:40 +0000 | [diff] [blame] | 6 | // CHECK-ARM: as{{(.exe)?}}" "-mfloat-abi=soft" |
Evgeniy Stepanov | e9b4d98 | 2012-04-10 09:05:40 +0000 | [diff] [blame] | 7 | // |
| 8 | // RUN: %clang -target arm-linux -mcpu=cortex-a8 -### \ |
| 9 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 10 | // RUN: | FileCheck -check-prefix=ARM-MCPU %s |
Evgeniy Stepanov | 700c508 | 2012-04-20 09:03:40 +0000 | [diff] [blame] | 11 | // CHECK-ARM-MCPU: as{{(.exe)?}}" "-mfloat-abi=soft" "-mcpu=cortex-a8" |
Evgeniy Stepanov | e9b4d98 | 2012-04-10 09:05:40 +0000 | [diff] [blame] | 12 | // |
| 13 | // RUN: %clang -target arm-linux -mfpu=neon -### \ |
| 14 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 15 | // RUN: | FileCheck -check-prefix=ARM-MFPU %s |
Evgeniy Stepanov | 700c508 | 2012-04-20 09:03:40 +0000 | [diff] [blame] | 16 | // CHECK-ARM-MFPU: as{{(.exe)?}}" "-mfloat-abi=soft" "-mfpu=neon" |
Evgeniy Stepanov | e9b4d98 | 2012-04-10 09:05:40 +0000 | [diff] [blame] | 17 | // |
| 18 | // RUN: %clang -target arm-linux -march=armv7-a -### \ |
| 19 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 20 | // RUN: | FileCheck -check-prefix=ARM-MARCH %s |
Evgeniy Stepanov | 700c508 | 2012-04-20 09:03:40 +0000 | [diff] [blame] | 21 | // CHECK-ARM-MARCH: as{{(.exe)?}}" "-mfloat-abi=soft" "-march=armv7-a" |
Evgeniy Stepanov | e9b4d98 | 2012-04-10 09:05:40 +0000 | [diff] [blame] | 22 | // |
| 23 | // RUN: %clang -target arm-linux -mcpu=cortex-a8 -mfpu=neon -march=armv7-a -### \ |
| 24 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 25 | // RUN: | FileCheck -check-prefix=ARM-ALL %s |
Evgeniy Stepanov | 700c508 | 2012-04-20 09:03:40 +0000 | [diff] [blame] | 26 | // CHECK-ARM-ALL: as{{(.exe)?}}" "-mfloat-abi=soft" "-march=armv7-a" "-mcpu=cortex-a8" "-mfpu=neon" |
Evgeniy Stepanov | e9b4d98 | 2012-04-10 09:05:40 +0000 | [diff] [blame] | 27 | // |
| 28 | // RUN: %clang -target armv7-linux -mcpu=cortex-a8 -### \ |
| 29 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 30 | // RUN: | FileCheck -check-prefix=ARM-TARGET %s |
Evgeniy Stepanov | 700c508 | 2012-04-20 09:03:40 +0000 | [diff] [blame] | 31 | // CHECK-ARM-TARGET: as{{(.exe)?}}" "-mfpu=neon" "-mfloat-abi=soft" "-mcpu=cortex-a8" |
| 32 | // |
| 33 | // RUN: %clang -target arm-linux -mfloat-abi=hard -### \ |
| 34 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 35 | // RUN: | FileCheck -check-prefix=ARM-MFLOAT-ABI %s |
| 36 | // CHECK-ARM-MFLOAT-ABI: as{{(.exe)?}}" "-mfloat-abi=hard" |
| 37 | // |
| 38 | // RUN: %clang -target arm-linux-androideabi -### \ |
| 39 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 40 | // RUN: | FileCheck -check-prefix=ARM-ANDROID %s |
| 41 | // CHECK-ARM-ANDROID: as{{(.exe)?}}" "-mfloat-abi=soft" |
| 42 | // |
| 43 | // RUN: %clang -target arm-linux-androideabi -march=armv7-a -### \ |
| 44 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 45 | // RUN: | FileCheck -check-prefix=ARM-ANDROID-SOFTFP %s |
| 46 | // CHECK-ARM-ANDROID-SOFTFP: as{{(.exe)?}}" "-mfloat-abi=softfp" "-march=armv7-a" |
| 47 | // |
| 48 | // RUN: %clang -target arm-linux-eabi -mhard-float -### \ |
| 49 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 50 | // RUN: | FileCheck -check-prefix=ARM-HARDFP %s |
| 51 | // CHECK-ARM-HARDFP: as{{(.exe)?}}" "-mfloat-abi=hard" |
Evgeniy Stepanov | eca187e | 2012-04-24 09:05:31 +0000 | [diff] [blame] | 52 | // |
| 53 | // RUN: %clang -target ppc-linux -mcpu=invalid-cpu -### \ |
| 54 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 55 | // RUN: | FileCheck -check-prefix=PPC-NO-MCPU %s |
| 56 | // CHECK-PPC-NO-MCPU-NOT: as{{.*}} "-mcpu=invalid-cpu" |