summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: