2013-03-28 19:36:22 +08:00
|
|
|
// Check that -EL/-EB options adjust the toolchain flags.
|
|
|
|
//
|
2013-04-25 09:17:23 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes -target mips-unknown-linux-gnu -### \
|
2013-03-28 19:36:22 +08:00
|
|
|
// RUN: -EL -no-integrated-as %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32-EL %s
|
|
|
|
// MIPS32-EL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mipsel-unknown-linux-gnu"
|
2014-07-16 19:52:23 +08:00
|
|
|
// MIPS32-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32"
|
|
|
|
// MIPS32-EL: "-EL"
|
2013-03-28 19:36:22 +08:00
|
|
|
// MIPS32-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32ltsmip"
|
|
|
|
//
|
2013-04-25 09:17:23 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes -target mips64-unknown-linux-gnu -### \
|
2013-03-28 19:36:22 +08:00
|
|
|
// RUN: -EL -no-integrated-as %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64-EL %s
|
|
|
|
// MIPS64-EL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips64el-unknown-linux-gnu"
|
2014-07-16 19:52:23 +08:00
|
|
|
// MIPS64-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64"
|
|
|
|
// MIPS64-EL: "-EL"
|
2013-03-28 19:36:22 +08:00
|
|
|
// MIPS64-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64ltsmip"
|
|
|
|
//
|
2013-04-25 09:17:23 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes -target mipsel-unknown-linux-gnu -### \
|
2013-03-28 19:36:22 +08:00
|
|
|
// RUN: -EB -no-integrated-as %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32-EB %s
|
|
|
|
// MIPS32-EB: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips-unknown-linux-gnu"
|
2014-07-16 19:52:23 +08:00
|
|
|
// MIPS32-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32"
|
|
|
|
// MIPS32-EB: "-EB"
|
2013-03-28 19:36:22 +08:00
|
|
|
// MIPS32-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32btsmip"
|
|
|
|
//
|
2013-04-25 09:17:23 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes -target mips64el-unknown-linux-gnu -### \
|
2013-03-28 19:36:22 +08:00
|
|
|
// RUN: -EB -no-integrated-as %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64-EB %s
|
|
|
|
// MIPS64-EB: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips64-unknown-linux-gnu"
|
2014-07-16 19:52:23 +08:00
|
|
|
// MIPS64-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64"
|
|
|
|
// MIPS64-EB: "-EB"
|
2013-03-28 19:36:22 +08:00
|
|
|
// MIPS64-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64btsmip"
|