1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -O0 -march amdgcn -mcpu=fiji -run-pass=regbankselect %s -o - | FileCheck %s 3 4--- | 5 6 @addr = global i8* null 7 8 define void @test_blockaddress() { 9 store i8* blockaddress(@test_blockaddress, %block), i8** @addr 10 indirectbr i8* blockaddress(@test_blockaddress, %block), [label %block] 11 12 block: ; preds = %0 13 ret void 14 } 15 16... 17--- 18name: test_blockaddress 19alignment: 16 20legalized: true 21body: | 22 bb.1 (%ir-block.0): 23 ; CHECK-LABEL: name: test_blockaddress 24 ; CHECK: [[BLOCK_ADDR:%[0-9]+]]:sgpr(p0) = G_BLOCK_ADDR blockaddress(@test_blockaddress, %ir-block.block) 25 ; CHECK: S_ENDPGM 0, implicit [[BLOCK_ADDR]](p0) 26 %0:_(p0) = G_BLOCK_ADDR blockaddress(@test_blockaddress, %ir-block.block) 27 S_ENDPGM 0, implicit %0 28 29... 30