AE_SEXT32 — Sign extend based on 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
AE_SEXT32 1000000000010101 1001
ae_fld_dr_to_dr_v 3210
ae_fld_dr_to_dr_v0 3210
ae_fld_tp7 3210

Slot
ae_slot2_0
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
AE_SEXT3211101001
ae_fld_dr_to_dr_v 3210
ae_fld_dr_to_dr_v0 3210
ae_fld_tp7 3210

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
AE_SEXT32 00010111 0100
ae_fld_dr_to_dr_v 3210
ae_fld_dr_to_dr_v0 3210
ae_fld_tp7 3210

Assembler Syntax

AE_SEXT32 aed0..15(ae_dr_to_dr_v), aed0..15(ae_dr_to_dr_v0), 7..22

C Syntax

#include <xtensa/tie/xt_hifi2.h>

extern ae_int32x2 AE_SEXT32(ae_int32x2 d0, immediate bit);

Description

AE_SEXT32 sign-extend (SIMD). Takes the contents of each 32-bit element of register d0 and replicates the bit specified by its immediate operand (in the range 7 to 22) to the high bits and writes the results to register d.

Implementation Pipeline

In Out
ae_dr_to_dr_v0 Mstage ae_dr_to_dr_v Mstage

Protos that use AE_SEXT32

proto AE_SEXT32 { out ae_int32x2 d, in ae_int32x2 d0, in immediate bit }{}{
AE_SEXT32 d, d0, bit + 0;
}
proto AE_SEXT_32 { out ae_int32 a, in ae_int32 b, in immediate c }{}{
AE_SEXT32 a, b, c + 0;
}
proto ae_f16_rtor_ae_f24 { out ae_f24 a, in ae_f16 b }{}{
AE_SEXT32 a, b, 15;
}
proto ae_f16_rtor_ae_f32 { out ae_f32 a, in ae_f16 b }{}{
AE_SEXT32 a, b, 15;
}
proto ae_int16_rtor_ae_int24 { out ae_int24 a, in ae_int16 b }{}{
AE_SEXT32 a, b, 15;
}
proto ae_int16_rtor_ae_int32 { out ae_int32 a, in ae_int16 b }{}{
AE_SEXT32 a, b, 15;
}
proto ae_int16_rtor_ae_int32u { out ae_int32u a, in ae_int16 b }{}{
AE_SEXT32 a, b, 15;
}