From b3e24f0f1b341ce04cdf1a30241f07a2b151de5e Mon Sep 17 00:00:00 2001 From: "Paul A. Clarke" Date: Tue, 5 May 2020 12:30:48 -0500 Subject: [PATCH] Add examples for vec_extract_fp32_from_short{h,l} Also added table headers to more clearly indicate element ordering. Fixes #17. Signed-off-by: Paul A. Clarke --- Intrinsics_Reference/ch_vec_reference.xml | 248 ++++++++++++++++++++++ 1 file changed, 248 insertions(+) diff --git a/Intrinsics_Reference/ch_vec_reference.xml b/Intrinsics_Reference/ch_vec_reference.xml index 7fdcff8..06db67d 100644 --- a/Intrinsics_Reference/ch_vec_reference.xml +++ b/Intrinsics_Reference/ch_vec_reference.xml @@ -13388,6 +13388,130 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="VIPR.vec-ref"> interpreted as 16-bit floating-point numbers in IEEE format, and extended to single-precision format, returning a vector with four single-precision IEEE numbers. + An example follows: + + + + + + + + + + + + + + + + + + + halfword index + + + 0 + + + 1 + + + 2 + + + 3 + + + 4 + + + 5 + + + 6 + + + 7 + + + + + word index + + + 0 + + + 1 + + + 2 + + + 3 + + + + + + + a + + + 3800 + (0.5) + + + 4200 + (3.0) + + + 4700 + (7.0) + + + 4B80 + (15.0) + + + 4FC0 + (31.0) + + + 53E0 + (63.0) + + + 57F0 + (127.0) + + + 5BF8 + (255.0) + + + + + r + + + 0.5 + + + 3.0 + + + 7.0 + + + 15.0 + + + + + + + Endian considerations: The element numbering within a register is left-to-right for big-endian targets, and right-to-left for little-endian targets. @@ -13489,6 +13613,130 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="VIPR.vec-ref"> interpreted as 16-bit floating-point numbers in IEEE format, and extended to single-precision format, returning a vector with four single-precision IEEE numbers. + An example follows: + + + + + + + + + + + + + + + + + + + halfword index + + + 0 + + + 1 + + + 2 + + + 3 + + + 4 + + + 5 + + + 6 + + + 7 + + + + + word index + + + 0 + + + 1 + + + 2 + + + 3 + + + + + + + a + + + 3800 + (0.5) + + + 4200 + (3.0) + + + 4700 + (7.0) + + + 4B80 + (15.0) + + + 4FC0 + (31.0) + + + 53E0 + (63.0) + + + 57F0 + (127.0) + + + 5BF8 + (255.0) + + + + + r + + + 31.0 + + + 63.0 + + + 127.0 + + + 255.0 + + + + + + + Endian considerations: The element numbering within a register is left-to-right for big-endian targets, and right-to-left for little-endian targets.