summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJyotsna Verma <jverma@codeaurora.org>2013-04-10 19:53:26 +0000
committerJyotsna Verma <jverma@codeaurora.org>2013-04-10 19:53:26 +0000
commitf0ca9a8c94dafe795d5141e862ded156d6c6cd66 (patch)
tree6e3a0f4fa88cfaa779fd166714183c24f40dd8b8
parent4b924d3a61442fb70773057d40789ed1e3187a77 (diff)
Add object-emission flag for lit tests. This flag is used
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
-rw-r--r--test/DebugInfo/dwarf-public-names.ll3
-rw-r--r--test/DebugInfo/dwarf-version.ll2
-rw-r--r--test/DebugInfo/member-pointers.ll2
-rw-r--r--test/DebugInfo/namespace.ll2
-rw-r--r--test/DebugInfo/two-cus-from-same-file.ll3
-rw-r--r--test/lit.cfg4
6 files changed, 14 insertions, 2 deletions
diff --git a/test/DebugInfo/dwarf-public-names.ll b/test/DebugInfo/dwarf-public-names.ll
index 52b2397714e..ec07c232faf 100644
--- a/test/DebugInfo/dwarf-public-names.ll
+++ b/test/DebugInfo/dwarf-public-names.ll
@@ -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:
diff --git a/test/DebugInfo/dwarf-version.ll b/test/DebugInfo/dwarf-version.ll
index 4e00dee0018..327a306e3dc 100644
--- a/test/DebugInfo/dwarf-version.ll
+++ b/test/DebugInfo/dwarf-version.ll
@@ -1,3 +1,5 @@
+; REQUIRES: object-emission
+
; RUN: llc -filetype=obj -O0 < %s > %t
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
diff --git a/test/DebugInfo/member-pointers.ll b/test/DebugInfo/member-pointers.ll
index 4b77189563f..42898659042 100644
--- a/test/DebugInfo/member-pointers.ll
+++ b/test/DebugInfo/member-pointers.ll
@@ -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
diff --git a/test/DebugInfo/namespace.ll b/test/DebugInfo/namespace.ll
index 8d59b523028..4ca777c3e5d 100644
--- a/test/DebugInfo/namespace.ll
+++ b/test/DebugInfo/namespace.ll
@@ -1,3 +1,5 @@
+; REQUIRES: object-emission
+
; RUN: llc -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s
; CHECK: debug_info contents
diff --git a/test/DebugInfo/two-cus-from-same-file.ll b/test/DebugInfo/two-cus-from-same-file.ll
index 58671d59f74..784df8d25b4 100644
--- a/test/DebugInfo/two-cus-from-same-file.ll
+++ b/test/DebugInfo/two-cus-from-same-file.ll
@@ -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"
diff --git a/test/lit.cfg b/test/lit.cfg
index a7163871427..ac18e50d99f 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -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: