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, 16B)

Test 1: uops

Code:

  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [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)
7200530437120791807040088016400012035594881200040008000400020000140008000
7200430606120131801240008000400012010591561200040008000400020000140008000
7200430463120131801240008000400012000591361200040008000400020000140008000
7200430496120131801240008000400012000591601200040008000400020000140008000
7200430374120131801240008000400012006591481200040008000400020000140008000
7200430064120131801240008000400012000591361200040008000400020000140008000
7200430058120131801240008000400012000591361200040008000400020000140008000
7200430068120131801240008000400012000591361200040008000400020000140008000
7200430019120131801240008000400012000591361200040008000400020000140008000
7200530168120191801840008000400012000591361200040008000400020000140008000

Test 2: throughput

Count: 8

Code:

  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  ld4 { v0.16b, v1.16b, v2.16b, v3.16b }, [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.0006

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)
960205320172960207101640084320022100640036320034300960120394294496019020032003464006620032000816000401320000640000100
960204320046960125101640018320006100640010320008300960050640024296011820032000864001620032000816000401320000640000100
960204320046960125101640018320006100640010320008300960056640024296011820032000864001620032000816000401320000640000100
960204320046960125101640018320006100640010320008300960062640024296011820032000864001620032003616001801320000640000100
960204320046960125101640018320006100640010320008300960036640024296011820032000864001620032000816000401320000640000100
960204320046960125101640018320006100640010320008300960052640024296011820032000864001620032000816000401320000640000100
960204320047960127101640020320006100640010320008300960056640024296011820032000864001620032000816000401320000640000100
960205320082960191101640056320034100640064320008300960164640024696011820032000864001620032000816000401320000640000100
960204320046960125101640018320006100640010320008300960064640024296011820032000864001620032000816000401320000640000100
960204320046960125101640018320006100640010320008300960036640024296011820032000864001620032000816000401320000640000100

1000 unrolls and 10 iterations

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

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)
960025320157960119116400863200221064003632003430960110486472496010020320034640066203200081600040132000064000010
960025320106960119116400743200341064006432000030960100640023296001020320000640000203200001600000132000064000010
960024320048960031116400203200001064000032003630960108488323696011020320036640072203200001600000132000064000010
960024320048960031116400203200001064000032000030960034640023296001020320000640000203200001600000132000064000010
960024320048960031116400203200001064000032006430960648494492296019220320064640128203200001600000132000064000010
960024320048960031116400203200001064000032000030960000640023296001020320000640000203200001600000132000064000010
960024320048960031116400203200001064000032003630960108403398896011020320036640072203200001600000132000064000010
960024320048960031116400203200001064000032000030960000640023296001020320000640000203200001600000132000064000010
960024320071960045116400283200061064001032000030960060640018096001020320000640000203200001600000132000064000010
960024320046960029116400183200001064000032000030960012640018096001020320000640000203200621600304132000064000010