annotate llvm/test/CodeGen/AMDGPU/limit-coalesce.mir @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # RUN: llc -march=amdgcn -run-pass simple-register-coalescing -o - %s | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 # Check that coalescer does not create wider register tuple than in source
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 # CHECK: - { id: 2, class: vreg_64, preferred-register: '' }
anatofuz
parents:
diff changeset
6 # CHECK: - { id: 3, class: vreg_64, preferred-register: '' }
anatofuz
parents:
diff changeset
7 # CHECK: - { id: 4, class: vreg_64, preferred-register: '' }
anatofuz
parents:
diff changeset
8 # CHECK: - { id: 5, class: vreg_96, preferred-register: '' }
anatofuz
parents:
diff changeset
9 # CHECK: - { id: 6, class: vreg_96, preferred-register: '' }
anatofuz
parents:
diff changeset
10 # CHECK: - { id: 7, class: vreg_128, preferred-register: '' }
anatofuz
parents:
diff changeset
11 # CHECK: - { id: 8, class: vreg_128, preferred-register: '' }
anatofuz
parents:
diff changeset
12 # No more registers shall be defined
anatofuz
parents:
diff changeset
13 # CHECK-NEXT: liveins:
anatofuz
parents:
diff changeset
14 # CHECK: FLAT_STORE_DWORDX2 $vgpr0_vgpr1, %4,
anatofuz
parents:
diff changeset
15 # CHECK: FLAT_STORE_DWORDX3 $vgpr0_vgpr1, %6,
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 ---
anatofuz
parents:
diff changeset
18 name: main
anatofuz
parents:
diff changeset
19 alignment: 1
anatofuz
parents:
diff changeset
20 exposesReturnsTwice: false
anatofuz
parents:
diff changeset
21 legalized: false
anatofuz
parents:
diff changeset
22 regBankSelected: false
anatofuz
parents:
diff changeset
23 selected: false
anatofuz
parents:
diff changeset
24 tracksRegLiveness: true
anatofuz
parents:
diff changeset
25 registers:
anatofuz
parents:
diff changeset
26 - { id: 1, class: sreg_32_xm0, preferred-register: '%1' }
anatofuz
parents:
diff changeset
27 - { id: 2, class: vreg_64, preferred-register: '%2' }
anatofuz
parents:
diff changeset
28 - { id: 3, class: vreg_64 }
anatofuz
parents:
diff changeset
29 - { id: 4, class: vreg_64 }
anatofuz
parents:
diff changeset
30 - { id: 5, class: vreg_64 }
anatofuz
parents:
diff changeset
31 - { id: 6, class: vreg_96 }
anatofuz
parents:
diff changeset
32 - { id: 7, class: vreg_96 }
anatofuz
parents:
diff changeset
33 - { id: 8, class: vreg_128 }
anatofuz
parents:
diff changeset
34 - { id: 9, class: vreg_128 }
anatofuz
parents:
diff changeset
35 liveins:
anatofuz
parents:
diff changeset
36 - { reg: '$sgpr6', virtual-reg: '%1' }
anatofuz
parents:
diff changeset
37 frameInfo:
anatofuz
parents:
diff changeset
38 isFrameAddressTaken: false
anatofuz
parents:
diff changeset
39 isReturnAddressTaken: false
anatofuz
parents:
diff changeset
40 hasStackMap: false
anatofuz
parents:
diff changeset
41 hasPatchPoint: false
anatofuz
parents:
diff changeset
42 stackSize: 0
anatofuz
parents:
diff changeset
43 offsetAdjustment: 0
anatofuz
parents:
diff changeset
44 maxAlignment: 0
anatofuz
parents:
diff changeset
45 adjustsStack: false
anatofuz
parents:
diff changeset
46 hasCalls: false
anatofuz
parents:
diff changeset
47 maxCallFrameSize: 0
anatofuz
parents:
diff changeset
48 hasOpaqueSPAdjustment: false
anatofuz
parents:
diff changeset
49 hasVAStart: false
anatofuz
parents:
diff changeset
50 hasMustTailInVarArgFunc: false
anatofuz
parents:
diff changeset
51 body: |
anatofuz
parents:
diff changeset
52 bb.0.entry:
anatofuz
parents:
diff changeset
53 liveins: $sgpr0, $vgpr0_vgpr1
anatofuz
parents:
diff changeset
54
anatofuz
parents:
diff changeset
55 %3 = IMPLICIT_DEF
anatofuz
parents:
diff changeset
56 undef %4.sub0 = COPY $sgpr0
anatofuz
parents:
diff changeset
57 %4.sub1 = COPY %3.sub0
anatofuz
parents:
diff changeset
58 undef %5.sub0 = COPY %4.sub1
anatofuz
parents:
diff changeset
59 %5.sub1 = COPY %4.sub0
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
60 FLAT_STORE_DWORDX2 $vgpr0_vgpr1, killed %5, 0, 0, implicit $exec, implicit $flat_scr
150
anatofuz
parents:
diff changeset
61
anatofuz
parents:
diff changeset
62 %6 = IMPLICIT_DEF
anatofuz
parents:
diff changeset
63 undef %7.sub0_sub1 = COPY %6
anatofuz
parents:
diff changeset
64 %7.sub2 = COPY %3.sub0
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
65 FLAT_STORE_DWORDX3 $vgpr0_vgpr1, killed %7, 0, 0, implicit $exec, implicit $flat_scr
150
anatofuz
parents:
diff changeset
66
anatofuz
parents:
diff changeset
67 %8 = IMPLICIT_DEF
anatofuz
parents:
diff changeset
68 undef %9.sub0_sub1_sub2 = COPY %8
anatofuz
parents:
diff changeset
69 %9.sub3 = COPY %3.sub0
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
70 FLAT_STORE_DWORDX4 $vgpr0_vgpr1, killed %9, 0, 0, implicit $exec, implicit $flat_scr
150
anatofuz
parents:
diff changeset
71 ...