Add AArch64 as an experimental target.
[oota-llvm.git] / test / CodeGen / AArch64 / elf-extern.ll
1 ; RUN: llc -verify-machineinstrs < %s -march=aarch64 -filetype=obj | elf-dump | 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 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
7
8 define i32 @check_extern() {
9   call void @llvm.memcpy.p0i8.p0i8.i32(i8* undef, i8* undef, i32 undef, i32 4, i1 0)
10   ret i32 0
11 }
12
13 ; CHECK: .rela.text
14 ; CHECK: ('r_sym', 0x00000009)
15 ; CHECK-NEXT: ('r_type', 0x0000011b)
16
17 ; CHECK: .symtab
18 ; CHECK: Symbol 9
19 ; CHECK-NEXT: memcpy
20
21