blob: 5145b4d1c8628315bf34d97b25a3722326aae50d [file] [log] [blame]
Ulrich Weigand9e3577f2013-05-06 16:17:29 +00001; Test the stackrestore builtin.
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5declare void @llvm.stackrestore(i8 *)
6
7; we should use a frame pointer and tear down the frame based on %r11
8; rather than %r15.
9define void @f1(i8 *%src) {
Stephen Lind24ab202013-07-14 06:24:09 +000010; CHECK-LABEL: f1:
Ulrich Weigand9e3577f2013-05-06 16:17:29 +000011; CHECK: stmg %r11, %r15, 88(%r15)
12; CHECK: lgr %r11, %r15
13; CHECK: lgr %r15, %r2
14; CHECK: lmg %r11, %r15, 88(%r11)
15; CHECK: br %r14
16 call void @llvm.stackrestore(i8 *%src)
17 ret void
18}