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--- | 4 5 @addr = global i8* null 6 7 define void @test_blockaddress() { 8 store i8* blockaddress(@test_blockaddress, %block), i8** @addr 9 indirectbr i8* blockaddress(@test_blockaddress, %block), [label %block] 10 11 block: 12 ret void 13 } 14 15... 16--- 17name: test_blockaddress 18alignment: 16 19tracksRegLiveness: true 20body: | 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: 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 27 28... 29