Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / legalize-block-addr.mir
blob9b5a0b2de4f81e5dc19448d9c6c76a505f6d6bf0
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck %s
3 --- |
5   @addr = global ptr null
7   define void @test_blockaddress() {
8     store ptr blockaddress(@test_blockaddress, %block), ptr @addr
9     indirectbr ptr blockaddress(@test_blockaddress, %block), [label %block]
11   block:
12     ret void
13   }
15 ...
16 ---
17 name:            test_blockaddress
18 alignment:       16
19 tracksRegLiveness: true
20 body:             |
21   bb.1 (%ir-block.0):
22     ; CHECK-LABEL: name: test_blockaddress
23     ; CHECK: [[BLOCK_ADDR:%[0-9]+]]:_(p0) = G_BLOCK_ADDR blockaddress(@test_blockaddress, %ir-block.block)
24     ; CHECK-NEXT: S_ENDPGM 0, implicit [[BLOCK_ADDR]](p0)
25     %0:_(p0) = G_BLOCK_ADDR blockaddress(@test_blockaddress, %ir-block.block)
26     S_ENDPGM 0, implicit %0
28 ...