From d7b3d25495d691ab2b7e8b80ca6503eb400a26f0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 8 Apr 2018 01:33:31 +0100 Subject: [PATCH] add P-Ext ISA --- simple_v_extension.mdwn | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/simple_v_extension.mdwn b/simple_v_extension.mdwn index ad8fd3a5d..6ce5586be 100644 --- a/simple_v_extension.mdwn +++ b/simple_v_extension.mdwn @@ -559,15 +559,31 @@ translates effectively to: # P-Ext ISA -| Mnemonic | 16-bit Instruction | -| ------------------ | ------------------------- | -| ADD16 rt, ra, rb | add | -| RADD16 rt, ra, rb | Signed Halving add | -| URADD16 rt, ra, rb | Unsigned Halving add | -| KADD16 rt, ra, rb | Signed Saturating add | -| UKADD16 rt, ra, rb | Unsigned Saturating add | -| SUB16 rt, ra, rb | sub | -| RSUB16 rt, ra, rb | Signed Halving sub | +## 16-bit Arithmetic + +| Mnemonic | 16-bit Instruction | Simple-V Equivalent | +| ------------------ | ------------------------- | ------------------- | +| ADD16 rt, ra, rb | add | RV ADD (bitwidth=16) | +| RADD16 rt, ra, rb | Signed Halving add | | +| URADD16 rt, ra, rb | Unsigned Halving add | | +| KADD16 rt, ra, rb | Signed Saturating add | | +| UKADD16 rt, ra, rb | Unsigned Saturating add | | +| SUB16 rt, ra, rb | sub | RV SUB (bitwidth=16) | +| RSUB16 rt, ra, rb | Signed Halving sub | | +| URSUB16 rt, ra, rb | Unsigned Halving sub | | +| KSUB16 rt, ra, rb | Signed Saturating sub | | +| UKSUB16 rt, ra, rb | Unsigned Saturating sub | | +| CRAS16 rt, ra, rb | Cross Add & Sub | | +| RCRAS16 rt, ra, rb | Signed Halving Cross Add & Sub | | +| URCRAS16 rt, ra, rb| Unsigned Halving Cross Add & Sub | | +| KCRAS16 rt, ra, rb | Signed Saturating Cross Add & Sub | | +| UKCRAS16 rt, ra, rb| Unsigned Saturating Cross Add & Sub | | +| CRSA16 rt, ra, rb | Cross Sub & Add | | +| RCRSA16 rt, ra, rb | Signed Halving Cross Sub & Add | | +| URCRSA16 rt, ra, rb| Unsigned Halving Cross Sub & Add | | +| KCRSA16 rt, ra, rb | Signed Saturating Cross Sub & Add | | +| UKCRSA16 rt, ra, rb| Unsigned Saturating Cross Sub & Add | | + # References -- 2.30.2