summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-01-25 16:03:59 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-01-25 16:03:59 +0000
commit264b29883f141da1fa2a345ce600a295c750802e (patch)
tree28fb6d1f37aa0e73a53761934d60e58675e5d443
parent2bb8caceadaaf40d62d3b244554193ad789aa599 (diff)
downloadbcm5719-llvm-264b29883f141da1fa2a345ce600a295c750802e.tar.gz
bcm5719-llvm-264b29883f141da1fa2a345ce600a295c750802e.zip
[Mips] Add test to check translation MIPS triples to cpu and float abi
options. llvm-svn: 200080
-rw-r--r--clang/test/Driver/clang-translation.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/clang/test/Driver/clang-translation.c b/clang/test/Driver/clang-translation.c
index 98a81f8dcf7..9f73bc8aa5f 100644
--- a/clang/test/Driver/clang-translation.c
+++ b/clang/test/Driver/clang-translation.c
@@ -217,3 +217,38 @@
// RUN: | FileCheck --check-prefix=ANDROID-X86_64 %s
// ANDROID-X86_64: clang
// ANDROID-X86_64: "-target-cpu" "core2"
+
+// RUN: %clang -target mips-linux-gnu -### -S %s 2>&1 | \
+// RUN: FileCheck -check-prefix=MIPS %s
+// MIPS: clang
+// MIPS: "-cc1"
+// MIPS: "-target-cpu" "mips32"
+// MIPS: "-mfloat-abi" "hard"
+
+// RUN: %clang -target mipsel-linux-gnu -### -S %s 2>&1 | \
+// RUN: FileCheck -check-prefix=MIPSEL %s
+// MIPSEL: clang
+// MIPSEL: "-cc1"
+// MIPSEL: "-target-cpu" "mips32"
+// MIPSEL: "-mfloat-abi" "hard"
+
+// RUN: %clang -target mipsel-linux-android -### -S %s 2>&1 | \
+// RUN: FileCheck -check-prefix=MIPSEL-ANDROID %s
+// MIPSEL-ANDROID: clang
+// MIPSEL-ANDROID: "-cc1"
+// MIPSEL-ANDROID: "-target-cpu" "mips32"
+// MIPSEL-ANDROID: "-mfloat-abi" "hard"
+
+// RUN: %clang -target mips64-linux-gnu -### -S %s 2>&1 | \
+// RUN: FileCheck -check-prefix=MIPS64 %s
+// MIPS64: clang
+// MIPS64: "-cc1"
+// MIPS64: "-target-cpu" "mips64"
+// MIPS64: "-mfloat-abi" "hard"
+
+// RUN: %clang -target mips64el-linux-gnu -### -S %s 2>&1 | \
+// RUN: FileCheck -check-prefix=MIPS64EL %s
+// MIPS64EL: clang
+// MIPS64EL: "-cc1"
+// MIPS64EL: "-target-cpu" "mips64"
+// MIPS64EL: "-mfloat-abi" "hard"
OpenPOWER on IntegriCloud