MOVI — Move Immediate

Instruction Word

Slot
ae2_slot0
6
3
6
2
6
1
6
0
5
9
5
8
5
7
5
6
5
5
5
4
5
3
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
9
3
8
3
7
3
6
3
5
3
4
3
3
3
2
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9876543210
Format ae_format2 - 64 bit(s)0000 1110
MOVI 1000000000000110
t 3210
imm12b 1
1
1
0
98 76543210

Slot
ae_slot0
6
3
6
2
6
1
6
0
5
9
5
8
5
7
5
6
5
5
5
4
5
3
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
9
3
8
3
7
3
6
3
5
3
4
3
3
3
2
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9876543210
Format ae_format - 64 bit(s) 1111
MOVI 0100
t 3210
imm12b 1
1
1
0
98 76543210

Slot
Inst
6
3
6
2
6
1
6
0
5
9
5
8
5
7
5
6
5
5
5
4
5
3
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
9
3
8
3
7
3
6
3
5
3
4
3
3
3
2
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9876543210
Format x24 - 24 bit(s) 0
MOVI 1010 0010
t 3210
imm12b 76543210 1
1
1
0
98

Slot
ae_slot0
6
3
6
2
6
1
6
0
5
9
5
8
5
7
5
6
5
5
5
4
5
3
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
9
3
8
3
7
3
6
3
5
3
4
3
3
3
2
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9876543210
Format ae_format1 - 64 bit(s)1 1110
MOVI 0100
t 3210
imm12b 1
1
1
0
98 76543210

Slot
ae_minislot2
6
3
6
2
6
1
6
0
5
9
5
8
5
7
5
6
5
5
5
4
5
3
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
9
3
8
3
7
3
6
3
5
3
4
3
3
3
2
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9876543210
Format ae_mini0 - 64 bit(s)01000000000000000000000 1110
MOVI 1 00
t 3210
imm12b 7654 1
1
1
0
98 3210

Assembler Syntax

MOVI at, -2048..2047

C Syntax

#include <xtensa/tie/xt_core.h>

extern int XT_MOVI(immediate i);

Description

(please consult the Xtensa ® Instruction Set Architecture Reference Manual for any cross references and additional information)

MOVI sets address register at to a constant in the range -2048..2047 encoded in the instruction word. The constant is stored in two non-contiguous fields of the instruction word. The processor decodes the constant specification by concatenating the two fields and sign-extending the 12-bit value.

Operation

AR[t] ← imm121120||imm12

Exceptions

EveryInstR Group (see EveryInstR Group:)

Implementation Pipeline

In Out
art Estage

Protos that use MOVI

proto AE_ADDI_32 { out ae_int32 a, in ae_int32 b, in immediate c }{int32 ta, ae_int32 tb}{
MOVI ta, c + 0;
AE_MOVDA32 tb, ta;
AE_ADD32 a, b, tb;
}
proto AE_ADDMI_32 { out ae_int32 a, in ae_int32 b, in immediate c }{int32 ta, ae_int32 tb}{
MOVI ta, c + 0;
AE_MOVDA32 tb, ta;
AE_ADD32 a, b, tb;
}
proto AE_INT32X2_XOR_rinit { out ae_int32x2 d, in int32 a }{int32 t}{
MOVI t, 0;
AE_MOVDA32X2 d, t, a;
}
proto AE_SLAIQ56 { out ae_q56s d, in ae_q56s d0, in immediate sa }{int32 t}{
MOVI t, sa + 0;
AE_SLAAQ56 d, d0, t;
}
proto AE_SLLIQ56 { out ae_q56s d, in ae_q56s d0, in immediate sa }{int32 t}{
MOVI t, sa + 0;
AE_SLAAQ56 d, d0, t;
}
proto AE_SRLIQ56 { out ae_q56s d, in ae_q56s d0, in immediate sa }{int32 t}{
MOVI t, sa + 0;
AE_SRLAQ56 d, d0, t;
}
proto MOVI { out int32 t, in immediate i }{}{
MOVI t, i + 0;
}