[SystemZ] Add support for z196 float<->unsigned conversions
[oota-llvm.git] / test / CodeGen / SystemZ / call-02.ll
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.
6 define 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 }