[llvm] r232744 - gold: Make powerpc support optional for the tests.

Peter Collingbourne peter at pcc.me.uk
Thu Mar 19 11:23:32 PDT 2015


Author: pcc
Date: Thu Mar 19 13:23:31 2015
New Revision: 232744

URL: http://llvm.org/viewvc/llvm-project?rev=232744&view=rev
Log:
gold: Make powerpc support optional for the tests.

Differential Revision: http://reviews.llvm.org/D8400

Modified:
    llvm/trunk/test/lit.cfg
    llvm/trunk/test/tools/gold/mtriple.ll

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=232744&r1=232743&r2=232744&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Thu Mar 19 13:23:31 2015
@@ -354,8 +354,10 @@ def have_ld_plugin_support():
     if len(fields) != 3:
         return False
     emulations = fields[2].split()
-    if 'elf32ppc' not in emulations or 'elf_x86_64' not in emulations:
+    if 'elf_x86_64' not in emulations:
         return False
+    if 'elf32ppc' in emulations:
+        config.available_features.add('ld_emu_elf32ppc')
 
     ld_version = subprocess.Popen([config.gold_executable, '--version'], stdout = subprocess.PIPE)
     if not 'GNU gold' in ld_version.stdout.read().decode():

Modified: llvm/trunk/test/tools/gold/mtriple.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/mtriple.ll?rev=232744&r1=232743&r2=232744&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/mtriple.ll (original)
+++ llvm/trunk/test/tools/gold/mtriple.ll Thu Mar 19 13:23:31 2015
@@ -1,3 +1,5 @@
+; REQUIRES: ld_emu_elf32ppc
+
 ; RUN: llvm-as %s -o %t.o
 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -m elf32ppc \
 ; RUN:    -plugin-opt=mtriple=powerpc-linux-gnu \





More information about the llvm-commits mailing list