brintos

brintos / llvm-project-archived public Read only

0
0
Text · 708 B · 0c4b2c8 Raw
26 lines · plain
1; Test the stackrestore builtin.2;3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s4 5declare ptr@llvm.stacksave()6declare void @llvm.stackrestore(ptr)7 8; we should use a frame pointer and tear down the frame based on %r119; rather than %r15.10define void @f1(i32 %count1, i32 %count2) {11; CHECK-LABEL: f1:12; CHECK: stmg %r11, %r15, 88(%r15)13; CHECK: aghi %r15, -16014; CHECK: lgr %r11, %r1515; CHECK: lgr %r15, %r{{[0-5]}}16; CHECK: lmg %r11, %r15, 248(%r11)17; CHECK: br %r1418  %src = call ptr@llvm.stacksave()19  %array1 = alloca i8, i32 %count120  store volatile i8 0, ptr %array121  call void @llvm.stackrestore(ptr %src)22  %array2 = alloca i8, i32 %count223  store volatile i8 0, ptr %array224  ret void25}26