[PATCH] XCore target: skip tests xcore can't run

robert lytton robert at xmos.com
Thu Feb 13 11:57:04 PST 2014


http://llvm-reviews.chandlerc.com/D2790

Files:
  MultiSource/Applications/Makefile
  MultiSource/Benchmarks/Makefile
  MultiSource/Benchmarks/MiBench/Makefile
  MultiSource/Benchmarks/Prolangs-C/Makefile
  SingleSource/Benchmarks/Misc-C++/Large/Makefile
  SingleSource/UnitTests/Makefile
  SingleSource/UnitTests/Threads/Makefile

Index: MultiSource/Applications/Makefile
===================================================================
--- MultiSource/Applications/Makefile
+++ MultiSource/Applications/Makefile
@@ -31,4 +31,12 @@
 PARALLEL_DIRS := $(filter-out hexxagon, $(PARALLEL_DIRS))
 endif
 
+ifeq ($(ARCH),XCore)
+# xcore does not support many file & dir operations
+PARALLEL_DIRS := $(filter-out siod, $(PARALLEL_DIRS))
+PARALLEL_DIRS := $(filter-out ClamAV, $(PARALLEL_DIRS))
+PARALLEL_DIRS := $(filter-out sqlite3, $(PARALLEL_DIRS))
+PARALLEL_DIRS := $(filter-out obsequi, $(PARALLEL_DIRS))
+endif
+
 include $(LEVEL)/Makefile.programs
Index: MultiSource/Benchmarks/Makefile
===================================================================
--- MultiSource/Benchmarks/Makefile
+++ MultiSource/Benchmarks/Makefile
@@ -27,4 +27,9 @@
 		mafft
 endif
 
+ifeq ($(ARCH),XCore)
+# XCore does not support pthreads
+PARALLEL_DIRS := $(filter-out 7zip, $(PARALLEL_DIRS))
+endif
+
 include $(LEVEL)/MultiSource/Makefile.multisrc
Index: MultiSource/Benchmarks/MiBench/Makefile
===================================================================
--- MultiSource/Benchmarks/MiBench/Makefile
+++ MultiSource/Benchmarks/MiBench/Makefile
@@ -29,4 +29,10 @@
   PARALLEL_DIRS := $(filter-out office-ispell, $(PARALLEL_DIRS))
 endif
 
+ifeq ($(ARCH),XCore)
+  # xcore does not support sockets or sgtty
+  PARALLEL_DIRS := $(filter-out consumer-lame, $(PARALLEL_DIRS))
+  PARALLEL_DIRS := $(filter-out office-ispell, $(PARALLEL_DIRS))
+endif
+
 include $(LEVEL)/Makefile.programs
Index: MultiSource/Benchmarks/Prolangs-C/Makefile
===================================================================
--- MultiSource/Benchmarks/Prolangs-C/Makefile
+++ MultiSource/Benchmarks/Prolangs-C/Makefile
@@ -16,5 +16,10 @@
 PARALLEL_DIRS := $(filter-out bison, $(PARALLEL_DIRS))
 endif
 
+ifeq ($(ARCH),XCore)
+# xcore does not support sockets or forking (popen)
+PARALLEL_DIRS := $(filter-out archie-client, $(PARALLEL_DIRS))
+PARALLEL_DIRS := $(filter-out unix-smail, $(PARALLEL_DIRS))
+endif
 
 include $(LEVEL)/Makefile.programs
Index: SingleSource/Benchmarks/Misc-C++/Large/Makefile
===================================================================
--- SingleSource/Benchmarks/Misc-C++/Large/Makefile
+++ SingleSource/Benchmarks/Misc-C++/Large/Makefile
@@ -4,4 +4,9 @@
 FP_ABSTOLERANCE := 0.01
 HASH_PROGRAM_OUTPUT := 1
 
+ifeq ($(ARCH),XCore)
+# XCore diffs output on 3 of the 65536 numbers
+PROGRAMS_TO_SKIP := sphereflake
+endif
+
 include $(LEVEL)/SingleSource/Makefile.singlesrc
Index: SingleSource/UnitTests/Makefile
===================================================================
--- SingleSource/UnitTests/Makefile
+++ SingleSource/UnitTests/Makefile
@@ -38,5 +38,14 @@
 DIRS += Mips
 endif
 
+ifeq ($(ARCH),XCore)
+# XCore does not support atomic read/write
+PROGRAMS_TO_SKIP += AtomicOps
+# XCore can't compile a branch to '0' when using a large memory map
+PROGRAMS_TO_SKIP += 2007-04-25-weak
+# XCore does not support init_priority attribute
+PROGRAMS_TO_SKIP += initp1
+endif
+
 LDFLAGS += -lstdc++
 include $(LEVEL)/SingleSource/Makefile.singlesrc
Index: SingleSource/UnitTests/Threads/Makefile
===================================================================
--- SingleSource/UnitTests/Threads/Makefile
+++ SingleSource/UnitTests/Threads/Makefile
@@ -2,7 +2,13 @@
 LEVEL = ../../..
 
 include $(LEVEL)/Makefile.config
+
+# xcore does not support pthreads
+ifneq ($(ARCH),XCore)
 LDFLAGS += -lpthread
+else
+PROGRAMS_TO_SKIP := tls
+endif
 
 # Darwin doesn't support tls.
 ifeq ($(TARGET_OS),Darwin)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2790.1.patch
Type: text/x-patch
Size: 3581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/35c7ef3a/attachment.bin>


More information about the llvm-commits mailing list