~ubuntu-branches/ubuntu/trusty/llvm-toolchain-snapshot/trusty-201310232150

« back to all changes in this revision

Viewing changes to test/CodeGen/AArch64/extern-weak.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-27 15:01:57 UTC
  • mfrom: (0.10.1) (0.9.1) (0.8.1) (0.7.1) (0.6.1) (0.5.2)
  • Revision ID: package-import@ubuntu.com-20130527150157-tdkrsjpuvht7v0qx
Tags: 1:3.4~svn182733-1~exp1
* New snapshot release (3.4 release)
* Add a symlink of libLLVM-3.4.so.1 to usr/lib/llvm-3.4/lib/libLLVM-3.4.so
    to fix make the llvm-config-3.4 --libdir work (Closes: #708677)
  * Various packages rename to allow co installations:
    * libclang1 => libclang1-3.4
    * libclang1-dbg => libclang1-3.4-dbg
    * libclang-dev => libclang-3.4-dev
    * libclang-common-dev => libclang-common-3.4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
; RUN: llc -mtriple=aarch64-none-linux-gnu -o - < %s | FileCheck %s
 
2
; RUN: llc -mtriple=aarch64-none-linux-gnu -code-model=large -o - < %s | FileCheck --check-prefix=CHECK-LARGE %s
2
3
 
3
4
declare extern_weak i32 @var()
4
5
 
11
12
 
12
13
; CHECK: ldr x0, [{{x[0-9]+}}, #:lo12:.LCPI0_0]
13
14
 
 
15
  ; In the large model, the usual relocations are absolute and can
 
16
  ; materialise 0.
 
17
; CHECK-LARGE: movz x0, #:abs_g3:var
 
18
; CHECK-LARGE: movk x0, #:abs_g2_nc:var
 
19
; CHECK-LARGE: movk x0, #:abs_g1_nc:var
 
20
; CHECK-LARGE: movk x0, #:abs_g0_nc:var
14
21
}
15
22
 
16
23
 
24
31
; CHECK: ldr [[BASE:x[0-9]+]], [{{x[0-9]+}}, #:lo12:.LCPI1_0]
25
32
; CHECK: add x0, [[BASE]], #20
26
33
  ret i32* %addr
 
34
 
 
35
  ; In the large model, the usual relocations are absolute and can
 
36
  ; materialise 0.
 
37
; CHECK-LARGE: movz x0, #:abs_g3:arr_var
 
38
; CHECK-LARGE: movk x0, #:abs_g2_nc:arr_var
 
39
; CHECK-LARGE: movk x0, #:abs_g1_nc:arr_var
 
40
; CHECK-LARGE: movk x0, #:abs_g0_nc:arr_var
27
41
}
28
42
 
29
43
@defined_weak_var = internal unnamed_addr global i32 0
32
46
  ret i32* @defined_weak_var
33
47
; CHECK: adrp [[BASE:x[0-9]+]], defined_weak_var
34
48
; CHECK: add x0, [[BASE]], #:lo12:defined_weak_var
 
49
 
 
50
; CHECK-LARGE: movz x0, #:abs_g3:defined_weak_var
 
51
; CHECK-LARGE: movk x0, #:abs_g2_nc:defined_weak_var
 
52
; CHECK-LARGE: movk x0, #:abs_g1_nc:defined_weak_var
 
53
; CHECK-LARGE: movk x0, #:abs_g0_nc:defined_weak_var
35
54
}
 
 
b'\\ No newline at end of file'