diff options
author | eopXD <yueh.ting.chen@gmail.com> | 2021-11-28 15:58:30 +0800 |
---|---|---|
committer | eopXD <yueh.ting.chen@gmail.com> | 2021-11-28 15:58:44 +0800 |
commit | ab7521de6a76be7fc57665998679a7f6ecfafcb9 (patch) | |
tree | b75b930d03232c4c1a41e0af7600d2a765313ef2 /riscv/decode.h | |
parent | f5e5b653d99a2529310eca69b91a49aba02c62cd (diff) | |
download | spike-ab7521de6a76be7fc57665998679a7f6ecfafcb9.zip spike-ab7521de6a76be7fc57665998679a7f6ecfafcb9.tar.gz spike-ab7521de6a76be7fc57665998679a7f6ecfafcb9.tar.bz2 |
Eliminate redundant parameters for narrowing integer right shift instructions
Diffstat (limited to 'riscv/decode.h')
-rw-r--r-- | riscv/decode.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/riscv/decode.h b/riscv/decode.h index 0ed7f37..e709bb4 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -1151,8 +1151,8 @@ VI_LOOP_END } \ VI_LOOP_END -#define VI_VI_LOOP_NSHIFT(BODY, is_vs1) \ - VI_CHECK_SDS(is_vs1); \ +#define VI_VI_LOOP_NSHIFT(BODY) \ + VI_CHECK_SDS(false); \ VI_LOOP_NSHIFT_BASE \ if (sew == e8){ \ VI_NSHIFT_PARAMS(e8, e16) \ @@ -1166,8 +1166,8 @@ VI_LOOP_END } \ VI_LOOP_END -#define VI_VX_LOOP_NSHIFT(BODY, is_vs1) \ - VI_CHECK_SDS(is_vs1); \ +#define VI_VX_LOOP_NSHIFT(BODY) \ + VI_CHECK_SDS(false); \ VI_LOOP_NSHIFT_BASE \ if (sew == e8){ \ VX_NSHIFT_PARAMS(e8, e16) \ @@ -1181,8 +1181,8 @@ VI_LOOP_END } \ VI_LOOP_END -#define VI_VV_LOOP_NSHIFT(BODY, is_vs1) \ - VI_CHECK_SDS(is_vs1); \ +#define VI_VV_LOOP_NSHIFT(BODY) \ + VI_CHECK_SDS(true); \ VI_LOOP_NSHIFT_BASE \ if (sew == e8){ \ VV_NSHIFT_PARAMS(e8, e16) \ |