ARM64: enable more regression tests from AArch64
[oota-llvm.git] / test / CodeGen / AArch64 / breg.ll
1 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
2 ; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64 | FileCheck %s
3
4 @stored_label = global i8* null
5
6 define void @foo() {
7 ; CHECK-LABEL: foo:
8   %lab = load i8** @stored_label
9   indirectbr i8* %lab, [label  %otherlab, label %retlab]
10 ; CHECK: adrp {{x[0-9]+}}, stored_label
11 ; CHECK: ldr {{x[0-9]+}}, [{{x[0-9]+}}, {{#?}}:lo12:stored_label]
12 ; CHECK: br {{x[0-9]+}}
13
14 otherlab:
15   ret void
16 retlab:
17   ret void
18 }