Home | History | Annotate | Download | only in AArch64
      1 ; RUN: llc -verify-machineinstrs < %s -mtriple=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 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: Relocations [
     14 ; CHECK:   Section (2) .rela.text {
     15 ; CHECK:     0x{{[0-9,A-F]+}} R_AARCH64_CALL26 memcpy
     16 ; CHECK:   }
     17 ; CHECK: ]
     18