summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/call-noret-minsize.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-11-10 02:09:05 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-11-10 02:09:05 +0000
commitb341fac05a890272024dcc5c7e47d10b22d62b92 (patch)
treed5c87bfab8a43761673a9b96e2735c86bfde68c7 /test/CodeGen/ARM/call-noret-minsize.ll
parent9c7ae01f390b3d7c0fab562e69aba253d28a6dfb (diff)
downloadllvm-b341fac05a890272024dcc5c7e47d10b22d62b92.tar.gz
llvm-b341fac05a890272024dcc5c7e47d10b22d62b92.tar.bz2
llvm-b341fac05a890272024dcc5c7e47d10b22d62b92.tar.xz
Disable the Thumb no-return call optimization:
mov lr, pc b.w _foo The "mov" instruction doesn't set bit zero to one, it's putting incorrect value in lr. It messes up backtraces. rdar://12663632 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/call-noret-minsize.ll')
-rw-r--r--test/CodeGen/ARM/call-noret-minsize.ll7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/CodeGen/ARM/call-noret-minsize.ll b/test/CodeGen/ARM/call-noret-minsize.ll
index 35490ac69b..df3c19eca6 100644
--- a/test/CodeGen/ARM/call-noret-minsize.ll
+++ b/test/CodeGen/ARM/call-noret-minsize.ll
@@ -1,6 +1,5 @@
; 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 {
@@ -10,9 +9,6 @@ entry:
; SWIFT: t1:
; SWIFT: bl _bar
-
-; T2: t1:
-; T2: blx _bar
tail call void @bar() noreturn nounwind
unreachable
}
@@ -24,9 +20,6 @@ entry:
; SWIFT: t2:
; SWIFT: bl _t1
-
-; T2: t2:
-; T2: bl _t1
tail call void @t1() noreturn nounwind
unreachable
}