xref: /llvm-project/llvm/test/CodeGen/ARM/call-noret-minsize.ll (revision d24ab20e9b11d2076d8b9d5cd96f41a6b9c399fb)
15799e9f6SQuentin Colombet; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=cortex-a8   | FileCheck %s -check-prefix=ARM
25799e9f6SQuentin Colombet; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=swift       | FileCheck %s -check-prefix=SWIFT
35799e9f6SQuentin Colombet; rdar://12348580
45799e9f6SQuentin Colombet
55799e9f6SQuentin Colombetdefine void @t1() noreturn minsize nounwind ssp {
65799e9f6SQuentin Colombetentry:
7*d24ab20eSStephen Lin; ARM-LABEL: t1:
85799e9f6SQuentin Colombet; ARM: bl _bar
95799e9f6SQuentin Colombet
10*d24ab20eSStephen Lin; SWIFT-LABEL: t1:
115799e9f6SQuentin Colombet; SWIFT: bl _bar
125799e9f6SQuentin Colombet  tail call void @bar() noreturn nounwind
135799e9f6SQuentin Colombet  unreachable
145799e9f6SQuentin Colombet}
155799e9f6SQuentin Colombet
165799e9f6SQuentin Colombetdefine void @t2() noreturn minsize nounwind ssp {
175799e9f6SQuentin Colombetentry:
18*d24ab20eSStephen Lin; ARM-LABEL: t2:
195799e9f6SQuentin Colombet; ARM: bl _t1
205799e9f6SQuentin Colombet
21*d24ab20eSStephen Lin; SWIFT-LABEL: t2:
225799e9f6SQuentin Colombet; SWIFT: bl _t1
235799e9f6SQuentin Colombet  tail call void @t1() noreturn nounwind
245799e9f6SQuentin Colombet  unreachable
255799e9f6SQuentin Colombet}
265799e9f6SQuentin Colombet
275799e9f6SQuentin Colombetdeclare void @bar() noreturn
28