1 # RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
5 @addr = global ptr null
9 store volatile ptr blockaddress(@test, %block), ptr @addr
10 %val = load volatile ptr, ptr @addr
11 indirectbr ptr %val, [label %block]
22 successors: %bb.1.block
23 ; CHECK: [[@LINE+1]]:51: use of undefined IR block '%ir-block."block "'
24 $rax = LEA64r $rip, 1, _, blockaddress(@test, %ir-block."block "), _
25 MOV64mr $rip, 1, _, @addr, _, killed $rax
26 JMP64m $rip, 1, _, @addr, _
28 bb.1.block (ir-block-address-taken %ir-block.block):