Why there is no "V_SUB_F64" instruction in AMD's GCN and VEGA instruction set? How do they realise the double precision subtraction?
Asked
Active
Viewed 82 times
1 Answers
1
In section 6.2.1, "Instruction Inputs" of the Instruction Set Architecture document it says:
Instructions using the VOP3 form and also using floating-point inputs have the option of applying absolute value (ABS field) or negate (NEG field) to any of the input operands.
V_ADD_F64
is listed as a VOP3-encoded instruction, so you can negate either or both of the operands to produce (a + b)
, (a - b)
, (-a + b)
, or (-a - b)
.

pmdj
- 22,018
- 3
- 52
- 103
-
Thank you very much. You have solved a big confusion for me. – air_sky_123 Jun 10 '18 at 13:42