[PATCH] XCore target: add support to build MultiSource/Benchmarks/PAQ8p

robert lytton robert at xmos.com
Thu Feb 13 11:50:28 PST 2014


xcore does not support fork()
Move where the test runs itself multiple times from the binary into the RUNUNDER script.

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

Files:
  MultiSource/Benchmarks/PAQ8p/Makefile
  MultiSource/Benchmarks/PAQ8p/paq8p.cpp

Index: MultiSource/Benchmarks/PAQ8p/Makefile
===================================================================
--- MultiSource/Benchmarks/PAQ8p/Makefile
+++ MultiSource/Benchmarks/PAQ8p/Makefile
@@ -9,4 +9,13 @@
 RUN_OPTIONS = -4 $(PROJ_SRC_DIR)/file1.in
 endif
 
+ifeq ($(ARCH),XCore)
+# XCore must run multiple tests from a script rather than use fork().
+ifdef SMALL_PROBLEM_SIZE
+RUN_OPTIONS = XCORE_FORK -1,$(PROJ_SRC_DIR)/small.in -d,$(PROJ_SRC_DIR)/small.in.paq8p.simple
+else
+RUN_OPTIONS = XCORE_FORK -4,$(PROJ_SRC_DIR)/file1.in -d,$(PROJ_SRC_DIR)/file1.in.paq8p.simple
+endif
+endif
+
 include $(LEVEL)/MultiSource/Makefile.multisrc
Index: MultiSource/Benchmarks/PAQ8p/paq8p.cpp
===================================================================
--- MultiSource/Benchmarks/PAQ8p/paq8p.cpp
+++ MultiSource/Benchmarks/PAQ8p/paq8p.cpp
@@ -4462,7 +4462,7 @@
 
 int main(int argc, char **argv)
 {
-#ifndef LLVM
+#if !defined(LLVM) || defined(__XS1B__)
   return paqmain(argc, argv);
 #else
   int rc = 1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2785.1.patch
Type: text/x-patch
Size: 1021 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/503552e9/attachment.bin>


More information about the llvm-commits mailing list