| 1 |
// Check that -EL/-EB options adjust the toolchain flags. |
| 2 |
// |
| 3 |
// RUN: %clang --target=mips-unknown-linux-gnu -### \ |
| 4 |
// RUN: -EL -no-integrated-as %s 2>&1 \ |
| 5 |
// RUN: | FileCheck -check-prefix=MIPS32-EL %s |
| 6 |
// MIPS32-EL: "-cc1" "-triple" "mipsel-unknown-linux-gnu" |
| 7 |
// MIPS32-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" |
| 8 |
// MIPS32-EL: "-EL" |
| 9 |
// MIPS32-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32ltsmip" |
| 10 |
// |
| 11 |
// RUN: %clang --target=mips64-unknown-linux-gnu -### \ |
| 12 |
// RUN: -EL -no-integrated-as %s 2>&1 \ |
| 13 |
// RUN: | FileCheck -check-prefix=MIPS64-EL %s |
| 14 |
// MIPS64-EL: "-cc1" "-triple" "mips64el-unknown-linux-gnu" |
| 15 |
// MIPS64-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" |
| 16 |
// MIPS64-EL: "-EL" |
| 17 |
// MIPS64-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64ltsmip" |
| 18 |
// |
| 19 |
// RUN: %clang --target=mipsel-unknown-linux-gnu -### \ |
| 20 |
// RUN: -EB -no-integrated-as %s 2>&1 \ |
| 21 |
// RUN: | FileCheck -check-prefix=MIPS32-EB %s |
| 22 |
// MIPS32-EB: "-cc1" "-triple" "mips-unknown-linux-gnu" |
| 23 |
// MIPS32-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" |
| 24 |
// MIPS32-EB: "-EB" |
| 25 |
// MIPS32-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32btsmip" |
| 26 |
// |
| 27 |
// RUN: %clang --target=mips64el-unknown-linux-gnu -### \ |
| 28 |
// RUN: -EB -no-integrated-as %s 2>&1 \ |
| 29 |
// RUN: | FileCheck -check-prefix=MIPS64-EB %s |
| 30 |
// MIPS64-EB: "-cc1" "-triple" "mips64-unknown-linux-gnu" |
| 31 |
// MIPS64-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" |
| 32 |
// MIPS64-EB: "-EB" |
| 33 |
// MIPS64-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64btsmip" |