35.3.9.1. INTEGER BITS AND BITSTRINGS ON SPARC





SPARC format 3
+-----------------------+------------------------+
| 31..30	10      | 31..30	10	 |
| 29..25	rd	| 29..25	rd       |
| 24..19	op3	| 24..19	op3      | 
| 18..14	0s	| 18..14	0s       |
| 13		0	| 13		1        |
| 12..5		---	| 12..0		simm13   |
| 4..0		rs2	|	                 |
+-----------------------+------------------------+	

	Opcode		Op3		Operation
	popc		10 1110		Population Count

popc	reg(rs2),reg(rd)
popc	simm13,reg(rd)

		r[rd] <- number of one bits in r[rs2]
			 or in sign_extend(simm13)


// ----------------------------------------------------------------------


Index Prev Next