aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-05-13 22:10:38 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-05-13 22:10:41 -0700
commit85f930d88656856c780dfc6fd3d9cbfb14c8c0e1 (patch)
tree1ad6bf19a7c1c32cd686bbb94967bfb2e7036d4b
parente792aae0a95f4f4d12f9bcbc7da81db1d912ca8d (diff)
downloadspike-85f930d88656856c780dfc6fd3d9cbfb14c8c0e1.zip
spike-85f930d88656856c780dfc6fd3d9cbfb14c8c0e1.tar.gz
spike-85f930d88656856c780dfc6fd3d9cbfb14c8c0e1.tar.bz2
rvv: amo: fix wrong index eew
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
-rw-r--r--riscv/insns/vamoadde16_v.h2
-rw-r--r--riscv/insns/vamoadde32_v.h2
-rw-r--r--riscv/insns/vamoadde64_v.h2
-rw-r--r--riscv/insns/vamoande16_v.h2
-rw-r--r--riscv/insns/vamoande32_v.h2
-rw-r--r--riscv/insns/vamoande64_v.h2
-rw-r--r--riscv/insns/vamomaxe16_v.h2
-rw-r--r--riscv/insns/vamomaxe32_v.h2
-rw-r--r--riscv/insns/vamomaxe64_v.h2
-rw-r--r--riscv/insns/vamomaxue16_v.h2
-rw-r--r--riscv/insns/vamomaxue32_v.h2
-rw-r--r--riscv/insns/vamomaxue64_v.h2
-rw-r--r--riscv/insns/vamomine16_v.h2
-rw-r--r--riscv/insns/vamomine32_v.h2
-rw-r--r--riscv/insns/vamomine64_v.h2
-rw-r--r--riscv/insns/vamominue16_v.h2
-rw-r--r--riscv/insns/vamominue32_v.h2
-rw-r--r--riscv/insns/vamominue64_v.h2
-rw-r--r--riscv/insns/vamoore16_v.h2
-rw-r--r--riscv/insns/vamoore32_v.h2
-rw-r--r--riscv/insns/vamoore64_v.h2
-rw-r--r--riscv/insns/vamoswape16_v.h2
-rw-r--r--riscv/insns/vamoswape32_v.h2
-rw-r--r--riscv/insns/vamoswape64_v.h2
-rw-r--r--riscv/insns/vamoxore16_v.h2
-rw-r--r--riscv/insns/vamoxore32_v.h2
-rw-r--r--riscv/insns/vamoxore64_v.h2
27 files changed, 27 insertions, 27 deletions
diff --git a/riscv/insns/vamoadde16_v.h b/riscv/insns/vamoadde16_v.h
index 06b8c79..3cb3db7 100644
--- a/riscv/insns/vamoadde16_v.h
+++ b/riscv/insns/vamoadde16_v.h
@@ -1,2 +1,2 @@
//vamoadde.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs + vs3; }, uint, e8);
+VI_AMO({ return lhs + vs3; }, uint, e16);
diff --git a/riscv/insns/vamoadde32_v.h b/riscv/insns/vamoadde32_v.h
index 06b8c79..2bd77fc 100644
--- a/riscv/insns/vamoadde32_v.h
+++ b/riscv/insns/vamoadde32_v.h
@@ -1,2 +1,2 @@
//vamoadde.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs + vs3; }, uint, e8);
+VI_AMO({ return lhs + vs3; }, uint, e32);
diff --git a/riscv/insns/vamoadde64_v.h b/riscv/insns/vamoadde64_v.h
index 06b8c79..79ca748 100644
--- a/riscv/insns/vamoadde64_v.h
+++ b/riscv/insns/vamoadde64_v.h
@@ -1,2 +1,2 @@
//vamoadde.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs + vs3; }, uint, e8);
+VI_AMO({ return lhs + vs3; }, uint, e64);
diff --git a/riscv/insns/vamoande16_v.h b/riscv/insns/vamoande16_v.h
index c47645d..be11949 100644
--- a/riscv/insns/vamoande16_v.h
+++ b/riscv/insns/vamoande16_v.h
@@ -1,2 +1,2 @@
//vamoande.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs & vs3; }, uint, e8);
+VI_AMO({ return lhs & vs3; }, uint, e16);
diff --git a/riscv/insns/vamoande32_v.h b/riscv/insns/vamoande32_v.h
index c47645d..7150670 100644
--- a/riscv/insns/vamoande32_v.h
+++ b/riscv/insns/vamoande32_v.h
@@ -1,2 +1,2 @@
//vamoande.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs & vs3; }, uint, e8);
+VI_AMO({ return lhs & vs3; }, uint, e32);
diff --git a/riscv/insns/vamoande64_v.h b/riscv/insns/vamoande64_v.h
index c47645d..3efae3b 100644
--- a/riscv/insns/vamoande64_v.h
+++ b/riscv/insns/vamoande64_v.h
@@ -1,2 +1,2 @@
//vamoande.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs & vs3; }, uint, e8);
+VI_AMO({ return lhs & vs3; }, uint, e64);
diff --git a/riscv/insns/vamomaxe16_v.h b/riscv/insns/vamomaxe16_v.h
index 9697b3a..ca67893 100644
--- a/riscv/insns/vamomaxe16_v.h
+++ b/riscv/insns/vamomaxe16_v.h
@@ -1,2 +1,2 @@
//vamomaxe.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs >= vs3 ? lhs : vs3; }, int, e8);
+VI_AMO({ return lhs >= vs3 ? lhs : vs3; }, int, e16);
diff --git a/riscv/insns/vamomaxe32_v.h b/riscv/insns/vamomaxe32_v.h
index 9697b3a..b6823cd 100644
--- a/riscv/insns/vamomaxe32_v.h
+++ b/riscv/insns/vamomaxe32_v.h
@@ -1,2 +1,2 @@
//vamomaxe.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs >= vs3 ? lhs : vs3; }, int, e8);
+VI_AMO({ return lhs >= vs3 ? lhs : vs3; }, int, e32);
diff --git a/riscv/insns/vamomaxe64_v.h b/riscv/insns/vamomaxe64_v.h
index 9697b3a..46e8a3b 100644
--- a/riscv/insns/vamomaxe64_v.h
+++ b/riscv/insns/vamomaxe64_v.h
@@ -1,2 +1,2 @@
//vamomaxe.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs >= vs3 ? lhs : vs3; }, int, e8);
+VI_AMO({ return lhs >= vs3 ? lhs : vs3; }, int, e64);
diff --git a/riscv/insns/vamomaxue16_v.h b/riscv/insns/vamomaxue16_v.h
index 357ba24..e05971d 100644
--- a/riscv/insns/vamomaxue16_v.h
+++ b/riscv/insns/vamomaxue16_v.h
@@ -1,2 +1,2 @@
//vamomaxue.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs >= vs3 ? lhs : vs3;; }, uint, e8);
+VI_AMO({ return lhs >= vs3 ? lhs : vs3;; }, uint, e16);
diff --git a/riscv/insns/vamomaxue32_v.h b/riscv/insns/vamomaxue32_v.h
index 357ba24..9b87354 100644
--- a/riscv/insns/vamomaxue32_v.h
+++ b/riscv/insns/vamomaxue32_v.h
@@ -1,2 +1,2 @@
//vamomaxue.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs >= vs3 ? lhs : vs3;; }, uint, e8);
+VI_AMO({ return lhs >= vs3 ? lhs : vs3;; }, uint, e32);
diff --git a/riscv/insns/vamomaxue64_v.h b/riscv/insns/vamomaxue64_v.h
index 357ba24..bbfbc9f 100644
--- a/riscv/insns/vamomaxue64_v.h
+++ b/riscv/insns/vamomaxue64_v.h
@@ -1,2 +1,2 @@
//vamomaxue.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs >= vs3 ? lhs : vs3;; }, uint, e8);
+VI_AMO({ return lhs >= vs3 ? lhs : vs3;; }, uint, e64);
diff --git a/riscv/insns/vamomine16_v.h b/riscv/insns/vamomine16_v.h
index 5c035ea..9d1ecac 100644
--- a/riscv/insns/vamomine16_v.h
+++ b/riscv/insns/vamomine16_v.h
@@ -1,2 +1,2 @@
//vamomine.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs < vs3 ? lhs : vs3; }, int, e8);
+VI_AMO({ return lhs < vs3 ? lhs : vs3; }, int, e16);
diff --git a/riscv/insns/vamomine32_v.h b/riscv/insns/vamomine32_v.h
index 5c035ea..6cb8475 100644
--- a/riscv/insns/vamomine32_v.h
+++ b/riscv/insns/vamomine32_v.h
@@ -1,2 +1,2 @@
//vamomine.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs < vs3 ? lhs : vs3; }, int, e8);
+VI_AMO({ return lhs < vs3 ? lhs : vs3; }, int, e32);
diff --git a/riscv/insns/vamomine64_v.h b/riscv/insns/vamomine64_v.h
index 5c035ea..9ef3d4e 100644
--- a/riscv/insns/vamomine64_v.h
+++ b/riscv/insns/vamomine64_v.h
@@ -1,2 +1,2 @@
//vamomine.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs < vs3 ? lhs : vs3; }, int, e8);
+VI_AMO({ return lhs < vs3 ? lhs : vs3; }, int, e64);
diff --git a/riscv/insns/vamominue16_v.h b/riscv/insns/vamominue16_v.h
index 3749d05..d4a8f89 100644
--- a/riscv/insns/vamominue16_v.h
+++ b/riscv/insns/vamominue16_v.h
@@ -1,2 +1,2 @@
//vamominue.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs < vs3 ? lhs : vs3;; }, uint, e8);
+VI_AMO({ return lhs < vs3 ? lhs : vs3;; }, uint, e16);
diff --git a/riscv/insns/vamominue32_v.h b/riscv/insns/vamominue32_v.h
index 3749d05..16296c5 100644
--- a/riscv/insns/vamominue32_v.h
+++ b/riscv/insns/vamominue32_v.h
@@ -1,2 +1,2 @@
//vamominue.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs < vs3 ? lhs : vs3;; }, uint, e8);
+VI_AMO({ return lhs < vs3 ? lhs : vs3;; }, uint, e32);
diff --git a/riscv/insns/vamominue64_v.h b/riscv/insns/vamominue64_v.h
index 3749d05..fd850fd 100644
--- a/riscv/insns/vamominue64_v.h
+++ b/riscv/insns/vamominue64_v.h
@@ -1,2 +1,2 @@
//vamominue.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs < vs3 ? lhs : vs3;; }, uint, e8);
+VI_AMO({ return lhs < vs3 ? lhs : vs3;; }, uint, e64);
diff --git a/riscv/insns/vamoore16_v.h b/riscv/insns/vamoore16_v.h
index 364035d..a5ba1ca 100644
--- a/riscv/insns/vamoore16_v.h
+++ b/riscv/insns/vamoore16_v.h
@@ -1,2 +1,2 @@
//vamoore.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs | vs3; }, uint, e8);
+VI_AMO({ return lhs | vs3; }, uint, e16);
diff --git a/riscv/insns/vamoore32_v.h b/riscv/insns/vamoore32_v.h
index 364035d..94e4458 100644
--- a/riscv/insns/vamoore32_v.h
+++ b/riscv/insns/vamoore32_v.h
@@ -1,2 +1,2 @@
//vamoore.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs | vs3; }, uint, e8);
+VI_AMO({ return lhs | vs3; }, uint, e32);
diff --git a/riscv/insns/vamoore64_v.h b/riscv/insns/vamoore64_v.h
index 364035d..84e0394 100644
--- a/riscv/insns/vamoore64_v.h
+++ b/riscv/insns/vamoore64_v.h
@@ -1,2 +1,2 @@
//vamoore.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs | vs3; }, uint, e8);
+VI_AMO({ return lhs | vs3; }, uint, e64);
diff --git a/riscv/insns/vamoswape16_v.h b/riscv/insns/vamoswape16_v.h
index af37c8c..31ff021 100644
--- a/riscv/insns/vamoswape16_v.h
+++ b/riscv/insns/vamoswape16_v.h
@@ -1,2 +1,2 @@
//vamoswape.v vd, (rs1), vs2, vd
-VI_AMO({ return vs3; }, uint, e8);
+VI_AMO({ return vs3; }, uint, e16);
diff --git a/riscv/insns/vamoswape32_v.h b/riscv/insns/vamoswape32_v.h
index af37c8c..a574192 100644
--- a/riscv/insns/vamoswape32_v.h
+++ b/riscv/insns/vamoswape32_v.h
@@ -1,2 +1,2 @@
//vamoswape.v vd, (rs1), vs2, vd
-VI_AMO({ return vs3; }, uint, e8);
+VI_AMO({ return vs3; }, uint, e32);
diff --git a/riscv/insns/vamoswape64_v.h b/riscv/insns/vamoswape64_v.h
index af37c8c..58bd035 100644
--- a/riscv/insns/vamoswape64_v.h
+++ b/riscv/insns/vamoswape64_v.h
@@ -1,2 +1,2 @@
//vamoswape.v vd, (rs1), vs2, vd
-VI_AMO({ return vs3; }, uint, e8);
+VI_AMO({ return vs3; }, uint, e64);
diff --git a/riscv/insns/vamoxore16_v.h b/riscv/insns/vamoxore16_v.h
index 4b6c798..61e8c32 100644
--- a/riscv/insns/vamoxore16_v.h
+++ b/riscv/insns/vamoxore16_v.h
@@ -1,2 +1,2 @@
//vamoore.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs ^ vs3; }, uint, e8);
+VI_AMO({ return lhs ^ vs3; }, uint, e16);
diff --git a/riscv/insns/vamoxore32_v.h b/riscv/insns/vamoxore32_v.h
index 4b6c798..d48d951 100644
--- a/riscv/insns/vamoxore32_v.h
+++ b/riscv/insns/vamoxore32_v.h
@@ -1,2 +1,2 @@
//vamoore.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs ^ vs3; }, uint, e8);
+VI_AMO({ return lhs ^ vs3; }, uint, e32);
diff --git a/riscv/insns/vamoxore64_v.h b/riscv/insns/vamoxore64_v.h
index 4b6c798..f7a3ca4 100644
--- a/riscv/insns/vamoxore64_v.h
+++ b/riscv/insns/vamoxore64_v.h
@@ -1,2 +1,2 @@
//vamoore.v vd, (rs1), vs2, vd
-VI_AMO({ return lhs ^ vs3; }, uint, e8);
+VI_AMO({ return lhs ^ vs3; }, uint, e64);