1; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
2
3@stored_label = global i8* null
4
5define void @foo() {
6; CHECK-LABEL: foo:
7  %lab = load i8** @stored_label
8  indirectbr i8* %lab, [label  %otherlab, label %retlab]
9; CHECK: adrp {{x[0-9]+}}, stored_label
10; CHECK: ldr {{x[0-9]+}}, [{{x[0-9]+}}, #:lo12:stored_label]
11; CHECK: br {{x[0-9]+}}
12
13otherlab:
14  ret void
15retlab:
16  ret void
17}
18