X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FDebugInfo%2FX86%2Ffission-cu.ll;h=e139e3be77f2bfa5da5dfb3439c38eec60c29d08;hb=9a9e73b47d139ecb6bfc3c934352ab7c7ee9af44;hp=bfe2d17e20f1c6c5aa566ea156de8af5539926f4;hpb=72dfb052ab74a9e642256212a50c9b805ce5c943;p=oota-llvm.git diff --git a/test/DebugInfo/X86/fission-cu.ll b/test/DebugInfo/X86/fission-cu.ll index bfe2d17e20f..e139e3be77f 100644 --- a/test/DebugInfo/X86/fission-cu.ll +++ b/test/DebugInfo/X86/fission-cu.ll @@ -1,5 +1,6 @@ ; RUN: llc -split-dwarf=Enable -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t ; RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s +; RUN: llvm-readobj --relocations %t | FileCheck --check-prefix=OBJ %s @a = common global i32 0, align 4 @@ -98,3 +99,14 @@ ; CHECK: 0x00000008: 0000003b ; CHECK: 0x0000000c: 0000005f ; CHECK: 0x00000010: 00000061 + +; Object file checks +; For x86-64-linux we should have this set of relocations for the debug info section +; +; OBJ: .debug_info +; OBJ-NEXT: R_X86_64_32 .debug_abbrev +; OBJ-NEXT: R_X86_64_32 .debug_str +; OBJ-NEXT: R_X86_64_32 .debug_addr +; OBJ-NEXT: R_X86_64_32 .debug_line +; OBJ-NEXT: R_X86_64_32 .debug_str +; OBJ-NEXT: }