Vector Unit Instructions
VU Select Instructions
70
The VU select operations compare pairs of vector elements and choose
which one to write, based on the outcome of the test.
Figure 3-12 VU Select Opcode Encoding
5
3
1 0 0
Instruction fields are:
Element
: Vector or scalar element of
Type
: One of the following operations:
Table 3-6 VU Select Type Encoding
Type
Instruction
0 0 0
vlt
0 0 1
veq
0 1 0
vne
0 1 1
vge
1 0 0
vcl
1 0 1
vch
1 1 0
vcr
1 1 1
vmrg
Select compares perform an element by element comparison of
using VCO as input, clearing VCO, setting VCC with the result of comparison,
and storing the element for which the comparison is true to
vlt:
veq:
2
0
type
vt
.
VS < VT
VS == VT
vs
vt
and
,
vd
.