mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
d49cb60862
Summary: This catches malformed mir files which specify alignment as log2 instead of pow2. See https://reviews.llvm.org/D65945 for reference, This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: MatzeB, qcolombet, dschuff, arsenm, sdardis, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, Petar.Avramovic, asbirlea, s.egerton, pzheng, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67433 llvm-svn: 371608
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -o - %s | FileCheck %s
|
|
|
|
# Check that coalescer does not create wider register tuple than in source
|
|
|
|
# CHECK: - { id: 2, class: vreg_64, preferred-register: '' }
|
|
# CHECK: - { id: 3, class: vreg_64, preferred-register: '' }
|
|
# CHECK: - { id: 4, class: vreg_64, preferred-register: '' }
|
|
# CHECK: - { id: 5, class: vreg_96, preferred-register: '' }
|
|
# CHECK: - { id: 6, class: vreg_96, preferred-register: '' }
|
|
# CHECK: - { id: 7, class: vreg_128, preferred-register: '' }
|
|
# CHECK: - { id: 8, class: vreg_128, preferred-register: '' }
|
|
# No more registers shall be defined
|
|
# CHECK-NEXT: liveins:
|
|
# CHECK: FLAT_STORE_DWORDX2 $vgpr0_vgpr1, %4,
|
|
# CHECK: FLAT_STORE_DWORDX3 $vgpr0_vgpr1, %6,
|
|
|
|
---
|
|
name: main
|
|
alignment: 1
|
|
exposesReturnsTwice: false
|
|
legalized: false
|
|
regBankSelected: false
|
|
selected: false
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 1, class: sreg_32_xm0, preferred-register: '%1' }
|
|
- { id: 2, class: vreg_64, preferred-register: '%2' }
|
|
- { id: 3, class: vreg_64 }
|
|
- { id: 4, class: vreg_64 }
|
|
- { id: 5, class: vreg_64 }
|
|
- { id: 6, class: vreg_96 }
|
|
- { id: 7, class: vreg_96 }
|
|
- { id: 8, class: vreg_128 }
|
|
- { id: 9, class: vreg_128 }
|
|
liveins:
|
|
- { reg: '$sgpr6', virtual-reg: '%1' }
|
|
frameInfo:
|
|
isFrameAddressTaken: false
|
|
isReturnAddressTaken: false
|
|
hasStackMap: false
|
|
hasPatchPoint: false
|
|
stackSize: 0
|
|
offsetAdjustment: 0
|
|
maxAlignment: 0
|
|
adjustsStack: false
|
|
hasCalls: false
|
|
maxCallFrameSize: 0
|
|
hasOpaqueSPAdjustment: false
|
|
hasVAStart: false
|
|
hasMustTailInVarArgFunc: false
|
|
body: |
|
|
bb.0.entry:
|
|
liveins: $sgpr0, $vgpr0_vgpr1
|
|
|
|
%3 = IMPLICIT_DEF
|
|
undef %4.sub0 = COPY $sgpr0
|
|
%4.sub1 = COPY %3.sub0
|
|
undef %5.sub0 = COPY %4.sub1
|
|
%5.sub1 = COPY %4.sub0
|
|
FLAT_STORE_DWORDX2 $vgpr0_vgpr1, killed %5, 0, 0, 0, 0, implicit $exec, implicit $flat_scr
|
|
|
|
%6 = IMPLICIT_DEF
|
|
undef %7.sub0_sub1 = COPY %6
|
|
%7.sub2 = COPY %3.sub0
|
|
FLAT_STORE_DWORDX3 $vgpr0_vgpr1, killed %7, 0, 0, 0, 0, implicit $exec, implicit $flat_scr
|
|
|
|
%8 = IMPLICIT_DEF
|
|
undef %9.sub0_sub1_sub2 = COPY %8
|
|
%9.sub3 = COPY %3.sub0
|
|
FLAT_STORE_DWORDX4 $vgpr0_vgpr1, killed %9, 0, 0, 0, 0, implicit $exec, implicit $flat_scr
|
|
...
|