[llvm] r179209 - Add object-emission flag for lit tests. This flag is used

Jyotsna Verma jverma at codeaurora.org
Wed Apr 10 12:53:26 PDT 2013


Author: jverma
Date: Wed Apr 10 14:53:26 2013
New Revision: 179209

URL: http://llvm.org/viewvc/llvm-project?rev=179209&view=rev
Log:
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



Modified:
    llvm/trunk/test/DebugInfo/dwarf-public-names.ll
    llvm/trunk/test/DebugInfo/dwarf-version.ll
    llvm/trunk/test/DebugInfo/member-pointers.ll
    llvm/trunk/test/DebugInfo/namespace.ll
    llvm/trunk/test/DebugInfo/two-cus-from-same-file.ll
    llvm/trunk/test/lit.cfg

Modified: llvm/trunk/test/DebugInfo/dwarf-public-names.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/dwarf-public-names.ll?rev=179209&r1=179208&r2=179209&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/dwarf-public-names.ll (original)
+++ llvm/trunk/test/DebugInfo/dwarf-public-names.ll Wed Apr 10 14:53:26 2013
@@ -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:

Modified: llvm/trunk/test/DebugInfo/dwarf-version.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/dwarf-version.ll?rev=179209&r1=179208&r2=179209&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/dwarf-version.ll (original)
+++ llvm/trunk/test/DebugInfo/dwarf-version.ll Wed Apr 10 14:53:26 2013
@@ -1,3 +1,5 @@
+; REQUIRES: object-emission
+
 ; RUN: llc -filetype=obj -O0 < %s > %t
 ; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
 

Modified: llvm/trunk/test/DebugInfo/member-pointers.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/member-pointers.ll?rev=179209&r1=179208&r2=179209&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/member-pointers.ll (original)
+++ llvm/trunk/test/DebugInfo/member-pointers.ll Wed Apr 10 14:53:26 2013
@@ -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

Modified: llvm/trunk/test/DebugInfo/namespace.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/namespace.ll?rev=179209&r1=179208&r2=179209&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/namespace.ll (original)
+++ llvm/trunk/test/DebugInfo/namespace.ll Wed Apr 10 14:53:26 2013
@@ -1,3 +1,5 @@
+; REQUIRES: object-emission
+
 ; RUN: llc -O0 -filetype=obj < %s > %t
 ; RUN: llvm-dwarfdump %t | FileCheck %s
 ; CHECK: debug_info contents

Modified: llvm/trunk/test/DebugInfo/two-cus-from-same-file.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/two-cus-from-same-file.ll?rev=179209&r1=179208&r2=179209&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/two-cus-from-same-file.ll (original)
+++ llvm/trunk/test/DebugInfo/two-cus-from-same-file.ll Wed Apr 10 14:53:26 2013
@@ -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"

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=179209&r1=179208&r2=179209&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Wed Apr 10 14:53:26 2013
@@ -273,6 +273,10 @@ if (config.llvm_use_sanitizer == "Memory
         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:





More information about the llvm-commits mailing list