SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 117

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
11.13.3.5
11.13.4
11.13.4.1
11.13.4.2
11.13.4.3
11.13.4.4
11.13.4.5
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
ASR
LSLS
LSR
ROR
RRX
CLZ
CLZNE
CLZ
Examples
Syntax
Operation
Restrictions
Condition flags
Examples
R7, R8, #9
R1, R2, #3
R4, R5, #6
R4, R5, R6
R4, R5
R4,R9
R2,R3
Count Leading Zeros.
where:
cond
Rd
Rm
The CLZ instruction counts the number of leading zeros in the value in Rm and returns the result
in Rd. The result value is 32 if no bits are set in the source register, and zero if bit[31] is set.
Do not use SP and do not use PC.
This instruction does not change the flags.
• the C flag is updated to the last bit shifted out, except when the shift length is 0, see
Operations” on page
CLZ{cond} Rd, Rm
; Arithmetic shift right by 9 bits
; Logical shift left by 3 bits with flag update
; Logical shift right by 6 bits
; Rotate right by the value in the bottom byte of R6
; Rotate right with extend
is an optional condition code, see
is the destination register.
is the operand register.
93.
“Conditional execution” on page
SAM3X/A
SAM3X/A
96.
“Shift
117
117

Related parts for SAM3X8E