Skip to content

Commit 3f8b967

Browse files
committed
Some tweaks to the SVE2p1 load and store intrinsics
The pre-SVE2p1 gather and scatter intrinsics allow vector displacements (offsets or indices) to be either signed or unsigned. svld1q and svst1q instead required them to be unsigned. This patch adds signed versions too, for consistency. Also, the SVE2p1 stores were specified to take pointers to const, but they ought to be pointers to non-const instead.
1 parent 73c35a3 commit 3f8b967

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

main/acle.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ Armv8.4-A [[ARMARMv84]](#ARMARMv84). Support is added for the Dot Product intrin
431431
* Changed `__ARM_NEON_SVE_BRIDGE` to refer to the availability of the
432432
[`arm_neon_sve_bridge.h`](#arm_neon_sve_bridge.h) header file, rather
433433
than the [NEON-SVE bridge](#neon-sve-bridge) intrinsics.
434+
* Removed extraneous `const` from SVE2.1 store intrinsics.
434435

435436
### References
436437

@@ -9221,11 +9222,13 @@ Gather Load Quadword.
92219222
// _mf8, _bf16, _f16, _f32, _f64
92229223
svint8_t svld1q_gather[_u64base]_s8(svbool_t pg, svuint64_t zn);
92239224
svint8_t svld1q_gather[_u64base]_offset_s8(svbool_t pg, svuint64_t zn, int64_t offset);
9225+
svint8_t svld1q_gather_[s64]offset[_s8](svbool_t pg, const int8_t *base, svint64_t offset);
92249226
svint8_t svld1q_gather_[u64]offset[_s8](svbool_t pg, const int8_t *base, svuint64_t offset);
92259227

92269228
// Variants are also available for:
92279229
// _u16, _u32, _s32, _u64, _s64
92289230
// _bf16, _f16, _f32, _f64
9231+
svint16_t svld1q_gather_[s64]index[_s16](svbool_t pg, const int16_t *base, svint64_t index);
92299232
svint16_t svld1q_gather_[u64]index[_s16](svbool_t pg, const int16_t *base, svuint64_t index);
92309233
svint16_t svld1q_gather[_u64base]_index_s16(svbool_t pg, svuint64_t zn, int64_t index);
92319234
```
@@ -9295,14 +9298,14 @@ Contiguous store of single vector operand, truncating from quadword.
92959298
``` c
92969299
// Variants are also available for:
92979300
// _u32, _s32
9298-
void svst1wq[_f32](svbool_t, const float32_t *ptr, svfloat32_t data);
9299-
void svst1wq_vnum[_f32](svbool_t, const float32_t *ptr, int64_t vnum, svfloat32_t data);
9301+
void svst1wq[_f32](svbool_t, float32_t *ptr, svfloat32_t data);
9302+
void svst1wq_vnum[_f32](svbool_t, float32_t *ptr, int64_t vnum, svfloat32_t data);
93009303

93019304

93029305
// Variants are also available for:
93039306
// _u64, _s64
9304-
void svst1dq[_f64](svbool_t, const float64_t *ptr, svfloat64_t data);
9305-
void svst1dq_vnum[_f64](svbool_t, const float64_t *ptr, int64_t vnum, svfloat64_t data);
9307+
void svst1dq[_f64](svbool_t, float64_t *ptr, svfloat64_t data);
9308+
void svst1dq_vnum[_f64](svbool_t, float64_t *ptr, int64_t vnum, svfloat64_t data);
93069309
```
93079310

93089311
#### ST1Q
@@ -9315,12 +9318,14 @@ Scatter store quadwords.
93159318
// _mf8, _bf16, _f16, _f32, _f64
93169319
void svst1q_scatter[_u64base][_s8](svbool_t pg, svuint64_t zn, svint8_t data);
93179320
void svst1q_scatter[_u64base]_offset[_s8](svbool_t pg, svuint64_t zn, int64_t offset, svint8_t data);
9318-
void svst1q_scatter_[u64]offset[_s8](svbool_t pg, const uint8_t *base, svuint64_t offset, svint8_t data);
9321+
void svst1q_scatter_[s64]offset[_s8](svbool_t pg, uint8_t *base, svint64_t offset, svint8_t data);
9322+
void svst1q_scatter_[u64]offset[_s8](svbool_t pg, uint8_t *base, svuint64_t offset, svint8_t data);
93199323

93209324
// Variants are also available for:
93219325
// _u16, _u32, _s32, _u64, _s64
93229326
// _bf16, _f16, _f32, _f64
9323-
void svst1q_scatter_[u64]index[_s16](svbool_t pg, const int16_t *base, svuint64_t index, svint16_t data);
9327+
void svst1q_scatter_[s64]index[_s16](svbool_t pg, int16_t *base, svint64_t index, svint16_t data);
9328+
void svst1q_scatter_[u64]index[_s16](svbool_t pg, int16_t *base, svuint64_t index, svint16_t data);
93249329
void svst1q_scatter[_u64base]_index[_s16](svbool_t pg, svuint64_t zn, int64_t index, svint16_t data);
93259330
```
93269331

0 commit comments

Comments
 (0)