From 9f461ad5839be62897d91a57da46a1eb55ce2543 Mon Sep 17 00:00:00 2001
From: Stefan Mach <33124232+stmach@users.noreply.github.com>
Date: Fri, 12 Jul 2019 16:39:40 +0200
Subject: [PATCH] ci: Add mul and fp tests  (#278)

* :wrench: Add mul and fp tests to CI

* :wrench: Split RVF and RVD tests in CI
---
 .travis.yml | 35 +++++++++++++++++++++++++++++++++++
 Makefile    |  4 ++++
 2 files changed, 39 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index acf74914..0ce542aa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -131,6 +131,20 @@ jobs:
         - ci/build-riscv-tests.sh
         - make -j${NUM_JOBS} run-mul-verilator defines=WB_DCACHE
 
+    # rv64ud-*-* tests
+    - stage: test
+      name: run fp64 tests (Write-Back Cache)
+      script:
+        - ci/build-riscv-tests.sh
+        - make -j${NUM_JOBS} run-fp-d-verilator defines=WB_DCACHE
+
+    # rv64uf-*-* tests
+    - stage: test
+      name: run fp32 tests (Write-Back Cache)
+      script:
+        - ci/build-riscv-tests.sh
+        - make -j${NUM_JOBS} run-fp-f-verilator defines=WB_DCACHE
+
     # amo tests
     # rv64ua-v-* tests
     - stage: test
@@ -193,6 +207,27 @@ jobs:
         - ci/build-riscv-tests.sh
         - make -j${NUM_JOBS} run-asm-tests6-verilator defines=WT_DCACHE
 
+    # rv64um-*-* tests
+    - stage: test
+      name: run mul tests (Write-through Cache)
+      script:
+        - ci/build-riscv-tests.sh
+        - make -j${NUM_JOBS} run-mul-verilator defines=WT_DCACHE
+
+    # rv64ud-*-* tests
+    - stage: test
+      name: run fp64 tests (Write-through Cache)
+      script:
+        - ci/build-riscv-tests.sh
+        - make -j${NUM_JOBS} run-fp-d-verilator defines=WT_DCACHE
+
+    # rv64uf-*-* tests
+    - stage: test
+      name: run fp32 tests (Write-through Cache)
+      script:
+        - ci/build-riscv-tests.sh
+        - make -j${NUM_JOBS} run-fp-f-verilator defines=WT_DCACHE
+
     # amo tests
     # rv64ua-v-* tests
     - stage: test
diff --git a/Makefile b/Makefile
index 01bc3d9f..b4ed476c 100644
--- a/Makefile
+++ b/Makefile
@@ -435,6 +435,10 @@ run-mul-verilator: $(addsuffix -verilator, $(riscv-mul-tests))
 
 run-fp-verilator: $(addsuffix -verilator, $(riscv-fp-tests))
 
+run-fp-d-verilator: $(addsuffix -verilator, $(filter rv64ud%, $(riscv-fp-tests)))
+
+run-fp-f-verilator: $(addsuffix -verilator, $(filter rv64uf%, $(riscv-fp-tests)))
+
 run-benchmarks-verilator: $(addsuffix -verilator,$(riscv-benchmarks))
 
 # torture-specific
-- 
GitLab