ARM / OFFLINE REFERENCE

On this page
← Home

ORR (vector, immediate)

Bitwise inclusive OR (vector, immediate)

This instruction reads each vector element from the destination SIMD&FP register, performs a bitwise OR between each result and an immediate constant, places the result into a vector, and writes the vector to 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.

Shifted immediate class
(FEAT_AdvSIMD)

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 Q 0 0 1 1 1 1 0 0 0 0 0 a b c x x x 1 0 1 d e f g h Rd
op cmode o2

16-bit encoding

(cmode == 10x1)

ORR <Vd>.<T>, #<imm8>{, LSL #<amount>}

32-bit encoding

(cmode == 0xx1)

ORR <Vd>.<T>, #<imm8>{, LSL #<amount>}

Decode (all encodings)

if !IsFeatureImplemented(FEAT_AdvSIMD) then EndOfDecode(Decode_UNDEF); end;
let rd : integer = UInt(Rd);
let datasize : integer{} = 64 << UInt(Q);
let imm64 : bits(64) = AdvSIMDExpandImm(op, cmode, a::b::c::d::e::f::g::h);
let imm : bits(datasize) = Replicate{}(imm64);

Assembler Symbols

<Vd>

Is the name of the SIMD&FP register, encoded in the "Rd" field.

<T>

For the "16-bit" variant: is an arrangement specifier, encoded in Q:

Q <T>
0 4H
1 8H

For the "32-bit" variant: is an arrangement specifier, encoded in Q:

Q <T>
0 2S
1 4S
<imm8>

Is an 8-bit immediate encoded in "a:b:c:d:e:f:g:h".

<amount>

For the "16-bit" variant: is the shift amount encoded in cmode[1]:

cmode[1] <amount>
0 0
1 8
defaulting to 0 if LSL is omitted.

For the "32-bit" variant: is the shift amount encoded in cmode[2:1]:

cmode[2:1] <amount>
00 0
01 8
10 16
11 24
defaulting to 0 if LSL is omitted.

Operation

AArch64_CheckFPAdvSIMDEnabled();
let operand : bits(datasize) = V{}(rd);
V{datasize}(rd) = operand OR imm;

Operational information

This instruction is a data-independent-time instruction as described in About PSTATE.DIT.


Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.