1 # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
5 @addr = global i8* null
9 store volatile i8* blockaddress(@test, %block), i8** @addr
10 %val = load volatile i8*, i8** @addr
11 indirectbr i8* %val, [label %block]
22 successors: %bb.1.block
23 ; CHECK: [[@LINE+1]]:44: expected an IR function reference
24 $rax = LEA64r $rip, 1, _, blockaddress(@addr, %ir-block.block), _
25 MOV64mr $rip, 1, _, @addr, _, killed $rax
26 JMP64m $rip, 1, _, @addr, _
28 bb.1.block (address-taken):