1; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 < %s -o - | elf-dump --dump-section-data | FileCheck %s 2 3; Check that the R_MIPS_GOT_DISP relocations were created. 4 5; CHECK: ('r_type', 0x13) 6 7@shl = global i64 1, align 8 8@.str = private unnamed_addr constant [8 x i8] c"0x%llx\0A\00", align 1 9 10define i32 @main() nounwind { 11entry: 12 %0 = load i64* @shl, align 8 13 %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8]* @.str, i64 0, i64 0), i64 %0) nounwind 14 ret i32 0 15} 16 17declare i32 @printf(i8* nocapture, ...) nounwind 18 19