blob: 8afe44f51c9ace87fe103cbd34286e8c36f574d9 [file] [log] [blame]
Simon Atanasyan66ceaa42013-03-28 11:36:22 +00001// REQUIRES: mips-registered-target
2//
3// Check that -EL/-EB options adjust the toolchain flags.
4//
5// RUN: %clang -target mips-unknown-linux-gnu -### \
6// RUN: -EL -no-integrated-as %s 2>&1 \
7// RUN: | FileCheck -check-prefix=MIPS32-EL %s
8// MIPS32-EL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mipsel-unknown-linux-gnu"
9// MIPS32-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EL"
10// MIPS32-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32ltsmip"
11//
12// RUN: %clang -target mips64-unknown-linux-gnu -### \
13// RUN: -EL -no-integrated-as %s 2>&1 \
14// RUN: | FileCheck -check-prefix=MIPS64-EL %s
15// MIPS64-EL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips64el-unknown-linux-gnu"
16// MIPS64-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-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: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips-unknown-linux-gnu"
23// MIPS32-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
24// MIPS32-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32btsmip"
25//
26// RUN: %clang -target mips64el-unknown-linux-gnu -### \
27// RUN: -EB -no-integrated-as %s 2>&1 \
28// RUN: | FileCheck -check-prefix=MIPS64-EB %s
29// MIPS64-EB: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips64-unknown-linux-gnu"
30// MIPS64-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB"
31// MIPS64-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64btsmip"