[test-suite] r184530 - Add the ability to have Mips specific single and multi source tests.
Reed Kotler
rkotler at mips.com
Thu Jun 20 23:48:44 PDT 2013
Author: rkotler
Date: Fri Jun 21 01:48:43 2013
New Revision: 184530
URL: http://llvm.org/viewvc/llvm-project?rev=184530&view=rev
Log:
Add the ability to have Mips specific single and multi source tests.
Added:
test-suite/trunk/MultiSource/UnitTests/
test-suite/trunk/MultiSource/UnitTests/Makefile
test-suite/trunk/MultiSource/UnitTests/Mips/
test-suite/trunk/MultiSource/UnitTests/Mips/Makefile
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/Makefile
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/Makefile
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_1.c
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_32_1.reference_output
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp32_1.c
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/Makefile
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/do_print.c
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.c
test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.reference_output
test-suite/trunk/SingleSource/UnitTests/Mips/
test-suite/trunk/SingleSource/UnitTests/Mips/Makefile
test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/
test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/Makefile
test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.c
test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.reference_output
test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.c
test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.reference_output
Modified:
test-suite/trunk/MultiSource/Makefile
test-suite/trunk/SingleSource/UnitTests/Makefile
Modified: test-suite/trunk/MultiSource/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Makefile?rev=184530&r1=184529&r2=184530&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Makefile (original)
+++ test-suite/trunk/MultiSource/Makefile Fri Jun 21 01:48:43 2013
@@ -2,4 +2,10 @@
LEVEL = ..
PARALLEL_DIRS := Applications Benchmarks
+# For now only Mips uses UnitTests
+ifeq ($(ARCH),Mips)
+PARALLEL_DIRS += UnitTests
+endif
+
include $(LEVEL)/Makefile.programs
+
Added: test-suite/trunk/MultiSource/UnitTests/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Makefile?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Makefile (added)
+++ test-suite/trunk/MultiSource/UnitTests/Makefile Fri Jun 21 01:48:43 2013
@@ -0,0 +1,13 @@
+# MultiSource/UnitTests Makefile: Build all subdirectories automatically
+
+LEVEL = ../..
+
+PARALLEL_DIRS =
+
+# Add special tests for Mips
+ifeq ($(ARCH),Mips)
+PARALLEL_DIRS += Mips
+endif
+
+include $(LEVEL)/Makefile.config
+include $(LEVEL)/Makefile.programs
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Makefile?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Makefile (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Makefile Fri Jun 21 01:48:43 2013
@@ -0,0 +1,13 @@
+# MultiSource/UnitTests/Mips Makefile: Build all subdirectories automatically
+
+LEVEL = ../../..
+
+PARALLEL_DIRS :=
+
+# Add special tests for Mips
+ifneq (,$(findstring mips16,$(MIPSARCH)))
+PARALLEL_DIRS += Mips16
+endif
+
+include $(LEVEL)/Makefile.config
+include $(LEVEL)/Makefile.programs
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/Makefile?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/Makefile (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/Makefile Fri Jun 21 01:48:43 2013
@@ -0,0 +1,6 @@
+LEVEL = ../../../..
+
+PARALLEL_DIRS += multitest fp16_32_1
+
+
+include $(LEVEL)/Makefile.programs
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/Makefile?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/Makefile (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/Makefile Fri Jun 21 01:48:43 2013
@@ -0,0 +1,5 @@
+LEVEL = ../../../../..
+PROG = fp16_32_1
+CPPFLAGS =
+LDFLAGS =
+include ../../../../Makefile.multisrc
\ No newline at end of file
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_1.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_1.c?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_1.c (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_1.c Fri Jun 21 01:48:43 2013
@@ -0,0 +1,8 @@
+#include <stdio.h>
+extern void foo32(float x);
+
+int __attribute__((mips16)) main() {
+ foo32(4.5678);
+ printf("main \n");
+ return 0;
+}
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_32_1.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_32_1.reference_output?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_32_1.reference_output (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp16_32_1.reference_output Fri Jun 21 01:48:43 2013
@@ -0,0 +1,3 @@
+in foo32: 4.567800
+main
+exit 0
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp32_1.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp32_1.c?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp32_1.c (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/fp16_32_1/fp32_1.c Fri Jun 21 01:48:43 2013
@@ -0,0 +1,4 @@
+#include <stdio.h>
+void __attribute__((nomips16)) foo32(float x) {
+ printf("in foo32: %f \n", x);
+}
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/Makefile?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/Makefile (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/Makefile Fri Jun 21 01:48:43 2013
@@ -0,0 +1,5 @@
+LEVEL = ../../../../..
+PROG = multitest
+CPPFLAGS =
+LDFLAGS =
+include ../../../../Makefile.multisrc
\ No newline at end of file
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/do_print.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/do_print.c?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/do_print.c (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/do_print.c Fri Jun 21 01:48:43 2013
@@ -0,0 +1,4 @@
+#include <stdio.h>
+void do_print() {
+ printf("do print called\n");
+}
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.c?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.c (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.c Fri Jun 21 01:48:43 2013
@@ -0,0 +1,6 @@
+extern void do_print();
+
+int main() {
+ do_print();
+ return 0;
+}
Added: test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.reference_output?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.reference_output (added)
+++ test-suite/trunk/MultiSource/UnitTests/Mips/Mips16/multitest/multitest.reference_output Fri Jun 21 01:48:43 2013
@@ -0,0 +1,2 @@
+do print called
+exit 0
Modified: test-suite/trunk/SingleSource/UnitTests/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Makefile?rev=184530&r1=184529&r2=184530&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Makefile (original)
+++ test-suite/trunk/SingleSource/UnitTests/Makefile Fri Jun 21 01:48:43 2013
@@ -33,5 +33,10 @@ ifneq ($(ARCH),x86_64)
PROGRAMS_TO_SKIP += ms_struct-bitfield-init-1 ms_struct-bitfield-init ms_struct-bitfield ms_struct_pack_layout-1 ms_struct_pack_layout ms_struct-bitfield-1
endif
+# Add special tests for Mips
+ifeq ($(ARCH),Mips)
+DIRS += Mips
+endif
+
LDFLAGS += -lstdc++
include $(LEVEL)/SingleSource/Makefile.singlesrc
Added: test-suite/trunk/SingleSource/UnitTests/Mips/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Mips/Makefile?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Mips/Makefile (added)
+++ test-suite/trunk/SingleSource/UnitTests/Mips/Makefile Fri Jun 21 01:48:43 2013
@@ -0,0 +1,9 @@
+# SingleSource/UnitTests/Mips/Makefile
+LEVEL = ../../..
+
+ifneq (,$(findstring mips16,$(MIPSARCH)))
+PARALLEL_DIRS += Mips16
+endif
+
+include $(LEVEL)/SingleSource/Makefile.singlesrc
+
Added: test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/Makefile?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/Makefile (added)
+++ test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/Makefile Fri Jun 21 01:48:43 2013
@@ -0,0 +1,8 @@
+# SingleSource/UnitTests/Mips/Mips16/Makefile
+
+DIRS =
+LEVEL = ../../../..
+
+
+include $(LEVEL)/SingleSource/Makefile.singlesrc
+
Added: test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.c?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.c (added)
+++ test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.c Fri Jun 21 01:48:43 2013
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+void __attribute__((mips16)) foo (void) {
+ printf("in foo: mips16\n");
+}
+void __attribute__((nomips16)) nofoo (void) {
+ printf("in foo: mips32\n");
+}
+
+int __attribute__((mips16)) main() {
+ foo();
+ nofoo();
+ printf("in main: mips16\n");
+}
+
+
Added: test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.reference_output?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.reference_output (added)
+++ test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/mips16_32_4.reference_output Fri Jun 21 01:48:43 2013
@@ -0,0 +1,4 @@
+in foo: mips16
+in foo: mips32
+in main: mips16
+exit 0
Added: test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.c?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.c (added)
+++ test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.c Fri Jun 21 01:48:43 2013
@@ -0,0 +1,4 @@
+int main() {
+ return 0;
+}
+
Added: test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.reference_output?rev=184530&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.reference_output (added)
+++ test-suite/trunk/SingleSource/UnitTests/Mips/Mips16/test_makefile.reference_output Fri Jun 21 01:48:43 2013
@@ -0,0 +1 @@
+exit 0
More information about the llvm-commits
mailing list