(no commit message)
authorlkcl <lkcl@web>
Sun, 13 Dec 2020 18:20:19 +0000 (18:20 +0000)
committerIkiWiki <ikiwiki.info>
Sun, 13 Dec 2020 18:20:19 +0000 (18:20 +0000)
openpower/sv/mv.vec.mdwn

index 84295c18ffba371e5b91128c409664c86fd709bc..72f8c618219e2eb542cdd911a781d5e9d3e13c8a 100644 (file)
@@ -24,3 +24,8 @@ mv.destvec (leaving out elwidths and chop):
         regs[rd+i*SUBVL] = regs[rs+i]
 
 
+# Twin Predication, saturation, swizzle, and elwidth overrides
+
+Note that mv is a twin-predicated operation, and is swizzlable.  This implies that from the vec2, vec3 or vec4, 1 to 8 bytes may be selected and re-ordered (XYZW), mixed with 0 and 1 constants, skipped by way of twin predicate pack and unpack, and a huge amount besides.
+
+Also saturation can be applied to individual elements, including the elements within a vec2/3/4.