1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --print-fixed-stack
2# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=none -o - %s | FileCheck %s
3
4# Note that this file isn't a test in itself (Inputs/ is excluded from lit's
5# test discovery). Instead, it is an input to the print-stack.test test that
6# verifies the --print-fixed-stack option of update_mir_test_checks.py.
7
8---
9name:            test_arg_stack
10fixedStack:
11  - { id: 0, type: default, offset: 0, size: 4, alignment: 4 }
12  - { id: 1, type: default, offset: 4, size: 4, alignment: 8 }
13stack:           []
14body:             |
15  bb.1:
16    ; CHECK-LABEL: name: test_arg_stack
17    ; CHECK: fixedStack:
18    ; CHECK-NEXT:   - { id: 0, type: default, offset: 4, size: 4, alignment: 8, stack-id: default,
19    ; CHECK-NEXT:       isImmutable: false, isAliased: false, callee-saved-register: '',
20    ; CHECK-NEXT:       callee-saved-restored: true, debug-info-variable: '', debug-info-expression: '',
21    ; CHECK-NEXT:       debug-info-location: '' }
22    ; CHECK-NEXT:   - { id: 1, type: default, offset: 0, size: 4, alignment: 4, stack-id: default,
23    ; CHECK-NEXT:       isImmutable: false, isAliased: false, callee-saved-register: '',
24    ; CHECK-NEXT:       callee-saved-restored: true, debug-info-variable: '', debug-info-expression: '',
25    ; CHECK-NEXT:       debug-info-location: '' }
26    ; CHECK: RET 0, implicit $eax
27    RET 0, implicit $eax
28...
29
30---
31name:            test_arg_nostack
32body:             |
33  bb.1:
34    ; CHECK-LABEL: name: test_arg_nostack
35    ; CHECK: fixedStack:
36    ; CHECK: RET 0, implicit $eax
37    RET 0, implicit $eax
38...
39