summaryrefslogtreecommitdiff
path: root/test/Driver/arm-no-movt.c
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-07-16 00:43:00 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-07-16 00:43:00 +0000
commitcd0f3da09c8b80e354b6bcb86529d560b4fbb955 (patch)
treeacb733c3b51b3b0bc29c8d058b701c03c7c03cbb /test/Driver/arm-no-movt.c
parent8b3a64dc0ac3143e9b6db0c7f1a5c6aa6035e4dd (diff)
downloadclang-cd0f3da09c8b80e354b6bcb86529d560b4fbb955.tar.gz
[ARM] Pass subtarget feature "+no-movt" instead of passing backend option
"-arm-use-movt=0". This change is needed since backend options do not make it to the backend when doing LTO and are not capable of changing the behavior of code-gen passes on a per-function basis. rdar://problem/21529937 Differential Revision: http://reviews.llvm.org/D11025 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/arm-no-movt.c')
-rw-r--r--test/Driver/arm-no-movt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/arm-no-movt.c b/test/Driver/arm-no-movt.c
new file mode 100644
index 0000000000..9684d0e16c
--- /dev/null
+++ b/test/Driver/arm-no-movt.c
@@ -0,0 +1,9 @@
+// RUN: %clang -target armv7-apple-darwin -### %s 2>&1 \
+// RUN: | FileCheck %s -check-prefix CHECK-DEFAULT
+
+// RUN: %clang -target armv7-apple-darwin -mkernel -### %s 2>&1 \
+// RUN: | FileCheck %s -check-prefix CHECK-KERNEL
+
+// CHECK-DEFAULT-NOT: "-target-feature" "+no-movt"
+
+// CHECK-KERNEL: "-target-feature" "+no-movt"