diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-21 20:48:20 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-21 20:48:25 -0700 |
commit | 24887186b51e00c8042cdfbec46e1f08a9534e45 (patch) | |
tree | 0dba8b20a230a2b98d021fdd633fa91e1c178275 /riscv | |
parent | 61c898734340ac0bad5a106684ba7565f4ee36d3 (diff) | |
download | spike-24887186b51e00c8042cdfbec46e1f08a9534e45.zip spike-24887186b51e00c8042cdfbec46e1f08a9534e45.tar.gz spike-24887186b51e00c8042cdfbec46e1f08a9534e45.tar.bz2 |
rvv: remove duplicated CI_BI macro
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/decode.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/riscv/decode.h b/riscv/decode.h index e3adc37..17c3f6c 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -474,14 +474,6 @@ static inline bool is_aligned(const unsigned val, const unsigned pos) } \ require_vm; \ -#define VI_CHECK_CI_BI(is_vs1) \ - require_noover(insn.rd(), 1, insn.rs2(), P.VU.vflmul); \ - require_align(insn.rs2(), P.VU.vflmul); \ - if (is_vs1) {\ - require_noover(insn.rd(), 1, insn.rs1(), P.VU.vflmul); \ - require_align(insn.rs1(), P.VU.vflmul); \ - } - #define VI_CHECK_MSS(is_vs1) \ require_noover(insn.rd(), 1, insn.rs2(), P.VU.vflmul); \ require_align(insn.rs2(), P.VU.vflmul); \ @@ -1370,7 +1362,7 @@ VI_LOOP_END // carry/borrow bit loop #define VI_VV_LOOP_CARRY(BODY) \ - VI_CHECK_CI_BI(true); \ + VI_CHECK_MSS(true); \ VI_GENERAL_LOOP_BASE \ VI_MASK_VARS \ if (sew == e8){ \ @@ -1389,7 +1381,7 @@ VI_LOOP_END VI_LOOP_END #define VI_XI_LOOP_CARRY(BODY) \ - VI_CHECK_CI_BI(false); \ + VI_CHECK_MSS(false); \ VI_GENERAL_LOOP_BASE \ VI_MASK_VARS \ if (sew == e8){ \ |