summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
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
commit580efb24757f6393ff5cb069f13ea79800f306c4 (patch)
tree07a3b8f414927a1df266b6b833c124df6cc99059 /clang/test/CodeGen
parente79b62d923b44117559f3b375499a7852bd96d63 (diff)
downloadbcm5719-llvm-580efb24757f6393ff5cb069f13ea79800f306c4.tar.gz
bcm5719-llvm-580efb24757f6393ff5cb069f13ea79800f306c4.zip
[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 llvm-svn: 242368
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/arm-no-movt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm-no-movt.c b/clang/test/CodeGen/arm-no-movt.c
new file mode 100644
index 00000000000..0773941fb38
--- /dev/null
+++ b/clang/test/CodeGen/arm-no-movt.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple thumbv7-apple-ios5 -target-feature +no-movt -emit-llvm -o - %s | FileCheck -check-prefix=NO-MOVT %s
+// RUN: %clang_cc1 -triple thumbv7-apple-ios5 -emit-llvm -o - %s | FileCheck -check-prefix=MOVT %s
+
+// NO-MOVT: attributes #0 = { {{.*}} "target-features"="+no-movt"
+// MOVT-NOT: attributes #0 = { {{.*}} "target-features"="+no-movt"
+
+int foo1(int a) { return a; }
OpenPOWER on IntegriCloud