From 11ded409e118a044e33b3ee4f881678b2f637e50 Mon Sep 17 00:00:00 2001 From: lkcl Date: Sat, 5 Oct 2019 06:01:22 +0100 Subject: [PATCH] --- simple_v_extension/vector_ops.mdwn | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/simple_v_extension/vector_ops.mdwn b/simple_v_extension/vector_ops.mdwn index 91ec85677..b6fa7648b 100644 --- a/simple_v_extension/vector_ops.mdwn +++ b/simple_v_extension/vector_ops.mdwn @@ -12,7 +12,7 @@ Examples which can require SUBVL include cross product and may in future involve ## CORDIC -SUBVL=2 +SUBVL=2, vd, vs; SUBVL=1, beta. * CORDIC.lin.rot vd, vs, beta * CORDIC.cir.rot vd, vs, beta @@ -68,6 +68,8 @@ Links: ## Vector cross product +SUBVL=2,3,4 all regs + * VCROSS vd, vs1, vs1 Result is the cross product of x and y, i.e., the resulting components are, in order: @@ -91,6 +93,9 @@ Pseudocode: ## Vector dot product +* SUBVL=1, rd SUBVL=2,3,4 vs1,vs2 +* rd=scalar, SUBVL=default, vs1, vs2=vec + * VDOT rd, vs1, vs2 Computes the dot product of two vectors. Internal accuracy must be @@ -113,6 +118,10 @@ Pseudocode in c: ## Vector length +* rd=scalar, vs1=vec (SUBVL=default) +* rd=scalar, vs1=vec (SUBVL=2,3,4) only 1 +* rd=vec, SUBVL=1; vs1=vec, SUBVL=any + * VLEN rd, vs1 The scalar length of a vector: -- 2.30.2