summaryrefslogtreecommitdiff
path: root/test/Driver/mips-as.c
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2013-11-20 13:53:20 +0000
committerSimon Atanasyan <simon@atanasyan.com>2013-11-20 13:53:20 +0000
commit2deec9715bf7e8871b25aa88ef7b748d4ca25520 (patch)
tree10a0c644422e425793db131bcc01415c9f9e341b /test/Driver/mips-as.c
parent0c5efe57db9937919ae74c18a44d74be95a7b8aa (diff)
downloadclang-2deec9715bf7e8871b25aa88ef7b748d4ca25520.tar.gz
clang-2deec9715bf7e8871b25aa88ef7b748d4ca25520.tar.bz2
clang-2deec9715bf7e8871b25aa88ef7b748d4ca25520.tar.xz
[Mips] Take in account the -mfp64 command line option when build paths
to the crt*.o files, libraries and headers for the MIPS FSFS toolchain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/mips-as.c')
-rw-r--r--test/Driver/mips-as.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Driver/mips-as.c b/test/Driver/mips-as.c
index b861943eb5..55fa1ef927 100644
--- a/test/Driver/mips-as.c
+++ b/test/Driver/mips-as.c
@@ -126,3 +126,13 @@
// RUN: | FileCheck -check-prefix=MIPS-NAN-LEGACY %s
// MIPS-NAN-LEGACY: as{{(.exe)?}}"
// MIPS-NAN_LEGACY-NOT: "-mnan={{.*}}"
+//
+// RUN: %clang -target mips-linux-gnu -mfp64 -mfp32 -### \
+// RUN: -no-integrated-as -c %s 2>&1 \
+// RUN: | FileCheck -check-prefix=MIPS-MFP32 %s
+// MIPS-MFP32: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" "-mfp32"
+//
+// RUN: %clang -target mips-linux-gnu -mfp32 -mfp64 -### \
+// RUN: -no-integrated-as -c %s 2>&1 \
+// RUN: | FileCheck -check-prefix=MIPS-MFP64 %s
+// MIPS-MFP64: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" "-mfp64"