Intel ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS MANUAL VOLUME 1 REV 2.3 Manual page 1125

Hide thumbs Also See for ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS MANUAL VOLUME 1 REV 2.3:
Table of Contents

Advertisement

pshradd
pshradd — Parallel Shift Right and Add
(
) pshradd2
Format:
qp
The four signed 16-bit data elements of GR
Description:
right by count
right shift operation fills the high-order bits of each element with the initial value of the
sign bits of the data elements in GR
saturation. The four signed 16-bit results of the add are placed in GR
operand can be shifted by 1, 2 or 3 bits.
Operation:
if (PR[qp]) {
check_target_register(r
x[0] = GR[r
x[1] = GR[r
x[2] = GR[r
x[3] = GR[r
max = sign_ext(0x7fff, 16);
min = sign_ext(0x8000, 16);
for (i = 0; i < 4; i++) {
temp[i] = shift_right_signed(sign_ext(x[i], 16), count
res[i] = temp[i] + sign_ext(y[i], 16);
if (res[i] > max)
if (res[i] < min)
}
GR[r
] = concatenate4(res[3], res[2], res[1], res[0]);
1
GR[r
].nat = GR[r
1
}
Illegal Operation fault
Interruptions:
3:226
=
, count
,
r
r
r
1
2
2
3
bits, and added to the four signed 16-bit data elements of GR
2
);
1
]{15:0};
y[0] = GR[r
2
]{31:16};
y[1] = GR[r
2
]{47:32};
y[2] = GR[r
2
]{63:48};
y[3] = GR[r
2
res[i] = max;
res[i] = min;
].nat || GR[r
2
are each independently shifted to the
r
2
. The add operation is performed with signed
r
2
]{15:0};
3
]{31:16};
3
]{47:32};
3
]{63:48};
3
].nat;
3
A10
. The
r
3
. The first
r
1
);
2
Volume 3: Instruction Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Itanium architecture 2.3

Table of Contents