diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-03 22:16:00 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-03 22:16:00 -0700 |
commit | 74fa7fbd09701e8a63b616cd9a8f78c23a43cbb3 (patch) | |
tree | c35cfa81fdecb1abf12f20fa9e23c8773838c8fb /isa/Makefile | |
parent | 7b8a00a3fba965bf8d0e332cd6f274503289fa2f (diff) | |
download | riscv-tests-74fa7fbd09701e8a63b616cd9a8f78c23a43cbb3.zip riscv-tests-74fa7fbd09701e8a63b616cd9a8f78c23a43cbb3.tar.gz riscv-tests-74fa7fbd09701e8a63b616cd9a8f78c23a43cbb3.tar.bz2 |
Run RV32 tests on spike with --isa=RV32
Diffstat (limited to 'isa/Makefile')
-rw-r--r-- | isa/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/isa/Makefile b/isa/Makefile index 229a509..e4606d5 100644 --- a/isa/Makefile +++ b/isa/Makefile @@ -40,6 +40,9 @@ vpath %.S $(isa_src_dir) %.out: % $(RISCV_SIM) $< 2> $@ +%.out32: % + $(RISCV_SIM) --isa=RV32 $< 2> $@ + define compile_template $$($(1)_p_tests): $(1)-p-%: $(1)/%.S @@ -94,12 +97,13 @@ $(eval $(call compile_template,rv64mi)) tests_dump = $(addsuffix .dump, $(tests)) tests_hex = $(addsuffix .hex, $(tests)) tests_out = $(addsuffix .out, $(spike_tests)) +tests32_out = $(addsuffix .out32, $(spike32_tests)) -run: $(tests_out) +run: $(tests_out) $(tests32_out) echo; perl -ne 'print " [$$1] $$ARGV \t$$2\n" if /\*{3}(.{8})\*{3}(.*)/' \ - $(tests_out); echo; + $(tests_out) $(tests32_out); echo; -junk += $(tests) $(tests_dump) $(tests_hex) $(tests_out) +junk += $(tests) $(tests_dump) $(tests_hex) $(tests_out) $(tests32_out) #------------------------------------------------------------ # Default |