blob: 6ea49be3c358afdd5172e922c0b4268199d47887 [file] [log] [blame]
Simon Atanasyan286f3e62013-03-28 11:36:22 +00001// Check that -EL/-EB options adjust the toolchain flags.
2//
Richard Trieufed07a22013-04-25 01:17:23 +00003// RUN: %clang -no-canonical-prefixes -target mips-unknown-linux-gnu -### \
Simon Atanasyan286f3e62013-03-28 11:36:22 +00004// 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 Trieufed07a22013-04-25 01:17:23 +000010// RUN: %clang -no-canonical-prefixes -target mips64-unknown-linux-gnu -### \
Simon Atanasyan286f3e62013-03-28 11:36:22 +000011// 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 Trieufed07a22013-04-25 01:17:23 +000017// RUN: %clang -no-canonical-prefixes -target mipsel-unknown-linux-gnu -### \
Simon Atanasyan286f3e62013-03-28 11:36:22 +000018// 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 Trieufed07a22013-04-25 01:17:23 +000024// RUN: %clang -no-canonical-prefixes -target mips64el-unknown-linux-gnu -### \
Simon Atanasyan286f3e62013-03-28 11:36:22 +000025// 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"