2013-02-01 19:40:47 +08:00
|
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
|
2013-01-31 20:12:40 +08:00
|
|
|
|
|
|
|
@stored_label = global i8* null
|
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
; CHECK: 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
|
|
|
|
}
|