
3:256
Volume 3: Instruction Reference
sub
sub — Subtract
Format:
(
qp
) sub
r
1
=
r
2
,
r
3
register_form
(
qp
) sub
r
1
=
r
2
,
r
3
, 1
minus1_form, register_form
(
qp
) sub
r
1
=
imm
8
,
r
3
imm8_form
Description:
The second source operand (and an optional constant 1) are subtracted from the first
operand and the result placed in GR
r
1
. In the register form the first operand is GR
r
2
; in
the immediate form the first operand is taken from the sign-extended
imm
8
encoding
field.
The minus1_form is available only in the register_form (although the equivalent effect
can be achieved by adjusting the immediate).
Operation:
if (PR[
qp
]) {
check_target_register(
r
1
);
tmp_src = (register_form ? GR[
r
2
] : sign_ext(
imm
8
, 8));
tmp_nat = (register_form ? GR[
r
2
].nat : 0);
if (minus1_form)
GR[
r
1
] = tmp_src - GR[
r
3
] - 1;
else
GR[
r
1
] = tmp_src - GR[
r
3
];
GR[
r
1
].nat = tmp_nat || GR[
r
3
].nat;
}
Interruptions:
Illegal Operation fault
Содержание 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: ......