From 8ca11d40b32af6b170c7a4f4b36cd823887f7e8f Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Thu, 29 Aug 2019 10:05:43 -0500 Subject: [PATCH] Add versions of vec_ctf that return double. --- Intrinsics_Reference/ch_vec_reference.xml | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/Intrinsics_Reference/ch_vec_reference.xml b/Intrinsics_Reference/ch_vec_reference.xml index 51bb445..a18fcdf 100644 --- a/Intrinsics_Reference/ch_vec_reference.xml +++ b/Intrinsics_Reference/ch_vec_reference.xml @@ -10917,6 +10917,12 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="VIPR.vec-ref"> Endian considerations: None. + Notes: + The example implementations below assume b is zero, so that the scaling code is + omitted. Scaling is accomplished by loading a constant and + multiplying it by the result. + vcfsx @@ -10991,6 +10997,38 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="VIPR.vec-ref"> + + + vector double + + + vector signed long long + + + const int + + + + xvcvsxddp r,a,b + + + + + + vector double + + + vector unsigned long long + + + const int + + + + xvcvuxddp r,a,b + + +