aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/MIR/AMDGPU/invalid-frame-index-invalid-fixed-stack.mir
blob: 097f0f8c886aca3548392c582865e64dbcc2377c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# RUN: not llc -mtriple=amdgcn-amd-amdhsa -run-pass=none -verify-machineinstrs %s -o /dev/null 2>&1 | FileCheck %s

---
name: invalid_scavenge_fi
stack:
  - { id: 0, name: '', type: spill-slot, offset: 0, size: 16, alignment: 4, stack-id: noalloc }
  - { id: 1, name: '', type: spill-slot, offset: 16, size: 16, alignment: 4, stack-id: noalloc }
  - { id: 2, name: '', type: spill-slot, offset: 32, size: 16, alignment: 4, stack-id: noalloc }
machineFunctionInfo:
  # CHECK: [[@LINE+1]]:17: invalid fixed frame index 2
  scavengeFI: '%fixed-stack.2'

body:             |
  bb.0:
    S_ENDPGM 0

...