1; RUN: llc -O0 -march=mips -mcpu=mips32r2 -filetype=obj -o=%t-32.o < %s 2; RUN: llvm-dwarfdump %t-32.o 2>&1 | FileCheck %s 3; RUN: llc -O0 -march=mips64 -mcpu=mips64r2 -filetype=obj -o=%t-64.o < %s 4; RUN: llvm-dwarfdump %t-64.o 2>&1 | FileCheck %s 5 6@x = thread_local global i32 5, align 4, !dbg !0 7 8; CHECK-NOT: error: failed to compute relocation: R_MIPS_TLS_DTPREL 9 10!llvm.dbg.cu = !{!2} 11!llvm.module.flags = !{!7, !8} 12 13!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 14!1 = distinct !DIGlobalVariable(name: "x", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true) 15!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 4.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5) 16!3 = !DIFile(filename: "tls.c", directory: "/tmp") 17!4 = !{} 18!5 = !{!0} 19!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 20!7 = !{i32 2, !"Dwarf Version", i32 4} 21!8 = !{i32 2, !"Debug Info Version", i32 3} 22