~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/MC/AArch64/elf-extern.s

  • 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: llvm-mc < %s -triple=aarch64-none-linux-gnu -filetype=obj | llvm-readobj -r | FileCheck %s
 
2
 
 
3
// External symbols are a different concept to global variables but should still
 
4
// get relocations and so on when used.
 
5
 
 
6
        .file   "<stdin>"
 
7
        .text
 
8
        .globl  check_extern
 
9
        .type   check_extern,@function
 
10
check_extern:                           // @check_extern
 
11
        .cfi_startproc
 
12
// BB#0:
 
13
        sub     sp, sp, #16
 
14
.Ltmp2:
 
15
        .cfi_def_cfa sp, 16
 
16
        str     x30, [sp, #8]           // 8-byte Folded Spill
 
17
.Ltmp3:
 
18
        .cfi_offset x30, -8
 
19
        bl      memcpy
 
20
        mov      x0, xzr
 
21
        ldr     x30, [sp, #8]           // 8-byte Folded Reload
 
22
        add     sp, sp, #16
 
23
        ret
 
24
.Ltmp4:
 
25
        .size   check_extern, .Ltmp4-check_extern
 
26
        .cfi_endproc
 
27
 
 
28
 
 
29
// CHECK: Relocations [
 
30
// CHECK:   Section {{.*}} .rela.text {
 
31
// CHECK:     0x{{[0-9,A-F]+}} R_AARCH64_CALL26 memcpy
 
32
// CHECK:   }
 
33
// CHECK: ]