brintos

brintos / llvm-project-archived public Read only

0
0
Text · 403 B · 56b611a Raw
17 lines · plain
1; Test indirect calls.2;3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s4 5; We must allocate 160 bytes for the callee and save and restore %r14.6define i64 @f1(ptr %bar) {7; CHECK-LABEL: f1:8; CHECK: stmg %r14, %r15, 112(%r15)9; CHECK: aghi %r15, -16010; CHECK: basr %r14, %r211; CHECK: lmg %r14, %r15, 272(%r15)12; CHECK: br %r1413  %ret = call i64 %bar()14  %inc = add i64 %ret, 115  ret i64 %inc16}17