Floating-point complex add with rotate (predicated).
Add the real and imaginary components of the active floating-point complex numbers from the first source vector to the complex numbers from the second source vector which have first been rotated by 90 or 270 degrees in the direction from the positive real axis towards the positive imaginary axis, when considered in polar representation, equivalent to multiplying the complex numbers in the second source vector by ±j beforehand. Destructively place the results in the corresponding elements of the first source vector. Inactive elements in the destination vector register remain unmodified.
Each complex number is represented in a vector register as an even/odd pair of elements with the real part in the even-numbered element and the imaginary part in the odd-numbered element.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | size | 0 | 0 | 0 | 0 | 0 | rot | 1 | 0 | 0 | Pg | Zm | Zdn |
if size == '00' then UnallocatedEncoding(); integer esize = 8 << UInt(size); integer g = UInt(Pg); integer dn = UInt(Zdn); integer m = UInt(Zm); boolean neg_imag = (rot == '1');
<Zdn> |
Is the name of the first source and destination scalable vector register, encoded in the "Zdn" field. |
<T> |
Is the size specifier,
encoded in
size:
|
<Pg> |
Is the name of the governing scalable predicate register P0-P7, encoded in the "Pg" field. |
<Zm> |
Is the name of the second source scalable vector register, encoded in the "Zm" field. |
<const> |
Is the const specifier,
encoded in
rot:
|
CheckSVEEnabled(); integer elements = VL DIV esize; bits(PL) mask = P[g]; bits(VL) operand2 = Z[m]; bits(VL) result = Z[dn]; for e = 0 to elements-1 pair = e - (e MOD 2); if ElemP[mask, e, esize] == '1' then if IsEven(e) then // real part // realD = realN -/+ imagM element2 = Elem[operand2, pair + 1, esize]; if !neg_imag then element2 = FPNeg(element2); else // imaginary part // imagD = imagN +/- realM element2 = Elem[operand2, pair, esize]; if neg_imag then element2 = FPNeg(element2); Elem[result, e, esize] = FPAdd(Elem[result, e, esize], element2, FPCR); Z[dn] = result;
Release: 00rel4.1-manual
Copyright © 2010-2017 ARM Limited or its affiliates. All rights reserved. This document is Non-Confidential.