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

Test 1: uops

Code:

  ldr s0, [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)
10056671031110301000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000
10045451001110001000799810001000200011000

Test 2: Latency 1->2 roundtrip

Chain cycles: 3

Code:

  ldr s0, [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.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)
502051001526010840101100061000130130100151000326691781045492107067250109302101000410004602202000810004400011000040100
502041000496010340101100021000030103100031000426690771045563107073750110302121000410004602942003210017400071000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000476010240101100011000030103100031000426690771045563107073750110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031001726693801045615107081950165302481001710016602242000810004400011000040100
502041000426010240101100011000030103100031000426691581045596107077050110302121000410004602242000810004400011000040100
502041000406010240101100011000030103100031000326689331045390107057350109302101000410004602242000810004400011000040100

1000 unrolls and 10 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)
500251001576001840011100061000130040100151000326693121046916107195750019300301000410004600202000010000400011000040010
500241000496001340011100021000030010100001000026693361046935107197250010300201000010000600202000010000400011000040010
500241000496001340011100021000030010100001000026693361046935107197250010300201000010000600202000010000400011000040010
500241000516001340011100021000030010100001000026693361046935107197250010300201000010000600202000010000400011000040010
500251000816002240017100041000130043100151000026696331047062107209550010300201000010000600202000010000400011000040010
500241000496001340011100021000030010100001000026694441046983107201650010300201000010000600202000010000400011000040010
500241000526001340011100021000030013100031000026693361046935107197250010300201000010000600202000010000400011000040010
500241000476001340011100021000030010100001000026692821046913107195050010300201000010000600202000010000400011000040010
500241000476001340011100021000030010100001000026692821046913107195050010300201000010000600202000010000400011000040010
500241000476001340011100021000030010100001000026692821046913107195050010300201000010000600202000010000400011000040010

Test 3: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldr s0, [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.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)
502051003106010840101100061000130130100151000326692211045567107074250109302101000410004602242000810004400011000040100
502041000516010340101100021000030103100031000426692661045640107081450110302121000410004602202000810004400011000040100
502041000426010240101100011000030103100031000426692931045651107082550110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031001426696131045768107096750162302481001610017602242000810004400011000040100
502041000426010240101100011000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000426010240101100011000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502051001266011140107100031000130133100151000426692931045652107082550110302121000410004602242000810004400011000040100

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)? simd retires (ee)? int retires (ef)
5002510015660018400111000610001300401001510000266933610469351071972500103002010000100006002020000100004000110000040010
5002410004960013400111000210000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002510007260020400151000310002300431001510000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004560012400111000110000300101000010000266920110468801071917500103002010000100006002020000100004000110000040010

Test 4: throughput

Count: 8

Code:

  ldr s0, [x6, x7]
  ldr s0, [x6, x7]
  ldr s0, [x6, x7]
  ldr s0, [x6, x7]
  ldr s0, [x6, x7]
  ldr s0, [x6, x7]
  ldr s0, [x6, x7]
  ldr s0, [x6, x7]
  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)
80205402178013710180036100800083002562428010820080012200160024180000100
80204400488010110180000100800083006400288010820080012200160028180000100
80204400598010110180000100800083002800068010820080012200160024180000100
80204400518010510180004100800083006400128010820080012200160024180000100
80204400458010110180000100800083006400128010820080012200160024180000100
80204400458010110180000100800083006401208010820080012200160024180000100
80204400508010110180000100800083006400128010820080012200160024180000100
80204400458010110180000100800083006401208010820080012200160024180000100
80204400488010110180000100800083006400668010820080012200160024180000100
80204400458010110180000100800083006400128010820080012200160024180000100

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)
80025403198004511800341080008304000228001820800122016000018000010
80024400548001111800001080000306403228001020800002016000018000010
80024400518001111800001080000306401608001020800002016000018000010
80025401018004811800371080000302400008001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010
80024400458001111800001080000306399988001020800002016000018000010