summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/call-noret-minsize.ll
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2012-10-30 16:32:52 +0000
committerQuentin Colombet <qcolombet@apple.com>2012-10-30 16:32:52 +0000
commit9a419f656e278b96e9dfe739cd63c7bff9a4e1fd (patch)
tree1a0b0791da616cf4941091deb4d7e941fe162b7e /test/CodeGen/ARM/call-noret-minsize.ll
parent446cf94cdbbc1f8e22452fc46664ac73d810c6a2 (diff)
downloadllvm-9a419f656e278b96e9dfe739cd63c7bff9a4e1fd.tar.gz
llvm-9a419f656e278b96e9dfe739cd63c7bff9a4e1fd.tar.bz2
llvm-9a419f656e278b96e9dfe739cd63c7bff9a4e1fd.tar.xz
Change ForceSizeOpt attribute into MinSize attribute
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/call-noret-minsize.ll')
-rw-r--r--test/CodeGen/ARM/call-noret-minsize.ll34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/call-noret-minsize.ll b/test/CodeGen/ARM/call-noret-minsize.ll
new file mode 100644
index 0000000000..35490ac69b
--- /dev/null
+++ b/test/CodeGen/ARM/call-noret-minsize.ll
@@ -0,0 +1,34 @@
+; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=cortex-a8 | FileCheck %s -check-prefix=ARM
+; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=swift | FileCheck %s -check-prefix=SWIFT
+; RUN: llc < %s -mtriple=thumbv7-apple-ios -mcpu=cortex-a8 | FileCheck %s -check-prefix=T2
+; rdar://12348580
+
+define void @t1() noreturn minsize nounwind ssp {
+entry:
+; ARM: t1:
+; ARM: bl _bar
+
+; SWIFT: t1:
+; SWIFT: bl _bar
+
+; T2: t1:
+; T2: blx _bar
+ tail call void @bar() noreturn nounwind
+ unreachable
+}
+
+define void @t2() noreturn minsize nounwind ssp {
+entry:
+; ARM: t2:
+; ARM: bl _t1
+
+; SWIFT: t2:
+; SWIFT: bl _t1
+
+; T2: t2:
+; T2: bl _t1
+ tail call void @t1() noreturn nounwind
+ unreachable
+}
+
+declare void @bar() noreturn