mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 21:05:51 +00:00
dce294e7b1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206169 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
494 B
LLVM
19 lines
494 B
LLVM
; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
|
|
; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64 | 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
|
|
}
|