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
Summary of Contents for Itanium 9150M
Page 1: ......
Page 209: ...3 200 Volume 3 Instruction Reference padd Interruptions Illegal Operation fault...
Page 405: ...3 396 Volume 3 Resource and Dependency Semantics...
Page 406: ...3 397 Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index...
Page 407: ...3 398 Intel Itanium Architecture Software Developer s Manual Rev 2 3...
Page 419: ...INDEX Index 12 Index for Volumes 1 2 3 and 4...
Page 420: ......