sub dest, src0, src1
| Name | Registers |
|---|---|
| dest | An output register or temporary register. |
| src0 | A temporary register, input register, or floating-point constant register. |
| src1 | A temporary register, input register, or floating-point constant register. |
You cannot specify a floating-point constant register for both src0 and src1.
You cannot specify input registers using different indices for src0 and src1 at the same time.
Stores the difference between src0 and src1 in dest.
dest.x = src0.x - src1.x dest.y = src0.y - src1.y dest.z = src0.z - src1.z dest.w = src0.w - src1.w
add dest, src0, -src1
sub r0, c1, v2 sub o0.xy, r7.yzww, c4.xxyz
| 1 | 2 | 3 | 4 | ||
|---|---|---|---|---|---|
| add | read | ADD | post | write |
CONFIDENTIAL