xref: /llvm-project/llvm/test/CodeGen/MIR/AMDGPU/invalid-frame-index-invalid-fixed-stack.mir (revision 98e5ede60499f255c2cd48b85dcda14af5b99c7d)
1# RUN: not llc -mtriple=amdgcn-amd-amdhsa -run-pass=none -verify-machineinstrs %s -o /dev/null 2>&1 | FileCheck %s
2
3---
4name: invalid_scavenge_fi
5stack:
6  - { id: 0, name: '', type: spill-slot, offset: 0, size: 16, alignment: 4, stack-id: noalloc }
7  - { id: 1, name: '', type: spill-slot, offset: 16, size: 16, alignment: 4, stack-id: noalloc }
8  - { id: 2, name: '', type: spill-slot, offset: 32, size: 16, alignment: 4, stack-id: noalloc }
9machineFunctionInfo:
10  # CHECK: [[@LINE+1]]:17: invalid fixed frame index 2
11  scavengeFI: '%fixed-stack.2'
12
13body:             |
14  bb.0:
15    S_ENDPGM 0
16
17...
18