summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/segmented-stacks-dynamic.ll
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-04-10 22:58:43 +0000
committerReid Kleckner <reid@kleckner.net>2014-04-10 22:58:43 +0000
commitbc1fd917f09c1ef295231d88a80874689de2ff7f (patch)
tree317a9a78cf64b575b18adf75f5ffb4e2295cbfc1 /test/CodeGen/ARM/segmented-stacks-dynamic.ll
parentee66766568d834217fdb08e73e7f1b423b035b0f (diff)
Move the segmented stack switch to a function attribute
This removes the -segmented-stacks command line flag in favor of a per-function "split-stack" attribute. Patch by Luqman Aden and Alex Crichton! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/segmented-stacks-dynamic.ll')
-rw-r--r--test/CodeGen/ARM/segmented-stacks-dynamic.ll12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/CodeGen/ARM/segmented-stacks-dynamic.ll b/test/CodeGen/ARM/segmented-stacks-dynamic.ll
index 13b5bcf2adb..77c62de0cfd 100644
--- a/test/CodeGen/ARM/segmented-stacks-dynamic.ll
+++ b/test/CodeGen/ARM/segmented-stacks-dynamic.ll
@@ -1,12 +1,12 @@
-; RUN: llc < %s -mtriple=arm-linux-androideabi -segmented-stacks -verify-machineinstrs | FileCheck %s -check-prefix=ARM-android
-; RUN: llc < %s -mtriple=arm-linux-unknown-gnueabi -segmented-stacks -verify-machineinstrs | FileCheck %s -check-prefix=ARM-linux
-; RUN: llc < %s -mtriple=arm-linux-androideabi -segmented-stacks -filetype=obj
-; RUN: llc < %s -mtriple=arm-linux-unknown-gnueabi -segmented-stacks -filetype=obj
+; RUN: llc < %s -mtriple=arm-linux-androideabi -verify-machineinstrs | FileCheck %s -check-prefix=ARM-android
+; RUN: llc < %s -mtriple=arm-linux-unknown-gnueabi -verify-machineinstrs | FileCheck %s -check-prefix=ARM-linux
+; RUN: llc < %s -mtriple=arm-linux-androideabi -filetype=obj
+; RUN: llc < %s -mtriple=arm-linux-unknown-gnueabi -filetype=obj
; Just to prevent the alloca from being optimized away
declare void @dummy_use(i32*, i32)
-define i32 @test_basic(i32 %l) {
+define i32 @test_basic(i32 %l) #0 {
%mem = alloca i32, i32 %l
call void @dummy_use (i32* %mem, i32 %l)
%terminate = icmp eq i32 %l, 0
@@ -60,3 +60,5 @@ false:
; ARM-android: pop {r4, r5}
}
+
+attributes #0 = { "split-stack" }