From: lkcl Date: Sun, 19 Jun 2022 14:34:50 +0000 (+0100) Subject: (no commit message) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=225082372ac8bf7a16fdcf5cc84e4d521d17646a;p=libreriscv.git --- diff --git a/openpower/sv/av_opcodes.mdwn b/openpower/sv/av_opcodes.mdwn index 1f50c61d5..871fadee7 100644 --- a/openpower/sv/av_opcodes.mdwn +++ b/openpower/sv/av_opcodes.mdwn @@ -17,15 +17,15 @@ Links In-advance, the summary of base scalar operations that need to be added is: -| instruction | pseudocode | -| ------------ | ------------------------ | -| average-add. | result = (src1 + src2 + 1) >> 1 | -| abs-diff | result = abs (src1-src2) | +| instruction | pseudocode | +| ------------ | ------------------------ | +| average-add. | result = (src1 + src2 + 1) >> 1 | +| abs-diff | result = abs (src1-src2) | | abs-accumulate| result += abs (src1, src2) | -| signed min | result = (src1 < src2) ? src1 : src2 use bitmanip | -| signed max | result = (src1 > src2) ? src1 : src2 use bitmanip | -| bitwise sel | (a ? b : c) - use [[sv/bitmanip]] ternary | -| int/fp move | covered by [[sv/int_fp_mv]] | +| (un)signed min| result = (src1 < src2) ? src1 : src2 use bitmanip | +| (un)signed max| result = (src1 > src2) ? src1 : src2 use bitmanip | +| bitwise sel | (a ? b : c) - use [[sv/bitmanip]] ternary | +| int/fp move | covered by [[sv/int_fp_mv]] | All other capabilities (saturate in particular) are achieved with [[sv/svp64]] modes and swizzle. Note that minmax and ternary are added in bitmanip.