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