1 ; Test the setup of the environment area, or associated data area (ADA)
3 ; RUN: llc < %s -mtriple=s390x-ibm-zos -mcpu=z10 | FileCheck %s
6 ; CHECK: stmg 6,8,1872(4)
7 ; CHECK-NEXT: aghi 4,-192
9 ; CHECK-NEXT: brasl 7,callee_internal@PLT
11 ; CHECK-NEXT: lg 6,8(8)
12 ; CHECK-NEXT: lg 5,0(8)
14 ; CHECK-NEXT: basr 7,6
16 ; CHECK-NEXT: la 3,0(3,8)
17 ; CHECK-NEXT: lmg 7,8,2072(4)
18 ; CHECK-NEXT: aghi 4,192
20 define i64 @caller() {
21 %r1 = call i64 () @callee_internal()
22 %r2 = call i64 () @callee_external()
23 %r3 = add i64 %r1, %r2
27 define internal i64 @callee_internal() {
31 declare i64 @callee_external()