blob: bb56e8b863363c9ffb8e98f3378b7cf8cec6a0e2 [file] [log] [blame]
Bob Wilsone8a549c2012-09-29 21:43:49 +00001; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=cortex-a8 | FileCheck %s -check-prefix=ARM
2; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=swift | FileCheck %s -check-prefix=SWIFT
Bob Wilsone8a549c2012-09-29 21:43:49 +00003; rdar://8979299
4
5define void @t1() noreturn nounwind ssp {
6entry:
Stephen Lind24ab202013-07-14 06:24:09 +00007; ARM-LABEL: t1:
Bob Wilsone8a549c2012-09-29 21:43:49 +00008; ARM: mov lr, pc
9; ARM: b _bar
10
Stephen Lind24ab202013-07-14 06:24:09 +000011; SWIFT-LABEL: t1:
Bob Wilsone8a549c2012-09-29 21:43:49 +000012; SWIFT: mov lr, pc
13; SWIFT: b _bar
Bob Wilsone8a549c2012-09-29 21:43:49 +000014 tail call void @bar() noreturn nounwind
15 unreachable
16}
17
18define void @t2() noreturn nounwind ssp {
19entry:
Stephen Lind24ab202013-07-14 06:24:09 +000020; ARM-LABEL: t2:
Bob Wilsone8a549c2012-09-29 21:43:49 +000021; ARM: mov lr, pc
22; ARM: b _t1
23
Stephen Lind24ab202013-07-14 06:24:09 +000024; SWIFT-LABEL: t2:
Bob Wilsone8a549c2012-09-29 21:43:49 +000025; SWIFT: mov lr, pc
26; SWIFT: b _t1
Bob Wilsone8a549c2012-09-29 21:43:49 +000027 tail call void @t1() noreturn nounwind
28 unreachable
29}
30
31declare void @bar() noreturn