2012-10-27 01:10:17 +00:00
|
|
|
; 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
|
|
|
|
; rdar://12348580
|
|
|
|
|
2012-10-30 16:32:52 +00:00
|
|
|
define void @t1() noreturn minsize nounwind ssp {
|
2012-10-27 01:10:17 +00:00
|
|
|
entry:
|
2013-07-14 06:24:09 +00:00
|
|
|
; ARM-LABEL: t1:
|
2012-10-27 01:10:17 +00:00
|
|
|
; ARM: bl _bar
|
|
|
|
|
2013-07-14 06:24:09 +00:00
|
|
|
; SWIFT-LABEL: t1:
|
2012-10-27 01:10:17 +00:00
|
|
|
; SWIFT: bl _bar
|
|
|
|
tail call void @bar() noreturn nounwind
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
2012-10-30 16:32:52 +00:00
|
|
|
define void @t2() noreturn minsize nounwind ssp {
|
2012-10-27 01:10:17 +00:00
|
|
|
entry:
|
2013-07-14 06:24:09 +00:00
|
|
|
; ARM-LABEL: t2:
|
2012-10-27 01:10:17 +00:00
|
|
|
; ARM: bl _t1
|
|
|
|
|
2013-07-14 06:24:09 +00:00
|
|
|
; SWIFT-LABEL: t2:
|
2012-10-27 01:10:17 +00:00
|
|
|
; SWIFT: bl _t1
|
|
|
|
tail call void @t1() noreturn nounwind
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @bar() noreturn
|