2013-02-01 11:40:47 +00:00
|
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
|
2014-04-14 13:18:48 +00:00
|
|
|
; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64-linux-gnu | FileCheck %s
|
2013-01-31 12:12:40 +00:00
|
|
|
|
|
|
|
@stored_label = global i8* null
|
|
|
|
|
|
|
|
define void @foo() {
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: foo:
|
2013-01-31 12:12:40 +00:00
|
|
|
%lab = load i8** @stored_label
|
|
|
|
indirectbr i8* %lab, [label %otherlab, label %retlab]
|
|
|
|
; CHECK: adrp {{x[0-9]+}}, stored_label
|
2014-04-14 12:50:58 +00:00
|
|
|
; CHECK: ldr {{x[0-9]+}}, [{{x[0-9]+}}, {{#?}}:lo12:stored_label]
|
2013-01-31 12:12:40 +00:00
|
|
|
; CHECK: br {{x[0-9]+}}
|
|
|
|
|
|
|
|
otherlab:
|
|
|
|
ret void
|
|
|
|
retlab:
|
|
|
|
ret void
|
|
|
|
}
|