aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2023-04-19 13:29:24 -0700
committerGitHub <noreply@github.com>2023-04-19 13:29:24 -0700
commit1c2d53a3fcf2127c1768e8b1bb9e3f3328bbd8bb (patch)
tree2ec90189e8835b74c80bd587e28199594eac95f7
parent887d02e42124ddc86476dfdf4aad4be8ba7f0aef (diff)
parent396910b869a66cba55b7c09100b2080137ce39fe (diff)
downloadspike-1c2d53a3fcf2127c1768e8b1bb9e3f3328bbd8bb.zip
spike-1c2d53a3fcf2127c1768e8b1bb9e3f3328bbd8bb.tar.gz
spike-1c2d53a3fcf2127c1768e8b1bb9e3f3328bbd8bb.tar.bz2
Merge pull request #1322 from plctlab/plct-vector-fix
Remove unused parameter for macro in v_ext_macro.h
-rw-r--r--riscv/insns/vfncvt_f_f_w.h4
-rw-r--r--riscv/insns/vfncvt_f_x_w.h4
-rw-r--r--riscv/insns/vfncvt_f_xu_w.h4
-rw-r--r--riscv/insns/vfncvt_rod_f_f_w.h4
-rw-r--r--riscv/insns/vfwcvt_f_f_v.h2
-rw-r--r--riscv/insns/vfwcvt_rtz_x_f_v.h2
-rw-r--r--riscv/insns/vfwcvt_rtz_xu_f_v.h2
-rw-r--r--riscv/insns/vfwcvt_x_f_v.h2
-rw-r--r--riscv/insns/vfwcvt_xu_f_v.h2
-rw-r--r--riscv/v_ext_macros.h34
10 files changed, 21 insertions, 39 deletions
diff --git a/riscv/insns/vfncvt_f_f_w.h b/riscv/insns/vfncvt_f_f_w.h
index 40b1051..97de40e 100644
--- a/riscv/insns/vfncvt_f_f_w.h
+++ b/riscv/insns/vfncvt_f_f_w.h
@@ -1,9 +1,7 @@
-// vfncvt.f.f.v vd, vs2, vm
+// vfncvt.f.f.w vd, vs2, vm
VI_VFP_NCVT_FP_TO_FP(
- {;}, // BODY16
{ vd = f32_to_f16(vs2); }, // BODY32
{ vd = f64_to_f32(vs2); }, // BODY64
- {;}, // CHECK16
{ require_extension(EXT_ZVFHMIN); }, // CHECK32
{ require_extension('D'); } // CHECK64
)
diff --git a/riscv/insns/vfncvt_f_x_w.h b/riscv/insns/vfncvt_f_x_w.h
index f05ce6b..46f2d92 100644
--- a/riscv/insns/vfncvt_f_x_w.h
+++ b/riscv/insns/vfncvt_f_x_w.h
@@ -1,9 +1,7 @@
-// vfncvt.f.x.v vd, vs2, vm
+// vfncvt.f.x.w vd, vs2, vm
VI_VFP_NCVT_INT_TO_FP(
- {;}, // BODY16
{ vd = i32_to_f16(vs2); }, // BODY32
{ vd = i64_to_f32(vs2); }, // BODY64
- {;}, // CHECK16
{ require_extension(EXT_ZVFH); }, // CHECK32
{ require_extension('F'); }, // CHECK64
int // sign
diff --git a/riscv/insns/vfncvt_f_xu_w.h b/riscv/insns/vfncvt_f_xu_w.h
index 0b9a4d3..729fb52 100644
--- a/riscv/insns/vfncvt_f_xu_w.h
+++ b/riscv/insns/vfncvt_f_xu_w.h
@@ -1,9 +1,7 @@
-// vfncvt.f.xu.v vd, vs2, vm
+// vfncvt.f.xu.w vd, vs2, vm
VI_VFP_NCVT_INT_TO_FP(
- {;}, // BODY16
{ vd = ui32_to_f16(vs2); }, // BODY32
{ vd = ui64_to_f32(vs2); }, // BODY64
- {;}, // CHECK16
{ require_extension(EXT_ZVFH); }, // CHECK32
{ require_extension('F'); }, // CHECK64
uint // sign
diff --git a/riscv/insns/vfncvt_rod_f_f_w.h b/riscv/insns/vfncvt_rod_f_f_w.h
index dfba6f4..93002dc 100644
--- a/riscv/insns/vfncvt_rod_f_f_w.h
+++ b/riscv/insns/vfncvt_rod_f_f_w.h
@@ -1,6 +1,5 @@
-// vfncvt.rod.f.f.v vd, vs2, vm
+// vfncvt.rod.f.f.w vd, vs2, vm
VI_VFP_NCVT_FP_TO_FP(
- {;}, // BODY16
{ // BODY32
softfloat_roundingMode = softfloat_round_odd;
vd = f32_to_f16(vs2);
@@ -9,7 +8,6 @@ VI_VFP_NCVT_FP_TO_FP(
softfloat_roundingMode = softfloat_round_odd;
vd = f64_to_f32(vs2);
},
- {;}, // CHECK16
{ require_extension(EXT_ZVFH); }, // CHECK32
{ require_extension('F'); } // CHECK64
)
diff --git a/riscv/insns/vfwcvt_f_f_v.h b/riscv/insns/vfwcvt_f_f_v.h
index 9f88c75..111a231 100644
--- a/riscv/insns/vfwcvt_f_f_v.h
+++ b/riscv/insns/vfwcvt_f_f_v.h
@@ -1,9 +1,7 @@
// vfwcvt.f.f.v vd, vs2, vm
VI_VFP_WCVT_FP_TO_FP(
- {;}, // BODY8
{ vd = f16_to_f32(vs2); }, // BODY16
{ vd = f32_to_f64(vs2); }, // BODY32
- {;}, // CHECK8
{ require_extension(EXT_ZVFHMIN); }, // CHECK16
{ require_extension('D'); } // CHECK32
)
diff --git a/riscv/insns/vfwcvt_rtz_x_f_v.h b/riscv/insns/vfwcvt_rtz_x_f_v.h
index f37fc6f..9caf617 100644
--- a/riscv/insns/vfwcvt_rtz_x_f_v.h
+++ b/riscv/insns/vfwcvt_rtz_x_f_v.h
@@ -1,9 +1,7 @@
// vfwcvt.rtz.x.f.v vd, vs2, vm
VI_VFP_WCVT_FP_TO_INT(
- {;}, // BODY8
{ vd = f16_to_i32(vs2, softfloat_round_minMag, true); }, // BODY16
{ vd = f32_to_i64(vs2, softfloat_round_minMag, true); }, // BODY32
- {;}, // CHECK8
{ require_extension(EXT_ZVFH); }, // CHECK16
{ require_extension('F'); }, // CHECK32
int // sign
diff --git a/riscv/insns/vfwcvt_rtz_xu_f_v.h b/riscv/insns/vfwcvt_rtz_xu_f_v.h
index 6293dab..a25d847 100644
--- a/riscv/insns/vfwcvt_rtz_xu_f_v.h
+++ b/riscv/insns/vfwcvt_rtz_xu_f_v.h
@@ -1,9 +1,7 @@
// vfwcvt.rtz,xu.f.v vd, vs2, vm
VI_VFP_WCVT_FP_TO_INT(
- {;}, // BODY8
{ vd = f16_to_ui32(vs2, softfloat_round_minMag, true); }, // BODY16
{ vd = f32_to_ui64(vs2, softfloat_round_minMag, true); }, // BODY32
- {;}, // CHECK8
{ require_extension(EXT_ZVFH); }, // CHECK16
{ require_extension('F'); }, // CHECK32
uint // sign
diff --git a/riscv/insns/vfwcvt_x_f_v.h b/riscv/insns/vfwcvt_x_f_v.h
index 2dc3763..2d536ad 100644
--- a/riscv/insns/vfwcvt_x_f_v.h
+++ b/riscv/insns/vfwcvt_x_f_v.h
@@ -1,9 +1,7 @@
// vfwcvt.x.f.v vd, vs2, vm
VI_VFP_WCVT_FP_TO_INT(
- {;}, // BODY8
{ vd = f16_to_i32(vs2, softfloat_roundingMode, true); }, // BODY16
{ vd = f32_to_i64(vs2, softfloat_roundingMode, true); }, // BODY32
- {;}, // CHECK8
{ require_extension(EXT_ZVFH); }, // CHECK16
{ require_extension('F'); }, // CHECK32
int // sign
diff --git a/riscv/insns/vfwcvt_xu_f_v.h b/riscv/insns/vfwcvt_xu_f_v.h
index aeb02e4..37201f5 100644
--- a/riscv/insns/vfwcvt_xu_f_v.h
+++ b/riscv/insns/vfwcvt_xu_f_v.h
@@ -1,9 +1,7 @@
// vfwcvt.xu.f.v vd, vs2, vm
VI_VFP_WCVT_FP_TO_INT(
- {;}, // BODY8
{ vd = f16_to_ui32(vs2, softfloat_roundingMode, true); }, // BODY16
{ vd = f32_to_ui64(vs2, softfloat_roundingMode, true); }, // BODY32
- {;}, // CHECK8
{ require_extension(EXT_ZVFH); }, // CHECK16
{ require_extension('F'); }, // CHECK32
uint // sign
diff --git a/riscv/v_ext_macros.h b/riscv/v_ext_macros.h
index 3fc0162..0954d22 100644
--- a/riscv/v_ext_macros.h
+++ b/riscv/v_ext_macros.h
@@ -1964,8 +1964,8 @@ reg_t index[P.VU.vlmax]; \
break; \
}
-#define VI_VFP_WCVT_FP_TO_FP(BODY8, BODY16, BODY32, \
- CHECK8, CHECK16, CHECK32) \
+#define VI_VFP_WCVT_FP_TO_FP(BODY16, BODY32, \
+ CHECK16, CHECK32) \
VI_CHECK_DSS(false); \
switch (P.VU.vsew) { \
case e16: \
@@ -1998,8 +1998,8 @@ reg_t index[P.VU.vlmax]; \
break; \
}
-#define VI_VFP_WCVT_FP_TO_INT(BODY8, BODY16, BODY32, \
- CHECK8, CHECK16, CHECK32, \
+#define VI_VFP_WCVT_FP_TO_INT(BODY16, BODY32, \
+ CHECK16, CHECK32, \
sign) \
VI_CHECK_DSS(false); \
switch (P.VU.vsew) { \
@@ -2014,50 +2014,50 @@ reg_t index[P.VU.vlmax]; \
break; \
}
-#define VI_VFP_NCVT_FP_TO_FP(BODY8, BODY16, BODY32, \
- CHECK8, CHECK16, CHECK32) \
+#define VI_VFP_NCVT_FP_TO_FP(BODY32, BODY64, \
+ CHECK32, CHECK64) \
VI_CHECK_SDS(false); \
switch (P.VU.vsew) { \
case e16: \
- { VI_VFP_CVT_LOOP(CVT_FP_TO_FP_PARAMS(32, 16), CHECK16, BODY16); } \
+ { VI_VFP_CVT_LOOP(CVT_FP_TO_FP_PARAMS(32, 16), CHECK32, BODY32); } \
break; \
case e32: \
- { VI_VFP_CVT_LOOP(CVT_FP_TO_FP_PARAMS(64, 32), CHECK32, BODY32); } \
+ { VI_VFP_CVT_LOOP(CVT_FP_TO_FP_PARAMS(64, 32), CHECK64, BODY64); } \
break; \
default: \
require(0); \
break; \
}
-#define VI_VFP_NCVT_INT_TO_FP(BODY8, BODY16, BODY32, \
- CHECK8, CHECK16, CHECK32, \
+#define VI_VFP_NCVT_INT_TO_FP(BODY32, BODY64, \
+ CHECK32, CHECK64, \
sign) \
VI_CHECK_SDS(false); \
switch (P.VU.vsew) { \
case e16: \
- { VI_VFP_CVT_LOOP(CVT_INT_TO_FP_PARAMS(32, 16, sign), CHECK16, BODY16); } \
+ { VI_VFP_CVT_LOOP(CVT_INT_TO_FP_PARAMS(32, 16, sign), CHECK32, BODY32); } \
break; \
case e32: \
- { VI_VFP_CVT_LOOP(CVT_INT_TO_FP_PARAMS(64, 32, sign), CHECK32, BODY32); } \
+ { VI_VFP_CVT_LOOP(CVT_INT_TO_FP_PARAMS(64, 32, sign), CHECK64, BODY64); } \
break; \
default: \
require(0); \
break; \
}
-#define VI_VFP_NCVT_FP_TO_INT(BODY8, BODY16, BODY32, \
- CHECK8, CHECK16, CHECK32, \
+#define VI_VFP_NCVT_FP_TO_INT(BODY16, BODY32, BODY64, \
+ CHECK16, CHECK32, CHECK64, \
sign) \
VI_CHECK_SDS(false); \
switch (P.VU.vsew) { \
case e8: \
- { VI_VFP_CVT_LOOP(CVT_FP_TO_INT_PARAMS(16, 8, sign), CHECK8, BODY8); } \
+ { VI_VFP_CVT_LOOP(CVT_FP_TO_INT_PARAMS(16, 8, sign), CHECK16, BODY16); } \
break; \
case e16: \
- { VI_VFP_CVT_LOOP(CVT_FP_TO_INT_PARAMS(32, 16, sign), CHECK16, BODY16); } \
+ { VI_VFP_CVT_LOOP(CVT_FP_TO_INT_PARAMS(32, 16, sign), CHECK32, BODY32); } \
break; \
case e32: \
- { VI_VFP_CVT_LOOP(CVT_FP_TO_INT_PARAMS(64, 32, sign), CHECK32, BODY32); } \
+ { VI_VFP_CVT_LOOP(CVT_FP_TO_INT_PARAMS(64, 32, sign), CHECK64, BODY64); } \
break; \
default: \
require(0); \