Hi Guys,
I'm not in a position to make out the difference between vld4_f32
and vld4q_f32
in ARM NEON instructions.
The confusion started when I raised my coding levels and started looking at the assembly instructions rather than the less informative intrinsics.
The reason I need to use vld4 variant instruction here is because, I would like to capture 4 float32_t
's from every 4th position of my large array.
The vld4_f32
intrinsics and the corresponding assembly instructions look like this (From this link)
float32x2x4_t vld4_f32 (const float32_t *)
Form of expected instruction(s): vld4.32 {d0, d1, d2, d3}, [r0]
The vld4q_f32
intrinsics and its corresponding assembly instructions looks like this
float32x4x4_t vld4q_f32 (const float32_t *)
Form of expected instruction(s): vld4.32 {d0, d1, d2, d3}, [r0]
Well, at the intrinsics level the difference I see is the return type, but if I look at the assembly instruction and the number of registers, they both look like the same. How will the compiler or the assembler know the difference between the two?
Can somebody clarify more on this and also explain how I can achieve loading 4 float32_t values which are positioned at every 4th memory location into a single register?