MOVI
Move immediate (vector)
This instruction places an immediate constant into every vector element of the destination
SIMD&FP register.
Depending on the settings in the CPACR_EL1,
CPTR_EL2, and CPTR_EL3 registers,
and the current Security state and Exception level,
an attempt to execute the instruction might be trapped.
Encoding: Advanced SIMD
Variants: FEAT_AdvSIMD (ARMv8.0)
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 |
0 | | | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | | | | | | | | 0 | 1 | | | | | | | | | | |
| Q | op | | a | b | c | cmode | o2 | | d | e | f | g | h | Rd |
---|
8-bit (op == 0 && cmode == 1110)
MOVI <Vd>.<T>, #<imm8>{, LSL #0}
16-bit shifted immediate (op == 0 && cmode == 10x0)
MOVI <Vd>.<T>, #<imm8>{, LSL #<amount>}
32-bit shifted immediate (op == 0 && cmode == 0xx0)
MOVI <Vd>.<T>, #<imm8>{, LSL #<amount>}
32-bit shifting ones (op == 0 && cmode == 110x)
MOVI <Vd>.<T>, #<imm8>, MSL #<amount>
64-bit scalar (Q == 0 && op == 1 && cmode == 1110)
MOVI <Dd>, #<imm>
64-bit vector (Q == 1 && op == 1 && cmode == 1110)
MOVI <Vd>.2D, #<imm>
Decoding algorithm
if !IsFeatureImplemented(FEAT_AdvSIMD) then EndOfDecode(Decode_UNDEF);
constant integer rd = UInt(Rd);
constant integer datasize = 64 << UInt(Q);
constant bits(64) imm64 = AdvSIMDExpandImm(op, cmode, a:b:c:d:e:f:g:h);
constant bits(datasize) imm = Replicate(imm64, datasize DIV 64);
Operation
CheckFPAdvSIMDEnabled64();
V[rd, datasize] = imm;
Explanations
<Vd>:
Is the name of the SIMD&FP destination register, encoded in the "Rd" field.<T>:
<T>:
<T>:
<imm8>:
Is an 8-bit immediate encoded in "a:b:c:d:e:f:g:h".<amount>:
<amount>:
<amount>:
<Dd>:
Is the 64-bit name of the SIMD&FP destination register, encoded in the "Rd" field.<imm>:
Is a 64-bit immediate 'aaaaaaaabbbbbbbbccccccccddddddddeeeeeeeeffffffffgggggggghhhhhhhh', encoded in "a:b:c:d:e:f:g:h".Operational Notes
If PSTATE.DIT is 1:
-
The execution time of this instruction is independent of:
-
The values of the data supplied in any of its registers.
-
The values of the NZCV flags.
-
The response of this instruction to asynchronous exceptions does not vary based on:
-
The values of the data supplied in any of its registers.
-
The values of the NZCV flags.