summaryrefslogtreecommitdiffstats
path: root/test/Driver/arm-float-abi.c
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-08-24 19:50:35 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-08-24 19:50:35 +0000
commite35de8288ea2f88f9ae1027f7d3449d38dacd45e (patch)
tree9c61e952b180ebe0b50edeaee36c23fa6286ca10 /test/Driver/arm-float-abi.c
parent95da9031c479aae9670d50c57674807b44b8c85e (diff)
[ARM] Error out on apple darwin platforms if float-abi is "hard".
Error out if the user tries to use float-abi="hard" since it isn't supported on darwin platforms. Previously clang issued no warnings or erros and just passed the option to the backend, which had no effect on code generation for targets using apcs. rdar://problem/22257950 Differential Revision: http://reviews.llvm.org/D12155 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/arm-float-abi.c')
-rw-r--r--test/Driver/arm-float-abi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/arm-float-abi.c b/test/Driver/arm-float-abi.c
new file mode 100644
index 0000000000..5b8130bb10
--- /dev/null
+++ b/test/Driver/arm-float-abi.c
@@ -0,0 +1,5 @@
+// RUN: not %clang %s -target armv7-apple-ios -mfloat-abi=hard 2>&1 | FileCheck -check-prefix=ARMV7-HARD %s
+// RUN: %clang %s -target armv7-apple-ios -mfloat-abi=softfp -### 2>&1 | FileCheck -check-prefix=ARMV7-SOFTFP %s
+
+// ARMV7-HARD: unsupported option '-mfloat-abi=hard' for target 'thumbv7'
+// ARMV7-SOFTFP-NOT: unsupported option