mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
f89da7210b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179361 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
586 B
LLVM
20 lines
586 B
LLVM
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 < %s -o - | llvm-readobj -r | FileCheck %s
|
|
|
|
; Check that the R_MIPS_GOT_DISP relocations were created.
|
|
|
|
; CHECK: Relocations [
|
|
; CHECK: 0x{{[0-9,A-F]+}} R_MIPS_GOT_DISP
|
|
|
|
@shl = global i64 1, align 8
|
|
@.str = private unnamed_addr constant [8 x i8] c"0x%llx\0A\00", align 1
|
|
|
|
define i32 @main() nounwind {
|
|
entry:
|
|
%0 = load i64* @shl, align 8
|
|
%call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8]* @.str, i64 0, i64 0), i64 %0) nounwind
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @printf(i8* nocapture, ...) nounwind
|
|
|