From: lkcl Date: Mon, 18 Jan 2021 15:08:15 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~412 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6928c8090b475746f7cefa0c1d90c1ac5ddb6dd;p=libreriscv.git --- diff --git a/openpower/sv/av_opcodes.mdwn b/openpower/sv/av_opcodes.mdwn index 6f279e850..c1ab97bbb 100644 --- a/openpower/sv/av_opcodes.mdwn +++ b/openpower/sv/av_opcodes.mdwn @@ -12,11 +12,17 @@ Links # Summary -In-advance, the summary of operations that need to be added is: +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) | +| signed min | result = (src1 < src2) ? src1 : src2 | +| signed max | result = (src1 > src2) ? src1 : src2 | +| bitwise sel | (a ? b : c) - use bitmanip ternary | + +All other capabilities are achieved with [[sv/svp64]] modes and swizzle. # Audio