1 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
3 declare i64 @llvm.get.dynamic.area.offset.i64()
10 ; CHECK: brasl %r14, use
12 %tmp = alloca i64, align 32
13 %dynamic_area_offset = call i64 @llvm.get.dynamic.area.offset.i64()
14 call void @use(i64 %dynamic_area_offset)
18 define void @f2(i64 %arg) {
20 ; CHECK: la %r2, 160(%r2)
21 ; CHECK: brasl %r14, use
23 %tmp = alloca i64, align 32
24 %dynamic_area_offset = call i64 @llvm.get.dynamic.area.offset.i64()
25 %param = add i64 %dynamic_area_offset, %arg
26 call void @use(i64 %param)
30 declare void @eatsalot(i64, i64, i64, i64, i64, i64)
35 ; CHECK: brasl %r14, use
37 %tmp = alloca i64, align 32
38 call void @eatsalot(i64 0, i64 0, i64 0, i64 0, i64 0, i64 0)
39 %dynamic_area_offset = call i64 @llvm.get.dynamic.area.offset.i64()
40 call void @use(i64 %dynamic_area_offset)