| # RUN: llc -march=amdgcn -mcpu=fiji -verify-machineinstrs -stress-regalloc=1 -start-before=greedy -stop-after=stack-slot-coloring -o - %s | FileCheck %s |
| --- |
| |
| # CHECK-LABEL: name: no_merge_sgpr_vgpr_spill_slot{{$}} |
| # CHECK: stack: |
| # CHECK: - { id: 0, name: '', type: spill-slot, offset: 0, size: 4, alignment: 4, |
| # CHECK-NEXT: stack-id: 0, |
| |
| # CHECK: - { id: 1, name: '', type: spill-slot, offset: 0, size: 4, alignment: 4, |
| # CHECK-NEXT: stack-id: 1, |
| |
| # CHECK: SI_SPILL_V32_SAVE killed $vgpr0, %stack.0, $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr5, 0, implicit $exec :: (store 4 into %stack.0, addrspace 5) |
| # CHECK: $vgpr0 = SI_SPILL_V32_RESTORE %stack.0, $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr5, 0, implicit $exec :: (load 4 from %stack.0, addrspace 5) |
| |
| # CHECK: SI_SPILL_S32_SAVE killed renamable $sgpr6, %stack.1, implicit $exec, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $sgpr5, implicit-def dead $m0 :: (store 4 into %stack.1, addrspace 5) |
| # CHECK: $sgpr6 = SI_SPILL_S32_RESTORE %stack.1, implicit $exec, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $sgpr5, implicit-def dead $m0 :: (load 4 from %stack.1, addrspace 5) |
| |
| name: no_merge_sgpr_vgpr_spill_slot |
| tracksRegLiveness: true |
| registers: |
| - { id: 0, class: vgpr_32 } |
| - { id: 1, class: sreg_32_xm0_xexec } |
| - { id: 2, class: vgpr_32 } |
| - { id: 3, class: sreg_32_xm0_xexec } |
| |
| body: | |
| bb.0: |
| %0 = FLAT_LOAD_DWORD undef $vgpr0_vgpr1, 0, 0, 0, implicit $flat_scr, implicit $exec |
| %2 = FLAT_LOAD_DWORD undef $vgpr0_vgpr1, 0, 0, 0, implicit $flat_scr, implicit $exec |
| S_NOP 0, implicit %0 |
| %1 = S_LOAD_DWORD_IMM undef $sgpr0_sgpr1, 0, 0 |
| %3 = S_LOAD_DWORD_IMM undef $sgpr0_sgpr1, 0, 0 |
| S_NOP 0, implicit %1 |
| ... |