Lawrence D’Oliveiro <l…@nz.invalid> wrote:
> On Tue, 24 Nov 2026 01:39:58 GMT, MitchAlsup wrote: >
>> When memcopy() is an instruction, small machines can run at >> cache-width, and large machines can run at cache-width × ports ... >> >> When memcopy is for(i = 0; i < count; i++ ) to[i] = from[i]; your >> vVM unit can run it at SIMD-widths {say 512-bits copied per cycle}.
> > Do SIMD instructions have access to wider or faster memory channels > than regular CPU instructions do?
Normally yes. Note that "memory" here mostly means L1 cache. Normal operations read from cache and write to it. Traffic with deeper level of memory hierarchy are handled by cache controller. Nontemporal SIMD changes this somewhat, but not too much. Fastest data path are between registers and ALU. Normal registers have 64-bit width and are connected by 64-bit bus(es) to ALU. Since single tranfer can handle at most 64 bits also bus(es) to cache are 64-bit. SIMD instruction can operate on longer units. In low end models SIMD ALU and data paths may be narrower than official (architectural) width, on higer models widths may be the same. AFAIK 16 byte, 32 byte and 64 bytes widths are currently in use. Theoretically regular CPU instructions could execute in SIMD ALU, but normally this would be a waste. But special cases like REP MOVSB (or Mitch vVM) may be recoginized by CPU and executed using wider data paths (possibly SIMD, possibly using extra hardware).
-- Waldek Hebisch