1 // Check that -EL/-EB options adjust the toolchain flags.
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"
9 // MIPS32-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32ltsmip"
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"
17 // MIPS64-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64ltsmip"
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"
25 // MIPS32-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32btsmip"
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"
33 // MIPS64-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64btsmip"