mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +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
30 lines
902 B
YAML
30 lines
902 B
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -O0 -march amdgcn -mcpu=fiji -run-pass=regbankselect %s -o - | FileCheck %s
|
|
|
|
--- |
|
|
|
|
@addr = global i8* null
|
|
|
|
define void @test_blockaddress() {
|
|
store i8* blockaddress(@test_blockaddress, %block), i8** @addr
|
|
indirectbr i8* blockaddress(@test_blockaddress, %block), [label %block]
|
|
|
|
block: ; preds = %0
|
|
ret void
|
|
}
|
|
|
|
...
|
|
---
|
|
name: test_blockaddress
|
|
alignment: 16
|
|
legalized: true
|
|
body: |
|
|
bb.1 (%ir-block.0):
|
|
; CHECK-LABEL: name: test_blockaddress
|
|
; CHECK: [[BLOCK_ADDR:%[0-9]+]]:sgpr(p0) = G_BLOCK_ADDR blockaddress(@test_blockaddress, %ir-block.block)
|
|
; CHECK: S_ENDPGM 0, implicit [[BLOCK_ADDR]](p0)
|
|
%0:_(p0) = G_BLOCK_ADDR blockaddress(@test_blockaddress, %ir-block.block)
|
|
S_ENDPGM 0, implicit %0
|
|
|
|
...
|