ARM Instruction Reference
4-38
Copyright © 2000, 2001 ARM Limited. All rights reserved.
ARM DUI 0068B
4.3.7
CLZ
Count Leading Zeroes.
Syntax
CLZ{
cond
}
Rd
,
Rm
where:
cond
is an optional condition code (see
Conditional execution
on page 4-4).
Rd
is the ARM register for the result.
Rd
must not be r15.
Rm
is the operand register.
Usage
The
CLZ
instruction counts the number of leading zeroes 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.
Condition flags
This instruction does not affect the flags.
Architectures
This instruction is available in ARM architecture versions 5 and above.
Examples
CLZ r4,r9
CLZNE r2,r3
Содержание Developer Suite
Страница 10: ...Preface x Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 110: ...Assembler Reference 3 32 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 185: ...ARM Instruction Reference ARM DUI 0068B Copyright 2000 2001 ARM Limited All rights reserved 4 75 Example MSR CPSR_f r5 ...
Страница 238: ...Thumb Instruction Reference 5 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 282: ...Vector Floating point Programming 6 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 360: ...Index Index 6 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...