aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/AArch64/breg.ll
blob: 952404495ce5de332a9724865af050db6d35273c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc -verify-machineinstrs -o - %s -mtriple=aarch64-linux-gnu -aarch64-atomic-cfg-tidy=0 | FileCheck %s

@stored_label = global i8* null

define void @foo() {
; CHECK-LABEL: foo:
  %lab = load i8** @stored_label
  indirectbr i8* %lab, [label  %otherlab, label %retlab]
; CHECK: adrp {{x[0-9]+}}, stored_label
; CHECK: ldr {{x[0-9]+}}, [{{x[0-9]+}}, {{#?}}:lo12:stored_label]
; CHECK: br {{x[0-9]+}}

otherlab:
  ret void
retlab:
  ret void
}