From ace0e9921491eaeefb1979b9f42aad3fd0cf4ddb Mon Sep 17 00:00:00 2001 From: "Paul A. Clarke" Date: Thu, 30 Apr 2020 20:49:27 -0500 Subject: [PATCH] Add example for vec_permxor `vec_permxor` is complex enough to warrant an example. The table used is very wide. I squeezed it more by changing the names of `index1` and `index2` to `x` and `y`, respectively. Note: The table may still be too wide, as some additional warnings are now generated during `mvn generate-sources`: ``` WARNING: Line 1 of a paragraph overflows the available area by more than 50 points. (See position 1:-1) Apr 30, 2020 8:44:03 PM org.apache.fop.events.LoggingEventListener processEvent WARNING: Line 1 of a paragraph overflows the available area by 468 millipoints. (See position 14259:-1) Apr 30, 2020 8:44:03 PM org.apache.fop.events.LoggingEventListener processEvent ... WARNING: span="inherit" on fo:block, but no explicit value found on the parent FO. ``` Fixes #20. Signed-off-by: Paul A. Clarke --- Intrinsics_Reference/ch_vec_reference.xml | 487 +++++++++++++++++++++- 1 file changed, 483 insertions(+), 4 deletions(-) diff --git a/Intrinsics_Reference/ch_vec_reference.xml b/Intrinsics_Reference/ch_vec_reference.xml index 0dccfd4..46ab8aa 100644 --- a/Intrinsics_Reference/ch_vec_reference.xml +++ b/Intrinsics_Reference/ch_vec_reference.xml @@ -24581,13 +24581,492 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="VIPR.vec-ref"> Result value: For each i (0 ≤ i < 16), let - index1 be bits 0–3 and - index2 be bits 4–7 of byte element + x be bits 0–3 and + y be bits 4–7 of byte element i of c. Byte element i of r - is set to the exclusive-OR of byte elements index1 - of a and index2 + is set to the exclusive-OR of byte elements x + of a and y of b. + An example follows: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a + + + F0 + + + F1 + + + F2 + + + F3 + + + F4 + + + F5 + + + F6 + + + F7 + + + F8 + + + F9 + + + FA + + + FB + + + FC + + + FD + + + FE + + + FF + + + + + b + + + FF + + + EF + + + DF + + + CF + + + BF + + + AF + + + 9F + + + 8F + + + 7F + + + 6F + + + 5F + + + 4F + + + 3F + + + 2F + + + 1F + + + 0F + + + + + c + + + 01 + + + 23 + + + 45 + + + 67 + + + 89 + + + AB + + + CD + + + EF + + + F0 + + + E1 + + + D2 + + + C3 + + + B4 + + + A5 + + + 96 + + + 87 + + + + + x + + + y + + + 0 + + + 1 + + + 2 + + + 3 + + + 4 + + + 5 + + + 6 + + + 7 + + + 8 + + + 9 + + + A + + + B + + + C + + + D + + + E + + + F + + + F + + + 0 + + + E + + + 1 + + + D + + + 2 + + + C + + + 3 + + + B + + + 4 + + + A + + + 5 + + + 9 + + + 6 + + + 8 + + + 7 + + + + + ax + + + by + + + F0 + + + EF + + + F2 + + + CF + + + F4 + + + AF + + + F6 + + + 8F + + + F8 + + + 6F + + + FA + + + 4F + + + FC + + + 2F + + + FE + + + 0F + + + FF + + + FF + + + FE + + + EF + + + FD + + + DF + + + FC + + + CF + + + FB + + + BF + + + FA + + + AF + + + F9 + + + 9F + + + F8 + + + 8F + + + + + r + + + 1F + + + 3D + + + 5B + + + 79 + + + 97 + + + B5 + + + D3 + + + F1 + + + 00 + + + 11 + + + 22 + + + 33 + + + 44 + + + 55 + + + 66 + + + 77 + + + + + + Endian considerations: The element numbering within a register is left-to-right for big-endian targets, and right-to-left for little-endian targets.