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 |
| 6 | // CHECK-ARM: as{{(.exe)?}}" |
| 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 |
| 11 | // CHECK-ARM-MCPU: as{{(.exe)?}}" "-mcpu=cortex-a8" |
| 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 |
| 16 | // CHECK-ARM-MFPU: as{{(.exe)?}}" "-mfpu=neon" |
| 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 |
| 21 | // CHECK-ARM-MARCH: as{{(.exe)?}}" "-march=armv7-a" |
| 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 |
| 26 | // CHECK-ARM-ALL: as{{(.exe)?}}" "-march=armv7-a" "-mcpu=cortex-a8" "-mfpu=neon" |
| 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 |
| 31 | // CHECK-ARM-TARGET: as{{(.exe)?}}" "-mfpu=neon" "-mcpu=cortex-a8" |