From d10df280ae139a0696e81175e1907711c177e66c Mon Sep 17 00:00:00 2001 From: lkcl Date: Tue, 8 Dec 2020 15:07:57 +0000 Subject: [PATCH] --- openpower/sv/av_opcodes.mdwn | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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 + -- 2.30.2