mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
f89da7210b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179361 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
564 B
LLVM
18 lines
564 B
LLVM
; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -filetype=obj | llvm-readobj -r | FileCheck %s
|
|
|
|
; External symbols are a different concept to global variables but should still
|
|
; get relocations and so on when used.
|
|
|
|
declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
|
|
|
|
define i32 @check_extern() {
|
|
call void @llvm.memcpy.p0i8.p0i8.i32(i8* undef, i8* undef, i32 undef, i32 4, i1 0)
|
|
ret i32 0
|
|
}
|
|
|
|
; CHECK: Relocations [
|
|
; CHECK: Section (1) .text {
|
|
; CHECK: 0x{{[0-9,A-F]+}} R_AARCH64_CALL26 memcpy
|
|
; CHECK: }
|
|
; CHECK: ]
|