(no commit message)
authorcand@51b69dee28eeccfe0f04790433b843689895c6e3 <cand@web>
Sat, 12 Dec 2020 17:15:44 +0000 (17:15 +0000)
committerIkiWiki <ikiwiki.info>
Sat, 12 Dec 2020 17:15:44 +0000 (17:15 +0000)
openpower/sv/svp_rewrite/svp64/discussion.mdwn

index 0bb8fc2e579b049ab2bddc4d75baefc7ab2ee940..a5f9672ed127142e93875f002d3a3af269e5d217 100644 (file)
@@ -89,6 +89,9 @@ Some examples on different operation widths:
     u8 * u8 = u16
     255 * 2 = 510 # if we used the smaller width, we'd get 254. Wrong
 
+    u16 + u16 = u8
+    256 + 2 = 2 # this is correct whether we use the larger or smaller width - hw can optimize addition
+
 # Notes about rounding, clamp and saturate
 
 One of the issues with vector ops is that in integer DSP ops for example in Audio the operation must clamp or saturate rather than overflow or ignore the upper bits and become a modulo operation.  This for Audio is extremely important, also to provide an indicator as to whether saturation occurred.  see  [[av_opcodes]].