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.51 LDC, LDC2 (immediate)<br />

Load Coprocessor loads memory data from a sequence of consecutive memory addresses to a coprocessor.<br />

If no coprocessor can execute the instruction, an Undefined Instruction exception is generated.<br />

This is a generic coprocessor instruction. Some of the fields have no functionality defined by the architecture<br />

<strong>and</strong> are free for use by the coprocessor instruction set designer. These fields are the D bit, the CRd field, <strong>and</strong><br />

in the Unindexed addressing mode only, the imm8 field.<br />

For more information about the coprocessors see Coprocessor support on page A2-68.<br />

Encoding T1 / A1 <strong>ARM</strong>v6T2, <strong>ARM</strong>v7 for encoding T1<br />

<strong>ARM</strong>v4*, <strong>ARM</strong>v5T*, <strong>ARM</strong>v6*, <strong>ARM</strong>v7 for encoding A1<br />

LDC{L} ,,[,#+/-]{!}<br />

LDC{L} ,,[],#+/-<br />

LDC{L} ,,[],<br />

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

1 1 1 0 1 1 0 P U D W 1 Rn CRd coproc imm8<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

cond 1 1 0 P U D W 1 Rn CRd coproc imm8<br />

if Rn == ‘1111’ then SEE LDC (literal);<br />

if P == ‘0’ && U == ‘0’ && D == ‘0’ && W == ‘0’ then UNDEFINED;<br />

if P == ‘0’ && U == ‘0’ && D == ‘1’ && W == ‘0’ then SEE MRRC, MRRC2;<br />

if coproc == ‘101x’ then SEE “Advanced SIMD <strong>and</strong> VFP”;<br />

n = UInt(Rn); cp = UInt(coproc); imm32 = ZeroExtend(imm8:’00’, 32);<br />

index = (P == ‘1’); add = (U == ‘1’); wback = (W == ‘1’);<br />

Encoding T2 / A2 <strong>ARM</strong>v6T2, <strong>ARM</strong>v7 for encoding T2<br />

<strong>ARM</strong>v5T*, <strong>ARM</strong>v6*, <strong>ARM</strong>v7 for encodingA2<br />

LDC2{L} ,,[,#+/-]{!}<br />

LDC2{L} ,,[],#+/-<br />

LDC2{L} ,,[],<br />

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

1 1 1 1 1 1 0 P U D W 1 Rn CRd coproc imm8<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 1 1 1 1 1 0 P U D W 1 Rn CRd coproc imm8<br />

if Rn == ‘1111’ then SEE LDC (literal);<br />

if P == ‘0’ && U == ‘0’ && D == ‘0’ && W == ‘0’ then UNDEFINED;<br />

if P == ‘0’ && U == ‘0’ && D == ‘1’ && W == ‘0’ then SEE MRRC, MRRC2;<br />

n = UInt(Rn); cp = UInt(coproc); imm32 = ZeroExtend(imm8:’00’, 32);<br />

index = (P == ‘1’); add = (U == ‘1’); wback = (W == ‘1’);<br />

Advanced SIMD <strong>and</strong> VFP See Extension register load/store instructions on page A7-26<br />

A8-106 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!