summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/stackrealign.c
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-09-11 18:55:09 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-09-11 18:55:09 +0000
commitaecca041c96b2e5e13a0d77f09ee5aa294e8ba06 (patch)
tree993e9027889677cc59a4e9fd7bbb33a02a54dc58 /clang/test/CodeGen/stackrealign.c
parentbc497c93f5182757dc220b7bea5bd9801a47138b (diff)
downloadbcm5719-llvm-aecca041c96b2e5e13a0d77f09ee5aa294e8ba06.tar.gz
bcm5719-llvm-aecca041c96b2e5e13a0d77f09ee5aa294e8ba06.zip
Record function attribute "stackrealign" instead of using backend option
-force-align-stack. Also, make changes to the driver so that -mno-stack-realign is no longer an option exposed to the end-user that disallows stack realignment in the backend. Differential Revision: http://reviews.llvm.org/D11815 llvm-svn: 247451
Diffstat (limited to 'clang/test/CodeGen/stackrealign.c')
-rw-r--r--clang/test/CodeGen/stackrealign.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/stackrealign.c b/clang/test/CodeGen/stackrealign.c
new file mode 100644
index 00000000000..39b09397beb
--- /dev/null
+++ b/clang/test/CodeGen/stackrealign.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 %s -emit-llvm -o - -mstackrealign | FileCheck %s -check-prefix=REALIGN
+// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NO-REALIGN
+
+// REALIGN: attributes #{{[0-9]+}} = {{{.*}} "stackrealign"
+// NO-REALIGN-NOT: attributes #{{[0-9]+}} = {{{.*}} "stackrealign"
+
+void test1() {
+}
OpenPOWER on IntegriCloud