m3x2 dest.xy, src0, src1
| Name | Registers |
|---|---|
| dest |
An output register or temporary register. Requires the mask { .xy }. |
| src0 | A temporary register, input register, or floating-point constant register. |
| src1 |
A temporary register, an input register, or a floating-point constant register. Specifies the starting register of a 3x2 matrix. (In other words, if src1 is r0, then the 3x2 matrix is stored in r0 and r1.) |
You cannot specify a floating-point constant register for both src0 and src1.
You cannot specify an input register for both src0 and src1 at the same time.
You cannot specify the same register for dest and src0.
If you set dest to the register that immediately follows src1 (this is src2 in Macro Expansion below), there is no way to anticipate the result because the contents of that register will be updated during the execution of the expanded instructions.
Stores the result of multiplying a 3x2 matrix and a 3-component vector in dest.
src2 = Next_Index_Of ( src1 ) dest.x = ( src0.x * src1.x ) + ( src0.y * src1.y ) + ( src0.z * src1.z ) dest.y = ( src0.x * src2.x ) + ( src0.y * src2.y ) + ( src0.z * src2.z )
dp3 dest.x, src0, src1 dp3 dest.y, src0, src2 // src2 = next index of src1
m3x2 r0.xy, r1, c0 // This is expanded as follows // dp3 r0.x, r1, c0 // dp3 r0.y, r1, c1
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
|---|---|---|---|---|---|---|---|---|
dp3 |
read | MUL | ADD | ADD | post | write | ||
dp3 |
read | MUL | ADD | ADD | post | write |
CONFIDENTIAL