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, 2D)

Test 1: uops

Code:

  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [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.006

Integer unit issues: 0.001

Load/store unit issues: 4.000

SIMD/FP unit issues: 8.006

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)
7200635303120791807040088016400012076593161200040008000400220008140008000
7200530439120191801440048008400012082592681200040008000400420020140008000
7200430409120071800640008000400412012591401201240048008400020000140008000
7200430143120071800640008000400012000590801200040008000400020000140008000
7200430246120071800640008000400812178594941202040088012400120000140008000
7200430099120071800640008000400012000590801200040008000400020000140008000
7200430298120071800640008000400012000590801200040008000400020000140008000
7200430033120071800640008000400012000590801200040008000400020000140008000
7200430011120071800640008000400012000590801200040008000400020000140008000
7200430967120071800640008000400012000591121200040008000400020000140008000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6]
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6]
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6]
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6]
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6]
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6]
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6]
  ld4 { v0.2d, v1.2d, v2.2d, v3.2d }, [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)
960206320209960267101640120320046100640082320008300960036640039096011820032000864001620032000816000401320000640000100
960204320058960139101640032320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960205320096960197101640062320034100640064320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960205320088960201101640066320034100640064320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960205320088960201101640066320034100640064320008300960036640039096011820032000864001620032000816000401320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032003616001801320000640000100
960204320052960135101640028320006100640010320008300960036640039096011820032000864001620032000816000401320000640000100
960205320093960197101640062320034100640064320008300960118640039096011820032000864001620032003616001801320000640000100

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)
960025320155960115116400823200221064003632003630960120617697696011020320036640072203200001600000132000064000010
960024320054960039116400283200001064000032000030960012640038896001020320000640000203200001600000132000064000010
960024320054960039116400283200001064000032003630960120559400096011020320036640072203200001600000132000064000010
960024320054960039116400283200001064000032002830961284586508496009220320028640056203200001600000132000064000010
960024320054960039116400283200001064000032003630960496561087296011020320036640072203200001600000132000064000010
960024320054960039116400283200001064000032000030960012640038896001020320000640000203200001600000132000064000010
960024320054960039116400283200001064000032003630961134587047896011020320036640072203200001600000132000064000010
960024320054960039116400283200001064000032000030960012640038896001020320000640000203200001600000132000064000010
960024320054960039116400283200001064000032002830960104408127896009220320028640056203200001600000132000064000010
960024320054960039116400283200001064000032000030960036640038896001020320000640000203200001600000132000064000010