mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
7bc8414ee9
Only Linux is supported at the moment, and other platforms quickly fault. As a result these tests would fail on non-Linux hosts. It may be worth making the tests more generic again as more platforms are supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174170 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
572 B
LLVM
22 lines
572 B
LLVM
; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -filetype=obj | elf-dump | 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: .rela.text
|
|
; CHECK: ('r_sym', 0x00000009)
|
|
; CHECK-NEXT: ('r_type', 0x0000011b)
|
|
|
|
; CHECK: .symtab
|
|
; CHECK: Symbol 9
|
|
; CHECK-NEXT: memcpy
|
|
|
|
|