Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / fastregalloc-sgpr-only.mir
blobc57919d634dd6c508bbe3c09804bbb79f25a7076
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -start-before=regallocfast,0 --stop-after=regallocfast,0 -o - %s | FileCheck -check-prefix=GCN %s
4 ---
5 name: copy_vgpr_allocation
6 tracksRegLiveness: true
7 body:             |
8   bb.0:
9     liveins: $vgpr0, $vgpr1, $vgpr4, $vgpr5
10     ; GCN-LABEL: name: copy_vgpr_allocation
11     ; GCN: liveins: $vgpr0, $vgpr1, $vgpr4, $vgpr5
12     ; GCN-NEXT: {{  $}}
13     ; GCN-NEXT: [[COPY:%[0-9]+]]:vreg_64 = COPY killed $vgpr0_vgpr1
14     ; GCN-NEXT: FLAT_STORE_DWORDX2 killed $vgpr4_vgpr5, [[COPY]], 0, 0, implicit $exec, implicit $flat_scr
15     %14:vreg_64 = COPY $vgpr0_vgpr1
16     FLAT_STORE_DWORDX2 $vgpr4_vgpr5, %14:vreg_64, 0, 0, implicit $exec, implicit $flat_scr
17 ...
20 ---
21 name: copy_sgpr_allocation
22 tracksRegLiveness: true
23 body:             |
24   bb.0:
25     liveins: $sgpr0, $sgpr1, $sgpr4
26     ; GCN-LABEL: name: copy_sgpr_allocation
27     ; GCN: liveins: $sgpr0, $sgpr1, $sgpr4
28     ; GCN-NEXT: {{  $}}
29     ; GCN-NEXT: S_STORE_DWORD_SGPR killed $sgpr4, killed renamable $sgpr0_sgpr1, undef $m0, 0
30     %14:sreg_64 = COPY $sgpr0_sgpr1
31     S_STORE_DWORD_SGPR $sgpr4, %14:sreg_64, undef $m0, 0
32 ...