source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/unwind-init.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: 662 bytes
Line 
1; RUN: llc -mtriple=armv7-unknown-linux-gnueabi < %s | FileCheck %s
2; Check that all callee-saved registers are saved and restored in functions
3; that call __builtin_unwind_init(). This is its undocumented behavior in gcc,
4; and it is used in compiling libgcc_eh.
5; See also PR8541
6
7declare void @llvm.eh.unwind.init()
8
9define void @calls_unwind_init() {
10  call void @llvm.eh.unwind.init()
11  ret void
12}
13
14; CHECK-LABEL: calls_unwind_init:
15; CHECK: push    {r4, r5, r6, r7, r8, r9, r10, r11, lr}
16; CHECK: vpush   {d8, d9, d10, d11, d12, d13, d14, d15}
17; CHECK: vpop    {d8, d9, d10, d11, d12, d13, d14, d15}
18; CHECK: pop     {r4, r5, r6, r7, r8, r9, r10, r11, pc}
Note: See TracBrowser for help on using the repository browser.