246
Format:
vcr vd, vs, vt
vcr vd, vs, vt[e]
Description:
The 16-bit elements of vector register
vt
are compared and selected on an element-by-element basis
with the elements of vector register
vs
. The clip test selects are an optimization for comparing the
elements in
vs
to a scalar element in
vt
, or the vector
vt
, such as comparing
w
to
xyz
or clamping a
vector to a +/- range.
VCR
performs
(-VT >= VS <= VT)
generating 16 bits in VCC and updating VCO and VCE with equal and sign values. It interprets
vt
as a 1’s complement number, useful for clamping to a power of 2.
VCR
is a single-precision
instruction, and ignores VCO for input.
The results are placed into vector register
vd
.
If an element specification
e
is present for vector register
vt
, the selected scalar element(s) of
vt
is
used as described below.
VCR
Test Low
Vector Select Crimp
31
25
26
20
21
15
16
0
COP2
e
vt
6
4
5
0 1 0 0 1 0
VCR
1
1
5
5
vd
vs
5
10
6
11
6
VCR
1 0 0 1 1 0
24
Summary of Contents for Ultra64
Page 2: ...2 ...
Page 10: ...10 ...
Page 12: ...12 Figure 6 2 buildtask Operation 137 ...
Page 14: ...14 ...
Page 80: ...80 Vector Unit Instructions vmadm dres_int dres_int vconst 3 vmadn dres_frac vconst vconst 0 ...
Page 104: ...104 RSP Coprocessor 0 ...
Page 150: ...150 Advanced Information ...
Page 155: ...Revision 1 0 155 ...
Page 248: ...248 Exceptions None ...
Page 251: ...Revision 1 0 251 Exceptions None ...
Page 254: ...254 Exceptions None ...
Page 257: ...Revision 1 0 257 Exceptions None ...
Page 293: ...Revision 1 0 293 Exceptions None ...
Page 316: ...316 Exceptions None ...