Skip to content

Commit

Permalink
Add object-emission flag for lit tests. This flag is used
Browse files Browse the repository at this point in the history
to disable following tests for Hexagon that require direct object
generation support.

DebugInfo/dwarf-public-names.ll
DebugInfo/dwarf-version.ll
DebugInfo/member-pointers.ll
DebugInfo/namespace.ll
DebugInfo/two-cus-from-same-file.ll

Fixes bug 15616 - http://llvm.org/bugs/show_bug.cgi?id=15616




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179209 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
JyotsnaVerma committed Apr 10, 2013
1 parent 4b924d3 commit f0ca9a8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/DebugInfo/dwarf-public-names.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
; REQUIRES: object-emission

; RUN: llc -generate-dwarf-pubnames -filetype=obj -o %t.o < %s
; RUN: llvm-dwarfdump -debug-dump=pubnames %t.o | FileCheck %s
; XFAIL: hexagon
; ModuleID = 'dwarf-public-names.cpp'
;
; Generated from:
Expand Down
2 changes: 2 additions & 0 deletions test/DebugInfo/dwarf-version.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
; REQUIRES: object-emission

; RUN: llc -filetype=obj -O0 < %s > %t
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s

Expand Down
2 changes: 2 additions & 0 deletions test/DebugInfo/member-pointers.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
; REQUIRES: object-emission

; RUN: llc -filetype=obj -O0 < %s > %t
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
; CHECK: DW_TAG_ptr_to_member_type
Expand Down
2 changes: 2 additions & 0 deletions test/DebugInfo/namespace.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
; REQUIRES: object-emission

; RUN: llc -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s
; CHECK: debug_info contents
Expand Down
3 changes: 2 additions & 1 deletion test/DebugInfo/two-cus-from-same-file.ll
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
; blow llc up and produces something reasonable.
;

; REQUIRES: object-emission

; RUN: llc %s -o %t -filetype=obj -O0
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s

; XFAIL: hexagon
; ModuleID = 'test.bc'

@str = private unnamed_addr constant [4 x i8] c"FOO\00"
Expand Down
4 changes: 4 additions & 0 deletions test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ if (config.llvm_use_sanitizer == "Memory" or
config.llvm_use_sanitizer == "MemoryWithOrigins"):
config.available_features.add("msan")

# Direct object generation
if not 'hexagon' in config.target_triple:
config.available_features.add("object-emission")

# llc knows whether he is compiled with -DNDEBUG.
import subprocess
try:
Expand Down

0 comments on commit f0ca9a8

Please sign in to comment.