05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Instruction Details<br />

A8.6.27 CBNZ, CBZ<br />

Compare <strong>and</strong> Branch on Nonzero <strong>and</strong> Compare <strong>and</strong> Branch on Zero compare the value in a register with<br />

zero, <strong>and</strong> conditionally branch forward a constant value. They do not affect the condition flags.<br />

Encoding T1 <strong>ARM</strong>v6T2, <strong>ARM</strong>v7<br />

CB{N}Z , Not permitted in IT block.<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 0 1 1 op 0 i 1 imm5 Rn<br />

n = UInt(Rn); imm32 = ZeroExtend(i:imm5:’0’, 32); nonzero = (op == ‘1’);<br />

if InITBlock() then UNPREDICTABLE;<br />

A8-66 Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0406B

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!