projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Steve Tell fixed a nested for-loop bug in the PIC Port
[fw/sdcc]
/
src
/
regression
/
Makefile
diff --git
a/src/regression/Makefile
b/src/regression/Makefile
index 4442d5a33ae4d6d904f5308fd1cc9037d0ae221c..9cf8dae670fbda289c2e33fa7f6950c040d1f59a 100644
(file)
--- a/
src/regression/Makefile
+++ b/
src/regression/Makefile
@@
-1,5
+1,10
@@
# Regression testing Makefile for Pic Port of SDCC
#
# Regression testing Makefile for Pic Port of SDCC
#
+# note that this regression suite was started before
+# the one in sdcc/regression. The regression suite in
+# sdcc/regression is better suited for testing mature
+# ports.
+#
# GPL'd
#
# T. Scott Dattalo scott@dattalo.com
# GPL'd
#
# T. Scott Dattalo scott@dattalo.com
@@
-42,6
+47,8
@@
CC = ../../bin/sdcc
CC = ../../bin/sdcc
+HEADER=/usr/local/share/gpasm/header
+
.SUFFIXES: .asm .c .cod .stc
# Results of the test are placed here:
.SUFFIXES: .asm .c .cod .stc
# Results of the test are placed here:
@@
-56,12
+63,35
@@
SIMULATE = simulate
# List the C files to be test here:
SRC = b.c \
add.c \
# List the C files to be test here:
SRC = b.c \
add.c \
+ add2.c \
+ add3.c \
+ and1.c \
bool1.c \
bool1.c \
+ bool2.c \
+ bool3.c \
call1.c \
compare.c \
compare2.c \
call1.c \
compare.c \
compare2.c \
+ compare3.c \
+ compare4.c \
+ compare5.c \
+ compare6.c \
for.c \
for.c \
- while.c
+ nestfor.c \
+ or1.c \
+ rotate1.c \
+ rotate2.c \
+ rotate3.c \
+ rotate4.c \
+ rotate5.c \
+ struct1.c \
+ sub.c \
+ sub2.c \
+ switch1.c \
+ while.c \
+ xor.c
+
+# mul1.c \
COD := $(patsubst %.c, %.cod, $(SRC))
ASM := $(patsubst %.c, %.asm, $(SRC))
COD := $(patsubst %.c, %.cod, $(SRC))
ASM := $(patsubst %.c, %.asm, $(SRC))
@@
-72,16
+102,17
@@
all: test
# The asm files are generated by sdcc
.c.asm:
# The asm files are generated by sdcc
.c.asm:
- $(CC) -mpic
-c
$*.c
+ $(CC) -mpic
14 -S
$*.c
# The .cod files are generated by gpasm
# these get loaded by gpsim.
.asm.cod:
# The .cod files are generated by gpasm
# these get loaded by gpsim.
.asm.cod:
- gpasm $*.asm
+ gpasm
-c -I $(HEADER)
$*.asm
# The .stc files are script files for gpsim
.cod.stc:
./$(CREATESTC) $*.cod $*.stc
# The .stc files are script files for gpsim
.cod.stc:
./$(CREATESTC) $*.cod $*.stc
+ ./$(SIMULATE) $*.stc $(LOGFILE)
# this will also make .stc files
#%.stc : %.cod
# this will also make .stc files
#%.stc : %.cod
@@
-97,12
+128,6
@@
asm : $(ASM)
stc : $(STC)
test: $(STC)
stc : $(STC)
test: $(STC)
- if [ -n "$(STC)" ]; then \
- stcfiles="$(STC)" ; \
- for f in $$stcfiles ; do \
- ./$(SIMULATE) $$f $(LOGFILE); \
- done ; \
- fi
echo "Done - Results are in $(LOGFILE)"
cleancod:
echo "Done - Results are in $(LOGFILE)"
cleancod: