Apple Microarchitecture Research by Dougall Johnson

M1/A14 P-core (Firestorm): Overview | Base Instructions | SIMD and FP Instructions
M1/A14 E-core (Icestorm):  Overview | Base Instructions | SIMD and FP Instructions

LD4 (multiple, 8H)

Test 1: uops

Code:

  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop
  mov x0, 1
  mov x1, 2
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 12.000

Issues: 12.012

Integer unit issues: 0.001

Load/store unit issues: 4.000

SIMD/FP unit issues: 8.012

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch simd uop (57)dispatch ldst uop (58)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map ldst uop (7d)map simd uop (7e)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)
7200530228120771806840088016400012000591521200040008000400020000140008000
7200429927120131801240008000400012000591361200040008000400020000140008000
7200429925120131801240008000400012000591361200040008000400020000140008000
7200429967120131801240008000400012000591361200040008000400020000140008000
7200429925120131801240008000400012000591361200040008000400020000140008000
7200429933120131801240008000400012000591361200040008000400020000140008000
7200429921120131801240008000400012000591361200040008000400020000140008000
7200429921120131801240008000400012000591361200040008000400020000140008000
7200429966120131801240008000400012000591361200040008000400020000140008000
7200429925120131801240008000400012000591361200040008000400020000140008000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  ld4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 4.0007

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)
960205320154960197101640074320022100640036320034300960948446927696019020032003464006620032000816000401320000640000100
960204320058960139101640032320006100640010320008300960036537640296011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960064640039096011820032000864001620032000816000401320000640000100
960204320064960131101640024320006100640010320008300960024537630696011820032000864001620032000816000401320000640000100
960204320036960111101640004320006100640010320008300960024640029496011820032000864001620032000816000401320000640000100
960204320048960127101640020320006100640010320008300960024640029496011820032000864001620032000816000401320000640000100
960205320097960189101640054320034100640064320008300960160640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 4.0007

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)
960025320173960119116400863200221064003632003430960110486466496010020320034640066203200081600040132000064000010
960024320052960039116400283200001064000032000030960048640032896001020320000640000203200001600000132000064000010
960024320052960039116400283200001064000032003630960120573510896011020320036640072203200001600000132000064000010
960024320060960039116400283200001064000032000030960012640032896001020320000640000203200001600000132000064000010
960024320052960039116400283200001064000032006430960532518630096019020320064640128203200001600000132000064000010
960024320052960039116400283200001064000032000030960012640032896001020320000640000203200001600000132000064000010
960024320052960039116400283200001064000032003630961068587566096011020320036640072203200001600000132000064000010
960024320052960039116400283200001064000032000030960012640032896001020320000640000203200001600000132000064000010
960024320052960039116400283200001064000032003630960120429502896011020320036640072203200001600000132000064000010
960024320052960039116400283200001064000032000030960012640032896001020320000640000203200001600000132000064000010