xref: /llvm-project/llvm/test/CodeGen/MIR/ARM/call-frame-size.mir (revision e5f04830c59fba05e39b7ca2c958c76876e7cd91)
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 2
2# RUN: llc -mtriple=arm-linux-gnueabi -run-pass none -o - %s | FileCheck %s
3# This test ensures that the MIR parser parses machine functions correctly.
4
5---
6name: callframesize
7body: |
8  ; CHECK-LABEL: name: callframesize
9  ; CHECK: bb.0:
10  ; CHECK-NEXT:   successors: %bb.1(0x80000000)
11  ; CHECK-NEXT: {{  $}}
12  ; CHECK-NEXT:   ADJCALLSTACKDOWN 100, 0, 14 /* CC::al */, $noreg, implicit-def $sp, implicit $sp
13  ; CHECK-NEXT: {{  $}}
14  ; CHECK-NEXT: bb.1 (call-frame-size 100):
15  ; CHECK-NEXT:   successors: %bb.2(0x80000000)
16  ; CHECK-NEXT: {{  $}}
17  ; CHECK-NEXT:   ADJCALLSTACKUP 100, 0, 14 /* CC::al */, $noreg, implicit-def $sp, implicit $sp
18  ; CHECK-NEXT: {{  $}}
19  ; CHECK-NEXT: bb.2:
20  bb.0:
21    ADJCALLSTACKDOWN 100, 0, 14, $noreg, implicit-def $sp, implicit $sp
22  bb.1 (call-frame-size 100):
23    ADJCALLSTACKUP 100, 0, 14, $noreg, implicit-def $sp, implicit $sp
24  bb.2:
25...
26