1 # Note we are NOT using the normal register allocator pipeline. We are
2 # forcing allocating VGPRs and SGPRs at the same time.
3 # RUN: llc -march=amdgcn -mcpu=fiji -verify-machineinstrs -stress-regalloc=1 -run-pass=greedy,virtregrewriter,stack-slot-coloring -o - %s | FileCheck %s
7 # CHECK-LABEL: name: no_merge_sgpr_vgpr_spill_slot{{$}}
9 # CHECK: - { id: 0, name: '', type: spill-slot, offset: 0, size: 4, alignment: 4,
10 # CHECK-NEXT: stack-id: sgpr-spill,
12 # CHECK: SI_SPILL_S32_SAVE killed renamable $sgpr5, %stack.0, implicit $exec, implicit $sgpr32 :: (store (s32) into %stack.0, addrspace 5)
13 # CHECK: renamable $sgpr5 = SI_SPILL_S32_RESTORE %stack.0, implicit $exec, implicit $sgpr32 :: (load (s32) from %stack.0, addrspace 5)
15 name: no_merge_sgpr_vgpr_spill_slot
16 tracksRegLiveness: true
18 scratchRSrcReg: $sgpr0_sgpr1_sgpr2_sgpr3
19 frameOffsetReg: $sgpr4
20 stackPtrOffsetReg: $sgpr32
23 %2:vgpr_32 = FLAT_LOAD_DWORD undef $vgpr0_vgpr1, 0, 0, implicit $flat_scr, implicit $exec
24 %0:vgpr_32 = FLAT_LOAD_DWORD undef $vgpr0_vgpr1, 0, 0, implicit $flat_scr, implicit $exec
26 %1:sreg_32_xm0_xexec = S_LOAD_DWORD_IMM undef $sgpr0_sgpr1, 0, 0
27 %3:sreg_32_xm0_xexec = S_LOAD_DWORD_IMM undef $sgpr0_sgpr1, 0, 0