Volume 3: Instruction Reference
3:51
dep
dep — Deposit
Format:
(
qp
) dep
r
1
=
r
2
,
r
3
,
pos
6
,
len
4
merge_form, register_form
(
qp
) dep
r
1
=
imm
1
,
r
3
, pos
6
,
len
6
merge_form, imm_form
(
qp
) dep.z
r
1
=
r
2
,
pos
6
,
len
6
zero_form, register_form
(
qp
) dep.z
r
1
=
imm
8
,
pos
6
,
len
6
zero_form, imm_form
Description:
In the merge_form, a right justified bit field taken from the first source operand is
deposited into the value in GR
r
3
at an arbitrary bit position and the result is placed in
GR
r
1
. In the register_form the first source operand is GR
r
2
; and in the imm_form it is
the sign-extended value specified by
imm
1
(either all ones or all zeroes). The deposited
bit field begins at the bit position specified by the
pos
6
immediate and extends to the left
(towards the most significant bit) a number of bits specified by the
len
immediate. Note
that
len
has a range of 1-16 in the register_form and 1-64 in the imm_form. The
pos
6
immediate has a range of 0 to 63.
In the zero_form, a right justified bit field taken from either the value in GR
r
2
(in the
register_form) or the sign-extended value in
imm
8
(in the imm_form) is deposited into
GR
r
1
and all other bits in GR
r
1
are cleared to zero. The deposited bit field begins at the
bit position specified by the
pos
6
immediate and extends to the left (towards the most
significant bit) a number of bits specified by the
len
immediate. The
len
immediate has
a range of 1-64 and the
pos
6
immediate has a range of 0 to 63.
In the event that the deposited bit field extends beyond bit 63 of the target, i.e.,
len
+
pos
6
> 64, the most significant
len
+
pos
6
- 64 bits of the deposited bit field are
truncated. The
len
immediate is encoded as
len
minus 1 in the instruction.
The operation of
dep r
1
= r
2
, r
3
, 36, 16
is illustrated in
The operation of
dep.z r1 = r2, 36, 16
Figure 2-5.
Deposit Example (merge_form)
Figure 2-6.
Deposit Example (zero_form)
GR r
3
:
GR r
1
:
16
36
52
36
52
GR r
2
:
0
0
0
15
GR r
1
:
16
36
52
GR r
2
:
0
0
0
0
15
Содержание Itanium 9150M
Страница 1: ......
Страница 209: ...3 200 Volume 3 Instruction Reference padd Interruptions Illegal Operation fault...
Страница 301: ...3 292 Volume 3 Pseudo Code Functions Intel Itanium Architecture Software Developer s Manual Rev 2 3...
Страница 405: ...3 396 Volume 3 Resource and Dependency Semantics...
Страница 406: ...3 397 Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index...
Страница 407: ...3 398 Intel Itanium Architecture Software Developer s Manual Rev 2 3...
Страница 419: ...INDEX Index 12 Index for Volumes 1 2 3 and 4...
Страница 420: ......