summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--src/Makefile4
-rw-r--r--test/_alt.ssa (renamed from src/test/_alt.ssa)0
-rw-r--r--test/_dragon.ssa (renamed from src/test/_dragon.ssa)0
-rw-r--r--test/_fix1.ssa (renamed from src/test/_fix1.ssa)0
-rw-r--r--test/_fix2.ssa (renamed from src/test/_fix2.ssa)0
-rw-r--r--test/_fix3.ssa (renamed from src/test/_fix3.ssa)0
-rw-r--r--test/_fix4.ssa (renamed from src/test/_fix4.ssa)0
-rw-r--r--test/_live.ssa (renamed from src/test/_live.ssa)0
-rw-r--r--test/_rpo.ssa (renamed from src/test/_rpo.ssa)0
-rw-r--r--test/_spill1.ssa (renamed from src/test/_spill1.ssa)0
-rw-r--r--test/_spill2.ssa (renamed from src/test/_spill2.ssa)0
-rw-r--r--test/_spill3.ssa (renamed from src/test/_spill3.ssa)0
-rw-r--r--test/abi1.ssa (renamed from src/test/abi1.ssa)0
-rw-r--r--test/abi2.ssa (renamed from src/test/abi2.ssa)0
-rw-r--r--test/abi3.ssa (renamed from src/test/abi3.ssa)0
-rw-r--r--test/abi4.ssa (renamed from src/test/abi4.ssa)0
-rw-r--r--test/abi5.ssa (renamed from src/test/abi5.ssa)0
-rw-r--r--test/align.ssa (renamed from src/test/align.ssa)0
-rw-r--r--test/collatz.ssa (renamed from src/test/collatz.ssa)0
-rw-r--r--test/cprime.ssa (renamed from src/test/cprime.ssa)0
-rw-r--r--test/cup.ssa (renamed from src/test/cup.ssa)0
-rw-r--r--test/dark.ssa (renamed from src/test/dark.ssa)0
-rw-r--r--test/double.ssa (renamed from src/test/double.ssa)0
-rw-r--r--test/echo.ssa (renamed from src/test/echo.ssa)0
-rw-r--r--test/eucl.ssa (renamed from src/test/eucl.ssa)0
-rw-r--r--test/euclc.ssa (renamed from src/test/euclc.ssa)0
-rw-r--r--test/fpcnv.ssa (renamed from src/test/fpcnv.ssa)0
-rwxr-xr-xtest/go.sh (renamed from src/test/go.sh)4
-rw-r--r--test/loop.ssa (renamed from src/test/loop.ssa)0
-rw-r--r--test/mandel.ssa (renamed from src/test/mandel.ssa)0
-rw-r--r--test/max.ssa (renamed from src/test/max.ssa)0
-rw-r--r--test/prime.ssa (renamed from src/test/prime.ssa)0
-rw-r--r--test/puts10.ssa (renamed from src/test/puts10.ssa)0
-rw-r--r--test/sum.ssa (renamed from src/test/sum.ssa)0
35 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b49f0cc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+.PHONY: all check
+all:
+	@make -C src
+check: all
+	test/go.sh all
diff --git a/src/Makefile b/src/Makefile
index 9f13008..1c0c4c7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -18,7 +18,7 @@ config.h:
 .PHONY: clean check syndoc
 clean:
 	rm -f $(BIN) $(OBJ)
-check: $(BIN)
-	test/go.sh all
+check:
+	make -C .. check
 syndoc:
 	unison -auto doc ssh://qcar@h/data/d/ssa-doc
diff --git a/src/test/_alt.ssa b/test/_alt.ssa
index 3f89e5e..3f89e5e 100644
--- a/src/test/_alt.ssa
+++ b/test/_alt.ssa
diff --git a/src/test/_dragon.ssa b/test/_dragon.ssa
index b169e1b..b169e1b 100644
--- a/src/test/_dragon.ssa
+++ b/test/_dragon.ssa
diff --git a/src/test/_fix1.ssa b/test/_fix1.ssa
index e89307f..e89307f 100644
--- a/src/test/_fix1.ssa
+++ b/test/_fix1.ssa
diff --git a/src/test/_fix2.ssa b/test/_fix2.ssa
index 89f236d..89f236d 100644
--- a/src/test/_fix2.ssa
+++ b/test/_fix2.ssa
diff --git a/src/test/_fix3.ssa b/test/_fix3.ssa
index 283e5a1..283e5a1 100644
--- a/src/test/_fix3.ssa
+++ b/test/_fix3.ssa
diff --git a/src/test/_fix4.ssa b/test/_fix4.ssa
index 181768d..181768d 100644
--- a/src/test/_fix4.ssa
+++ b/test/_fix4.ssa
diff --git a/src/test/_live.ssa b/test/_live.ssa
index fce4cb9..fce4cb9 100644
--- a/src/test/_live.ssa
+++ b/test/_live.ssa
diff --git a/src/test/_rpo.ssa b/test/_rpo.ssa
index a10c6b1..a10c6b1 100644
--- a/src/test/_rpo.ssa
+++ b/test/_rpo.ssa
diff --git a/src/test/_spill1.ssa b/test/_spill1.ssa
index df5e4c2..df5e4c2 100644
--- a/src/test/_spill1.ssa
+++ b/test/_spill1.ssa
diff --git a/src/test/_spill2.ssa b/test/_spill2.ssa
index d462d0b..d462d0b 100644
--- a/src/test/_spill2.ssa
+++ b/test/_spill2.ssa
diff --git a/src/test/_spill3.ssa b/test/_spill3.ssa
index cdfda2d..cdfda2d 100644
--- a/src/test/_spill3.ssa
+++ b/test/_spill3.ssa
diff --git a/src/test/abi1.ssa b/test/abi1.ssa
index 69cce44..69cce44 100644
--- a/src/test/abi1.ssa
+++ b/test/abi1.ssa
diff --git a/src/test/abi2.ssa b/test/abi2.ssa
index b82c80c..b82c80c 100644
--- a/src/test/abi2.ssa
+++ b/test/abi2.ssa
diff --git a/src/test/abi3.ssa b/test/abi3.ssa
index 608d1db..608d1db 100644
--- a/src/test/abi3.ssa
+++ b/test/abi3.ssa
diff --git a/src/test/abi4.ssa b/test/abi4.ssa
index 4c3d89b..4c3d89b 100644
--- a/src/test/abi4.ssa
+++ b/test/abi4.ssa
diff --git a/src/test/abi5.ssa b/test/abi5.ssa
index 4c5eaea..4c5eaea 100644
--- a/src/test/abi5.ssa
+++ b/test/abi5.ssa
diff --git a/src/test/align.ssa b/test/align.ssa
index 84d1fb9..84d1fb9 100644
--- a/src/test/align.ssa
+++ b/test/align.ssa
diff --git a/src/test/collatz.ssa b/test/collatz.ssa
index 373ecac..373ecac 100644
--- a/src/test/collatz.ssa
+++ b/test/collatz.ssa
diff --git a/src/test/cprime.ssa b/test/cprime.ssa
index 1ca60e1..1ca60e1 100644
--- a/src/test/cprime.ssa
+++ b/test/cprime.ssa
diff --git a/src/test/cup.ssa b/test/cup.ssa
index 013394f..013394f 100644
--- a/src/test/cup.ssa
+++ b/test/cup.ssa
diff --git a/src/test/dark.ssa b/test/dark.ssa
index 5046af3..5046af3 100644
--- a/src/test/dark.ssa
+++ b/test/dark.ssa
diff --git a/src/test/double.ssa b/test/double.ssa
index d885d28..d885d28 100644
--- a/src/test/double.ssa
+++ b/test/double.ssa
diff --git a/src/test/echo.ssa b/test/echo.ssa
index d3c8a25..d3c8a25 100644
--- a/src/test/echo.ssa
+++ b/test/echo.ssa
diff --git a/src/test/eucl.ssa b/test/eucl.ssa
index f50fd2c..f50fd2c 100644
--- a/src/test/eucl.ssa
+++ b/test/eucl.ssa
diff --git a/src/test/euclc.ssa b/test/euclc.ssa
index c76db2f..c76db2f 100644
--- a/src/test/euclc.ssa
+++ b/test/euclc.ssa
diff --git a/src/test/fpcnv.ssa b/test/fpcnv.ssa
index 5fd3be9..5fd3be9 100644
--- a/src/test/fpcnv.ssa
+++ b/test/fpcnv.ssa
diff --git a/src/test/go.sh b/test/go.sh
index 696f690..7bc795f 100755
--- a/src/test/go.sh
+++ b/test/go.sh
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+QBE=`readlink -f $0 | xargs dirname`/../src/qbe
+
 TMP=/tmp/qbe.zzzz
 
 DRV=$TMP.c
@@ -41,7 +43,7 @@ once() {
 
 	echo "$T... "
 
-	if ! ./qbe -o $ASM $T
+	if ! $QBE -o $ASM $T
 	then
 		echo "[qbe fail]"
 		return 1
diff --git a/src/test/loop.ssa b/test/loop.ssa
index c8c4ee0..c8c4ee0 100644
--- a/src/test/loop.ssa
+++ b/test/loop.ssa
diff --git a/src/test/mandel.ssa b/test/mandel.ssa
index efefeb3..efefeb3 100644
--- a/src/test/mandel.ssa
+++ b/test/mandel.ssa
diff --git a/src/test/max.ssa b/test/max.ssa
index 547e9d4..547e9d4 100644
--- a/src/test/max.ssa
+++ b/test/max.ssa
diff --git a/src/test/prime.ssa b/test/prime.ssa
index 12d0273..12d0273 100644
--- a/src/test/prime.ssa
+++ b/test/prime.ssa
diff --git a/src/test/puts10.ssa b/test/puts10.ssa
index 1dcf227..1dcf227 100644
--- a/src/test/puts10.ssa
+++ b/test/puts10.ssa
diff --git a/src/test/sum.ssa b/test/sum.ssa
index 266054e..266054e 100644
--- a/src/test/sum.ssa
+++ b/test/sum.ssa