Simon Atanasyan | 5f0a1c1 | 2012-04-06 19:15:24 +0000 | [diff] [blame] | 1 | // Check passing options to the assembler for MIPS targets. |
| 2 | // |
| 3 | // RUN: %clang -target mips-linux-gnu -### \ |
| 4 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 5 | // RUN: | FileCheck -check-prefix=MIPS32-EB-AS %s |
Simon Atanasyan | 073a780 | 2012-04-07 22:31:29 +0000 | [diff] [blame] | 6 | // CHECK-MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" |
Simon Atanasyan | 1f0646e | 2012-05-29 19:07:33 +0000 | [diff] [blame] | 7 | // CHECK-MIPS32-EB-AS-NOT: "-KPIC" |
| 8 | // |
| 9 | // RUN: %clang -target mips-linux-gnu -### \ |
| 10 | // RUN: -no-integrated-as -fPIC -c %s 2>&1 \ |
| 11 | // RUN: | FileCheck -check-prefix=MIPS32-EB-PIC %s |
| 12 | // CHECK-MIPS32-EB-PIC: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" |
| 13 | // CHECK-MIPS32-EB-PIC: "-KPIC" |
Simon Atanasyan | 5f0a1c1 | 2012-04-06 19:15:24 +0000 | [diff] [blame] | 14 | // |
| 15 | // RUN: %clang -target mipsel-linux-gnu -### \ |
| 16 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 17 | // RUN: | FileCheck -check-prefix=MIPS32-EL-AS %s |
Simon Atanasyan | 073a780 | 2012-04-07 22:31:29 +0000 | [diff] [blame] | 18 | // CHECK-MIPS32-EL-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EL" |
Simon Atanasyan | 5f0a1c1 | 2012-04-06 19:15:24 +0000 | [diff] [blame] | 19 | // |
| 20 | // RUN: %clang -target mips64-linux-gnu -### \ |
| 21 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 22 | // RUN: | FileCheck -check-prefix=MIPS64-EB-AS %s |
Simon Atanasyan | 073a780 | 2012-04-07 22:31:29 +0000 | [diff] [blame] | 23 | // CHECK-MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB" |
Simon Atanasyan | 5f0a1c1 | 2012-04-06 19:15:24 +0000 | [diff] [blame] | 24 | // |
| 25 | // RUN: %clang -target mips64el-linux-gnu -### \ |
| 26 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 27 | // RUN: | FileCheck -check-prefix=MIPS64-EL-AS %s |
Simon Atanasyan | 073a780 | 2012-04-07 22:31:29 +0000 | [diff] [blame] | 28 | // CHECK-MIPS64-EL-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EL" |
| 29 | // |
| 30 | // RUN: %clang -target mips-linux-gnu -mabi=eabi -### \ |
| 31 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 32 | // RUN: | FileCheck -check-prefix=MIPS-EABI %s |
| 33 | // CHECK-MIPS-EABI: as{{(.exe)?}}" "-march" "mips32" "-mabi" "eabi" "-EB" |
| 34 | // |
| 35 | // RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \ |
| 36 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 37 | // RUN: | FileCheck -check-prefix=MIPS-N32 %s |
| 38 | // CHECK-MIPS-N32: as{{(.exe)?}}" "-march" "mips64" "-mabi" "n32" "-EB" |