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

Test 1: uops

Code:

  ldr d0, [x6, w7, sxtw]
  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)
10056521031110301000821810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000800610001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045431001110001000798210001000200011000

Test 2: Latency 1->2 roundtrip

Chain cycles: 3

Code:

  ldr d0, [x6, w7, sxtw]
  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.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)
502051001546010840101100061000130130100151001426695441045628107086550162302491001610017602242000810004400011000040100
502041000496010340101100021000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502051000746011140107100031000130133100161000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426692661045642107081450110302121000410004602242000810004400011000040100

1000 unrolls and 10 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)
500251001556001840011100061000130040100151000026692381046842107188750010300201000010000600202000010000400011000040010
500241000476001340011100021000030010100001001526696611047096107214750073300701001610017600202000010000400011000040010
500241000476001340011100021000030010100001000026692821046913107195050010300201000010000600202000010000400011000040010
500241000476001340011100021000030010100001000026692821046913107195050010300201000010000600202000010000400011000040010
500241000476001340011100021000030010100001000026692821046913107195050010300201000010000600202000010000400011000040010
500261001656003140023100061000230073100271000026693631046947107198450010300201000010000600202000010000400011000040010
500241000486001340011100021000030010100001000026693631046949107198350010300201000010000600202000010000400011000040010
500241000486001340011100021000030010100001000026693361046937107197450010300201000010000600202000010000400011000040010
500241000506001340011100021000030010100001000026692821046913107195050010300201000010000600202000010000400011000040010
500251000796002240017100041000130043100151000026697951047134107216650010300201000010000600202000010000400011000040010

Test 3: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldr d0, [x6, w7, sxtw]
  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.0049

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)
502051001466010840101100061000130130100151000326691241045470107065050109302101000410004602242000810004400011000040100
502041000476010340101100021000030103100031000426692931045654107082550110302121000410004602202000810004400011000040100
502041000496010340101100021000030103100031000426692121045618107079250110302121000410004603782005810030400111000040100
502041000496010340101100021000030103100031000426692661045642107081650110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004603002003410017400051000040100
502041000826010340101100021000030103100031000426692931045651107082550110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031002826709081046298107156950219302861003010029603022003210017400071000040100
502051001216011340107100051000130133100151000426692391045630107080350110302121000410004602242000810004400011000040100

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)
500251003486001840011100061000130040100151000426694371047022107206250020300321000410004600442000810004400011000040010
500241000496001340011100021000030013100031000426691671046912107195250020300321000410004600442000810004400011000040010
500241000426001240011100011000030013100031000026691471046858107189550010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241001036001240011100011000030010100001000026692281046891107192850010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241000436001240011100011000030010100001000026692821046914107195150010300201000010000600202000010000400011000040010
500241000456001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010

Test 4: throughput

Count: 8

Code:

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

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)
80205403068013510180034100800083002801888010820080012200160024180000100
80205401058013610180035100800083006401948010820080012200160024180000100
80204400548010110180000100800103006419708011020080014200160024180000100
80204400528010110180000100800083006403748010820080012200160024180000100
80204400488010110180000100800593005517798015920080072200160024180000100
80204400458010110180000100800083006401948010820080012200160024180000100
80204400458010110180000100800083006404108010820080012200160024180000100
80204400458010110180000100800083006401948010820080012200160024180000100
80204401688013410180033100800083006402848010820080012200160024180000100
80204400458010110180000100800083006403208010820080012200160024180000100

1000 unrolls and 10 iterations

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

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)
80025402538004511800341080000303202188001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080057303334358006720800692016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080000306400528001020800002016000018000010
80024400838001711800061080000306399828001020800002016000018000010
80024400528001111800001080000306399828001020800002016000018000010
80024400438001111800001080000306400908001020800002016000018000010