From: lkcl Date: Tue, 8 Dec 2020 15:07:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~1475 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d10df280ae139a0696e81175e1907711c177e66c;p=libreriscv.git --- diff --git a/openpower/sv/av_opcodes.mdwn b/openpower/sv/av_opcodes.mdwn index f7407a51f..be356aad8 100644 --- a/openpower/sv/av_opcodes.mdwn +++ b/openpower/sv/av_opcodes.mdwn @@ -11,3 +11,34 @@ TODO # Video TODO + +## VSX SIMD + +### vpkpx + +vpkpx is a 32-bit to 16-bit 8888 into 1555 conversion + +### vupkhpx / vupklpx + +these are 16-bit to 32-bit 1555 to 8888 conversion + +### vavgs* + +signed and usigned, 8/16/32: these are all of the form: + + result = truncate((a + b + 1) >> 1)) + +### vabsdu* + +unsigned 8/16/32: these are all of the form: + + result = (src1 > src2) ? truncate(src1-src2) : + truncate(src2-src1) + +### vmaxs* / vmaxu* (and min) + +signed and unsigned, 8/16/32: these are all of the form: + + result = (src1 > src2) ? src1 : src2 # max + result = (src1 < src2) ? src1 : src2 # min +