~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/ARM/space-directive.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 -mtriple=armv7 -o - %s | FileCheck %s
 
2
 
 
3
define i32 @test_space() minsize {
 
4
; CHECK-LABEL: test_space:
 
5
; CHECK: ldr {{r[0-9]+}}, [[CPENTRY:.?LCPI[0-9]+_[0-9]+]]
 
6
; CHECK: b [[PAST_CP:.?LBB[0-9]+_[0-9]+]]
 
7
 
 
8
; CHECK: [[CPENTRY]]:
 
9
; CHECK-NEXT: 12345678
 
10
 
 
11
; CHECK: [[PAST_CP]]:
 
12
; CHECK: .zero 10000
 
13
  %addr = inttoptr i32 12345678 to i32*
 
14
  %val = load i32, i32* %addr
 
15
  call i32 @llvm.arm.space(i32 10000, i32 undef)
 
16
  ret i32 %val
 
17
}
 
18
 
 
19
declare i32 @llvm.arm.space(i32, i32)