[Mips] TargetStreamer Support for .set mips16.
[oota-llvm.git] / test / MC / Mips / r-mips-got-disp.ll
1 ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 < %s -o - | llvm-readobj -r | FileCheck %s
2
3 ; Check that the R_MIPS_GOT_DISP relocations were created.
4
5 ; CHECK: Relocations [
6 ; CHECK:     0x{{[0-9,A-F]+}} R_MIPS_GOT_DISP
7
8 @shl = global i64 1, align 8
9 @.str = private unnamed_addr constant [8 x i8] c"0x%llx\0A\00", align 1
10
11 define i32 @main() nounwind {
12 entry:
13   %0 = load i64* @shl, align 8
14   %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8]* @.str, i64 0, i64 0), i64 %0) nounwind
15   ret i32 0
16 }
17
18 declare i32 @printf(i8* nocapture, ...) nounwind
19