• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test indirect calls.
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5; We must allocate 160 bytes for the callee and save and restore %r14.
6define i64 @f1(i64() *%bar) {
7; CHECK-LABEL: f1:
8; CHECK: stmg %r14, %r15, 112(%r15)
9; CHECK: aghi %r15, -160
10; CHECK: basr %r14, %r2
11; CHECK: lmg %r14, %r15, 272(%r15)
12; CHECK: br %r14
13  %ret = call i64 %bar()
14  %inc = add i64 %ret, 1
15  ret i64 %inc
16}
17