diff options
author | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-01-24 15:59:50 +0100 |
---|---|---|
committer | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-01-24 17:48:33 +0100 |
commit | 5e0aa63b084d6a99bbb74cfc5ad9852f7746f469 (patch) | |
tree | 868453e12dce593c12fde137d90b52febff17e6e /tests/tcg/mips/user/isa | |
parent | 073d9f2ce051d7a4bad9aa7bfdacf97394c57c05 (diff) |
tests: tcg: mips: Add two new Makefiles
Add Makefiles for two new direcitories.
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Diffstat (limited to 'tests/tcg/mips/user/isa')
-rw-r--r-- | tests/tcg/mips/user/isa/r5900/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/tcg/mips/user/isa/r5900/Makefile b/tests/tcg/mips/user/isa/r5900/Makefile new file mode 100644 index 0000000000..bff360df6c --- /dev/null +++ b/tests/tcg/mips/user/isa/r5900/Makefile @@ -0,0 +1,32 @@ +-include ../../../../config-host.mak + +CROSS=mipsr5900el-unknown-linux-gnu- + +SIM=qemu-mipsel +SIM_FLAGS=-cpu R5900 + +CC = $(CROSS)gcc +CFLAGS = -Wall -mabi=32 -march=r5900 -static + +TESTCASES = test_r5900_div1.tst +TESTCASES += test_r5900_divu1.tst +TESTCASES += test_r5900_madd.tst +TESTCASES += test_r5900_maddu.tst +TESTCASES += test_r5900_mflohi1.tst +TESTCASES += test_r5900_mtlohi1.tst +TESTCASES += test_r5900_mult.tst +TESTCASES += test_r5900_multu.tst + +all: $(TESTCASES) + +%.tst: %.c + $(CC) $(CFLAGS) $< -o $@ + +check: $(TESTCASES) + @for case in $(TESTCASES); do \ + echo $(SIM) $(SIM_FLAGS) ./$$case;\ + $(SIM) $(SIM_FLAGS) ./$$case; \ + done + +clean: + $(RM) -rf $(TESTCASES) |