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

LDR (register, D)

Test 1: uops

Code:

  ldr d0, [x6, x7]
  mov x7, #4
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)dispatch uop (78)map ldst uop (7d)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)
10056451031110301000816410001000200011000
10045531001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000

Test 2: Latency 1->2 roundtrip

Chain cycles: 3

Code:

  ldr d0, [x6, x7]
  fmov x0, d0
  eor x8, x8, x0
  eor x8, x8, x0
  add x6, x6, x8
  mov x7, #4
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0040

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)? int retires (ef)
502051001476010840101100061000130130100141000326691291045473107065450109302101000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426690231045541107071550110302121000410004602242000810004400011000040100
502041000406010240101100011000030103100031000426690231045541107071550110302121000410004602242000810004400011000040100
502041000406010240101100011000030103100031000426690231045541107071550110302121000410004602242000810004400011000040100
502041000406010240101100011000030103100031000426690231045541107071550110302121000410004602242000810004400011000040100
502041000406010240101100011000030103100031001526695171045729107095550163302501001610017602242000810004400011000040100
502041000506010240101100011000030103100031001626695251045730107090250164302511001610017602242000810004400011000040100
502041000436010240101100011000030103100031000326690051045479107065450109302101000410004602962003610016400051000040100
502041000666010240101100011000030103100031000426690231045541107071550110302121000410004602242000810004400011000040100
502041000406010240101100011000030103100031000426690231045541107071550110302121000410004602242000810004400011000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0042

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)? int retires (ef)
500251001556001840011100061000130040100151000426693561046989107202950020300321000410004600402000810004400011000040010
500241000496001340011100021000030013100031000426691671046912107195250020300321000410004600442000810004400011000040010
500241000426001240011100011000030013100031000426691941046924107196350020300321000410004600442000810004400011000040010
500241000426001240011100011000030013100031000426691671046912107195250020300321000410004600442000810004400011000040010
500241000426001240011100011000030013100031000426691671046912107195250020300321000410004600442000810004400011000040010
500241000466001240011100011000030013100031000426691941046924107196350020300321000410004600442000810004400011000040010
500241000456001240011100011000030013100031000426692211046934107197450020300321000410004600442000810004400011000040010
500241000426001240011100011000030013100031000426691671046912107195250020300321000410004600442000810004400011000040010
500241000526001240011100011000030013100031000426694641047039107207750020300321000410004600442000810004400011000040010
500241000426001240011100011000030013100031000426691671046912107195250020300321000410004600442000810004400011000040010

Test 3: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldr d0, [x6, x7]
  fmov x0, d0
  eor x8, x8, x0
  eor x8, x8, x0
  add x7, x7, x8
  mov x7, #4
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0047

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)? int retires (ef)
502051002216010840101100061000130130100151000326698801045779107096350109302101000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426692121045618107079250110302121000410004602202000810004400011000040100
502041000476010340101100021000030103100031000426692121045618107079250110302121000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426692121045618107079250110302121000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426692121045618107079250110302121000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426692121045618107079250110302121000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426692121045618107079250110302121000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426692121045618107079250110302121000410004602242000810004400011000040100
502051000776011140105100041000230133100151000426694011045698107087250110302121000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426692121045618107079250110302121000410004602242000810004400011000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0040

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)? int retires (ef)
500251001556001840011100061000130040100151000026692381046842107188750010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026709831047646107266050010300201000010000601142003410016400051000040010
500241000516001340011100021000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010

Test 4: throughput

Count: 8

Code:

  ldr d0, [x6, x7]
  ldr d0, [x6, x7]
  ldr d0, [x6, x7]
  ldr d0, [x6, x7]
  ldr d0, [x6, x7]
  ldr d0, [x6, x7]
  ldr d0, [x6, x7]
  ldr d0, [x6, x7]
  mov x7, 8

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
80205401688013110180030100800083002801888010820080012200160142180000100
80204400598010110180000100800593006422048015920080071200160028180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400618010110180000100800083006403568010820080012200160024180000100
80204400538010110180000100800593006460428015920080072200160024180000100
8228253460822821415808671471800083006402488010820080012200160024180000100

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
80025403188004511800341080010306402608002020800142016000018000010
80024400548001111800001080000306402188001020800002016000018000010
80024400548001111800001080000306402188001020800002016000018000010
80024400548001111800001080000306402188001020800002016000018000010
80024400548001111800001080000306402188001020800002016000018000010
80024400548001111800001080000306402188001020800002016000018000010
80024400548001111800001080000306402188001020800002016000018000010
80024400548001111800001080000306402188001020800002016000018000010
80024401228001111800001080000306403268001020800002016000018000010
80024400668001111800001080000306403088001020800002016000018000010