1 // Check that -EL/-EB options adjust the toolchain flags. 2 // 3 // RUN: %clang -no-canonical-prefixes -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: "{{.*}}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 // 10 // RUN: %clang -no-canonical-prefixes -target mips64-unknown-linux-gnu -### \ 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 // 17 // RUN: %clang -no-canonical-prefixes -target mipsel-unknown-linux-gnu -### \ 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 // 24 // RUN: %clang -no-canonical-prefixes -target mips64el-unknown-linux-gnu -### \ 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" 30