forked from OSchip/llvm-project
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
|
# RUN: llc -march=amdgcn -run-pass none -o - %s | FileCheck %s
|
||
|
...
|
||
|
---
|
||
|
|
||
|
# CHECK-LABEL: name: spill_slot_stack_id
|
||
|
# CHECK: {{^}}fixedStack:
|
||
|
# CHECK: - { id: 0, type: spill-slot, offset: 0, size: 4, alignment: 4, stack-id: 0,
|
||
|
# CHECK: - { id: 1, type: spill-slot, offset: 0, size: 8, alignment: 4, stack-id: 0,
|
||
|
# CHECK: - { id: 2, type: spill-slot, offset: 0, size: 16, alignment: 4, stack-id: 9,
|
||
|
|
||
|
# CHECK: {{^}}stack:
|
||
|
# CHECK: - { id: 0, name: '', type: spill-slot, offset: 0, size: 16,
|
||
|
# CHECK-NEXT: stack-id: 3,
|
||
|
|
||
|
# CHECK: - { id: 1, name: '', type: spill-slot, offset: 0, size: 8,
|
||
|
# CHECK-NEXT: stack-id: 0,
|
||
|
|
||
|
# CHECK: - { id: 2, name: '', type: spill-slot, offset: 0, size: 4,
|
||
|
# CHECK-NEXT: stack-id: 0,
|
||
|
|
||
|
|
||
|
name: spill_slot_stack_id
|
||
|
fixedStack:
|
||
|
- { id: 0, type: spill-slot, offset: 0, size: 16, alignment: 4, stack-id: 9 }
|
||
|
- { id: 1, type: spill-slot, offset: 0, size: 8, alignment: 4, stack-id: 0 }
|
||
|
- { id: 2, type: spill-slot, offset: 0, size: 4, alignment: 4 }
|
||
|
stack:
|
||
|
- { id: 0, name: '', type: spill-slot, offset: 0, size: 16, alignment: 4, stack-id: 3 }
|
||
|
- { id: 1, name: '', type: spill-slot, offset: 0, size: 8, alignment: 4, stack-id: 0 }
|
||
|
- { id: 2, name: '', type: spill-slot, offset: 0, size: 4, alignment: 4 }
|
||
|
|
||
|
body: |
|
||
|
bb.0:
|
||
|
S_ENDPGM
|
||
|
...
|