Simon Atanasyan | 286f3e6 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 1 | // Check that -EL/-EB options adjust the toolchain flags. |
| 2 | // |
Richard Trieu | fed07a2 | 2013-04-25 01:17:23 +0000 | [diff] [blame] | 3 | // RUN: %clang -no-canonical-prefixes -target mips-unknown-linux-gnu -### \ |
Simon Atanasyan | 286f3e6 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 4 | // RUN: -EL -no-integrated-as %s 2>&1 \ |
| 5 | // RUN: | FileCheck -check-prefix=MIPS32-EL %s |
| 6 | // MIPS32-EL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mipsel-unknown-linux-gnu" |
| 7 | // MIPS32-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EL" |
| 8 | // MIPS32-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32ltsmip" |
| 9 | // |
Richard Trieu | fed07a2 | 2013-04-25 01:17:23 +0000 | [diff] [blame] | 10 | // RUN: %clang -no-canonical-prefixes -target mips64-unknown-linux-gnu -### \ |
Simon Atanasyan | 286f3e6 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 11 | // RUN: -EL -no-integrated-as %s 2>&1 \ |
| 12 | // RUN: | FileCheck -check-prefix=MIPS64-EL %s |
| 13 | // MIPS64-EL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips64el-unknown-linux-gnu" |
| 14 | // MIPS64-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EL" |
| 15 | // MIPS64-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64ltsmip" |
| 16 | // |
Richard Trieu | fed07a2 | 2013-04-25 01:17:23 +0000 | [diff] [blame] | 17 | // RUN: %clang -no-canonical-prefixes -target mipsel-unknown-linux-gnu -### \ |
Simon Atanasyan | 286f3e6 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 18 | // RUN: -EB -no-integrated-as %s 2>&1 \ |
| 19 | // RUN: | FileCheck -check-prefix=MIPS32-EB %s |
| 20 | // MIPS32-EB: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips-unknown-linux-gnu" |
| 21 | // MIPS32-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" |
| 22 | // MIPS32-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32btsmip" |
| 23 | // |
Richard Trieu | fed07a2 | 2013-04-25 01:17:23 +0000 | [diff] [blame] | 24 | // RUN: %clang -no-canonical-prefixes -target mips64el-unknown-linux-gnu -### \ |
Simon Atanasyan | 286f3e6 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 25 | // RUN: -EB -no-integrated-as %s 2>&1 \ |
| 26 | // RUN: | FileCheck -check-prefix=MIPS64-EB %s |
| 27 | // MIPS64-EB: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips64-unknown-linux-gnu" |
| 28 | // MIPS64-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB" |
| 29 | // MIPS64-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64btsmip" |