1; Test the stacksave builtin.
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5declare i8 *@llvm.stacksave()
6
7define void @f1(i8 **%dest) {
8; CHECK-LABEL: f1:
9; CHECK: stg %r15, 0(%r2)
10; CHECK: br %r14
11  %addr = call i8 *@llvm.stacksave()
12  store volatile i8 *%addr, i8 **%dest
13  ret void
14}
15