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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Instruction Details<br />

A8.6.52 LDC, LDC2 (literal)<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. The D bit <strong>and</strong> the CRd field have no functionality defined by the<br />

architecture <strong>and</strong> are free for use by the coprocessor instruction set designer.<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} ,,[PC,#-0] Special case<br />

LDC{L} ,,[PC],<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 1 1 1 1 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 1 1 1 1 CRd coproc imm8<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 />

index = (P == ‘1’); add = (U == ‘1’); cp = UInt(coproc); imm32 = ZeroExtend(imm8:’00’, 32);<br />

if W == ‘1’ || (P == ‘0’ && CurrentInstrSet() != InstrSet_<strong>ARM</strong>) then UNPREDICTABLE;<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} ,,[PC,#-0] Special case<br />

LDC2{L} ,,[PC],<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 1 1 1 1 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 1 1 1 1 CRd coproc imm8<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 />

index = (P == ‘1’); add = (U == ‘1’); cp = UInt(coproc); imm32 = ZeroExtend(imm8:’00’, 32);<br />

if W == ‘1’ || (P == ‘0’ && CurrentInstrSet() != InstrSet_<strong>ARM</strong>) then UNPREDICTABLE;<br />

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

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