source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/call-noret.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 656 bytes
Line 
1; 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
3; rdar://8979299
4
5define void @t1() noreturn nounwind ssp {
6entry:
7; ARM-LABEL: t1:
8; ARM: mov lr, pc
9; ARM: b _bar
10
11; SWIFT-LABEL: t1:
12; SWIFT: mov lr, pc
13; SWIFT: b _bar
14  tail call void @bar() noreturn nounwind
15  unreachable
16}
17
18define void @t2() noreturn nounwind ssp {
19entry:
20; ARM-LABEL: t2:
21; ARM: mov lr, pc
22; ARM: b _t1
23
24; SWIFT-LABEL: t2:
25; SWIFT: mov lr, pc
26; SWIFT: b _t1
27  tail call void @t1() noreturn nounwind
28  unreachable
29}
30
31declare void @bar() noreturn
Note: See TracBrowser for help on using the repository browser.