~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/AArch64/breg.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc -verify-machineinstrs -o - %s -mtriple=aarch64-linux-gnu -aarch64-atomic-cfg-tidy=0 | FileCheck %s
 
2
 
 
3
@stored_label = global i8* null
 
4
 
 
5
define void @foo() {
 
6
; CHECK-LABEL: foo:
 
7
  %lab = load i8*, i8** @stored_label
 
8
  indirectbr i8* %lab, [label  %otherlab, label %retlab]
 
9
; CHECK: adrp {{x[0-9]+}}, stored_label
 
10
; CHECK: ldr {{x[0-9]+}}, [{{x[0-9]+}}, {{#?}}:lo12:stored_label]
 
11
; CHECK: br {{x[0-9]+}}
 
12
 
 
13
otherlab:
 
14
  ret void
 
15
retlab:
 
16
  ret void
 
17
}