xref: /llvm-project/llvm/test/CodeGen/SystemZ/frame-adjstack.ll (revision b4b5e8277a86d441830dbba54917bf22b0ad8608)
1; RUN: llc < %s -mtriple=s390x-linux-gnu -verify-machineinstrs | FileCheck %s
2;
3; Test that inserting a new MBB near a call during finalize isel custom
4; insertion does not cause all frame instructions to be missed. That would
5; result in a missing to set the AdjustsStack flag.
6
7; CHECK-LABEL: fun
8define void @fun(i1 %cc) {
9  %sel = select i1 %cc, i32 5, i32 0
10  tail call void @input_report_abs(i32 %sel)
11  %sel2 = select i1 %cc, i32 6, i32 1
12  tail call void @input_report_abs(i32 %sel2)
13  ret void
14}
15
16declare void @input_report_abs(i32)
17