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, 4S)

Test 1: uops

Code:

  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [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 int uop (56)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)
72005303481208118072400808016400012000591521200040008000400020000140008000
72004300131201318012400008000400012000591361200040008000400020000140008000
72004299751201318012400008000400012000591361200040008000400020000140008000
72004299781201318012400008000400012000591361200040008000400020000140008000
72004299791201318012400008000400012000591361200040008000400020000140008000
72005299841201318012400008000400012000591361200040008000400020000140008000
72004302141201318012400008000400012000591361200040008000400020000140008000
72004299731201318012400008000400012000591361200040008000400020000140008000
72004299681201318012400008000400012027592041200040008000400020000140008000
72004299791201318012400008000400012000591361200040008000400020000140008000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6]
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6]
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6]
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6]
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6]
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6]
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [x6]
  ld4 { v0.4s, v1.4s, v2.4s, v3.4s }, [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)
960206320213960263101640116320046100640082320008300960036537640296011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960066640047696011820032000864001620032000816000401320000640000100
960204320054960133101640026320006100640010320008300960064640047696011820032000864001620032000816000401320000640000100
960204320054960129101640022320006100640010320008300960036640039096011820032000864001620032003616001801320000640000100
88465731113188481822385876512949292135587640320008300960078640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960064640039096011820032000864001620032003616001801320000640000100

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)
960025320149960115116400823200221064003632003630960120428502896011020320036640072203200001600000132000064000010
960024320052960039116400283200001064000032000030960012640032896001020320000640000203200001600000132000064000010
960024320052960039116400283200001064000032003630961596585917896011020320036640072203200001600000132000064000010
960024320604960507116403283201681064033632000030960012640032896001020320000640000203200001600000132000064000010
960025320088960111116400663200341064006432000030960012640032896001020320000640000203200001600000132000064000010
960024320054960045116400283200061064001032000030960024486443896001020320000640000203200001600000132000064000010
960024320054960039116400283200001064000032006430961170588339896019220320064640128203200001600000132000064000010
960024320054960039116400283200001064000032003630960416549785096011020320036640072203200081600040132000064000010
960025320106960107116400623200341064006432000030960012640038896001020320000640000203200001600000132000064000010
960024320054960039116400283200001064000032000030960168640040096001020320000640000203200001600000132000064000010