1; 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) { 10; CHECK-LABEL: f1: 11; 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} 19