Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 1 | // Check that -EL/-EB options adjust the toolchain flags. |
| 2 | // |
Richard Trieu | c769963 | 2013-04-25 01:17:23 +0000 | [diff] [blame] | 3 | // RUN: %clang -no-canonical-prefixes -target mips-unknown-linux-gnu -### \ |
Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 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" |
Daniel Sanders | 379d44b | 2014-07-16 11:52:23 +0000 | [diff] [blame] | 7 | // MIPS32-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" |
| 8 | // MIPS32-EL: "-EL" |
Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 9 | // MIPS32-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32ltsmip" |
| 10 | // |
Richard Trieu | c769963 | 2013-04-25 01:17:23 +0000 | [diff] [blame] | 11 | // RUN: %clang -no-canonical-prefixes -target mips64-unknown-linux-gnu -### \ |
Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 12 | // RUN: -EL -no-integrated-as %s 2>&1 \ |
| 13 | // RUN: | FileCheck -check-prefix=MIPS64-EL %s |
| 14 | // MIPS64-EL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips64el-unknown-linux-gnu" |
Daniel Sanders | 379d44b | 2014-07-16 11:52:23 +0000 | [diff] [blame] | 15 | // MIPS64-EL: "{{.*}}as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" |
| 16 | // MIPS64-EL: "-EL" |
Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 17 | // MIPS64-EL: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64ltsmip" |
| 18 | // |
Richard Trieu | c769963 | 2013-04-25 01:17:23 +0000 | [diff] [blame] | 19 | // RUN: %clang -no-canonical-prefixes -target mipsel-unknown-linux-gnu -### \ |
Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 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" |
Daniel Sanders | 379d44b | 2014-07-16 11:52:23 +0000 | [diff] [blame] | 23 | // MIPS32-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" |
| 24 | // MIPS32-EB: "-EB" |
Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 25 | // MIPS32-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf32btsmip" |
| 26 | // |
Richard Trieu | c769963 | 2013-04-25 01:17:23 +0000 | [diff] [blame] | 27 | // RUN: %clang -no-canonical-prefixes -target mips64el-unknown-linux-gnu -### \ |
Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 28 | // RUN: -EB -no-integrated-as %s 2>&1 \ |
| 29 | // RUN: | FileCheck -check-prefix=MIPS64-EB %s |
| 30 | // MIPS64-EB: "{{.*}}clang{{.*}}" "-cc1" "-triple" "mips64-unknown-linux-gnu" |
Daniel Sanders | 379d44b | 2014-07-16 11:52:23 +0000 | [diff] [blame] | 31 | // MIPS64-EB: "{{.*}}as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" |
| 32 | // MIPS64-EB: "-EB" |
Simon Atanasyan | 66ceaa4 | 2013-03-28 11:36:22 +0000 | [diff] [blame] | 33 | // MIPS64-EB: "{{.*}}ld{{(.exe)?}}" {{.*}} "-m" "elf64btsmip" |