
3:216
Volume 3: Instruction Reference
popcnt
popcnt — Population Count
Format:
(
qp
) popcnt
r
1
=
r
3
Description:
The number of bits in GR
r
3
having the value 1 is counted, and the resulting sum is
placed in GR
r
1
.
Operation:
if (PR[
qp
]) {
check_target_register(
r
1
);
res = 0;
// Count up all the one bits
for (i = 0; i < 64; i++) {
res += GR[
r
3
]{i};
}
GR[
r
1
] = res;
GR[
r
1
].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: ......