1 ; RUN: llc -mtriple=x86_64-unknown-linux < %s | FileCheck -check-prefix X8664 %s
2 ; RUN: llc -mtriple=i686-unknown-linux < %s | FileCheck -check-prefix X8632 %s
3 ; Check that all callee-saved registers are saved and restored in functions
4 ; that call __builtin_unwind_init(). This is its undocumented behavior in gcc,
5 ; and it is used in compiling libgcc_eh.
8 declare void @llvm.eh.unwind.init()
10 define void @calls_unwind_init() {
11 call void @llvm.eh.unwind.init()
15 ; X8664-LABEL: calls_unwind_init:
28 ; X8632-LABEL: calls_unwind_init: