aboutsummaryrefslogtreecommitdiff
path: root/test/Driver
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2019-10-09 10:38:03 +0000
committerSimon Atanasyan <simon@atanasyan.com>2019-10-09 10:38:03 +0000
commit45184f85287430e47ca8325f29c14aa93301c4ca (patch)
treedb9b0664e7887619715cbb99a00e29116136819c /test/Driver
parent7857983ddb111a05b5979766a858babe4efa3ee2 (diff)
[mips] Set default float ABI to "soft" on FreeBSD
Initial patch by Kyle Evans. Fix PR43596 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver')
-rw-r--r--test/Driver/mips-float.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Driver/mips-float.c b/test/Driver/mips-float.c
index 1621075672..2f1b813a15 100644
--- a/test/Driver/mips-float.c
+++ b/test/Driver/mips-float.c
@@ -7,6 +7,14 @@
// RUN: | FileCheck --check-prefix=CHECK-DEF %s
// CHECK-DEF: "-mfloat-abi" "hard"
//
+// Default on FreeBSD
+// RUN: %clang -c %s -### -o %t.o 2>&1 \
+// RUN: -target mips-freebsd12 \
+// RUN: | FileCheck --check-prefix=DEF-FREEBSD %s
+// DEF-FREEBSD: "-target-feature" "+soft-float"
+// DEF-FREEBSD: "-msoft-float"
+// DEF-FREEBSD: "-mfloat-abi" "soft"
+//
// -mhard-float
// RUN: %clang -c %s -### -o %t.o 2>&1 \
// RUN: -target mips-linux-gnu -mhard-float \