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

SMOV (B to W)

Test 1: uops

Code:

  smov w0, v0.b[1]
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 2.000

Integer unit issues: 1.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)03l2 tlb miss data (0b)1e3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst int alu (97)l1d tlb access (a0)l1d cache writeback (a8)accfd5map dispatch bubble (d6)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10045385004325200010001000100080000519538538370339610001000100053853811100110000007301653510001000539539539539539
10045384004325200010001000100080000519538538370339610001000100053853811100110000007301653510001000539539539539539
10045384004325200010001000100080000519538538370339610001000100053853811100110000037301653510001000539539539539539
10045384006425200010001000100080000519538538370339610001000100053853811100110000007301653510001000539539539539539
10045384004325200010001000100080000519538538370339610001000100053853811100110000807301653510001000539539539539539
100453840126425200010001000100080000519538538370339610001000100053853811100110000037301653510001000539539539539539
10045384004325200010001000100080000519538538370339610001000100053853811100110000007301653510001000539539539539539
10045384004325200010001000100080000519538538370339610001000100053853811100110000007301653510001000539539539539539
10045384004325200010001000100080000519538538370339610001000100053853811100110000007301653510001000539539539539539
10045384004325200010001000100080000519538538370339610001000100053853811100110000007301653510001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  smov w0, v0.b[1]
  fmov d0, x0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 10.0038

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f4f51schedule 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)696d6emap stall dispatch (70)map rewind (75)map stall (76)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)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
20204100038776000000010002389561253010010100100001000010010000100005004778481558040410001310003810003896907697551201002001000410004200100041000410004110003811202011009910010100100001000010000000011113170160099646100001000010100100039100039100039100039100039
20204100038775000000010002589561443010010100100001000010010000100005004778481558034910001310003810003896907697492201002021000410004200100041000410003810003811202011009910010100100001000010000103011113170160099646100001000010100100039100039100039100042100123
20204100038775000000010002389561253010010100100001000210010000100005004778481558034910001310003810003896900397496201002001000010000202100001000010003810003811202011009910010100100001000010000000000013101161199697100001000010100100039100039100039100039100039
20204100038775000000010002389562253010010100100001000010010059100005004778481558034910001310003810003896900397496201002001000010000200100001000010003810003811202011009910010100100001000010000000000013101161199642100001000010100100039100039100041100039100039
202041000677760000000100023895612530100101001000010000100100001005050047811575580349100013100038100198969433976172033420010000100002021048311239101811100207412020110099100101001000010020100060223725000013492251199703100101000010100100121100124100123100039100121
20204100130775000100010010889651453012310120100031000210010119100005814778481563220510001310004110003896901397496201002001000010000200100001000010003810004011202011009910010100100001000010000000000013101161199637100001000010100100039100039100039100039100039
202041000387760000120010002389562253010010100100001000010010000100005004778481558034910001310003810003896900397496201002001000010000200100001000010003810003811202011009910010100100001000010000003000013101161199637100001000010100100039100039100039100039100039
20204100038775000000010002389561253010010100100001000010010000100005004778481558034910001410003810003896900397496201002001000010000200100001000010003810003811202011009910010100100001000010000003000013101161199637100001000010100100039100039100039100041100042
202041000387760000360010002389561253010010100100001000010010000100005004778481558034910001610004010003896900397496201002001000010000200100001000010003810003911202011009910010100100001000010000003000013101161199637100001000010100100039100039100039100039100039
20204100038776000000010002389561253010010100100001000010010000100005004778625558034910001310003910003896900397496201002001000010000200100001000010003810003811202011009910010100100001000010001000000013101161199637100001000010100100039100039100039100039100039

1000 unrolls and 10 iterations

Result (median cycles for code): 10.0038

retire uop (01)cycle (02)03mmu table walk data (08)09l2 tlb miss data (0b)18191e1f3a3f4f5051schedule 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)6061696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)79map 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)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ec? ldst retires (ed)? int retires (ef)f5f6f7f8fd
200241000387490000000010002489561025300101001010000100001010000100005047784815578954001000151000411000389692239752020010020100001000020100001000010003810004111200211091010010100001000100000100000127021622996371000001000010010100039100039100039100039100039
200241000387750000000010002389561025300101001010000100001010000100005047784815578954001000131000381000389692239751820010020100001000020100001000010003810003811200211091010010100001000100000000000127021622996371000001000010010100039100039100039100039100041
200241000397760000000010002389561025300101001010000100001010000100005047784815578954001000131000381000389692339751820010020100001000020100001000010004110003811200211091010010100001000100000000000127021622996371000001000010010100039100039100039100039100039
200241000387750000000010002389561025300101001010000100001010000100005047784815578954001000131000381000389692239751820010020100001000020100001000010003810003811200211091010010100001000100000003000127021611996371000001000010010100039100041100039100039100042
200241000397750000000010002389561025300101001010000100001010000100005047784815578954001000131000411000399692239751820010020100001000020100001000010003810003811200211091010010100001000100000100000127021622996371000001000010010100039100042100039100039100042
20024100038775000001320010002389561025300101001010000100001010000100005047784815579066001000131000381000389692389751820010020100001000020100001000010003810003811200211091010010100001000100000100000127021611996371000001000010010100039100039100126100039100039
200241000417760000000010002489603025300101001010000100001010000100005047784815579064001000141000381000389692239751820010020100001000020100001000010003810003811200211091010010100001000100000100001127021622996371000001000010010100040100039100039100039100039
2002410003977600000120010002389562025300101001010000100001010060100005047786255578954001000131000381000389692239751820010020100001000020100001000010012310003811200211091010010100001000100000000000127021622996371000001000010010100039100040100039100039100039
200241000387750000000010002589561025300101001010000100001010000100005047784815578954001000131000381000419692239751820010020100001000020100001000010003810003811200211091010010100001000100000000000127021622996371000001000010010100039100039100039100039100039
200241000387760000000010002389561025300101001010000100001010000100005047784815579009001000131000381000399692289751820010020100001000020100001000010003810003811200211091010010100001000100000100000185921621996371000001000010010100039100039100039100046100129

Test 3: throughput

Count: 8

Code:

  smov w0, v8.b[1]
  smov w1, v8.b[1]
  smov w2, v8.b[1]
  smov w3, v8.b[1]
  smov w4, v8.b[1]
  smov w5, v8.b[1]
  smov w6, v8.b[1]
  smov w7, v8.b[1]
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)191e3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8020440053322002432251601008010080084100800045006400244001940038401082997663003780104200801112008001640038400381180201100991008010010000211151170016004009180000801004003940039400394003940039
8020440038322000787431601008010080000100800045006400244001940038400382997662999180104200801112008001640038400381180201100991008010010000011151170024104003580000801004003940039400394003940039
802044003832201032251601008010080084100800045006407124001940038400382997662999180104200802852008001640038400381180201100991008010010000211151170016004003580000801004003940039400394003940039
802044003832100032251601008010080000100800045006400244001940038400382997662999180104200800162008001640038400381180201100991008010010000011151170016004003580000801004003940039400394003940039
802044003832200032251601008010080000100800045006400244001940038400382997662999180104200800162008001640038400381180201100991008010010000011151170016004003580000801004003940039400394003940039
802044003832100032251601008010080000100800045006400244001940038400382997662999180104200800162008001640038400381180201100991008010010000011151170016004003580000801004003940039400394003940039
802044003831000032251601008010080000100800045006400244001940038400382997662999180104200800162008001640038400381180201100991008010010000011151170016004003580000801004003940039400394003940039
802044003831100032251601008010080000100800045006400244001940038400382997662999180104200803892008001640038400381180201100991008010010000011151170016004003580000801004003940039400394003940039
8020440038310000322616010880104800041008001050064006640025400454004629973102998680110200800222008002240045400461180201100991008010010000022251271223224004280004801004004640046400464004740046
802044004531000066251601088010480004100800105006400664002540045400452997392998680110200800222008002240045400451180201100991008010010040022251271223224004280004801004004740046400474004740046

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8002440047300000000240225160010800108000010800005064000040019400384003829992730066800912080000208000040038400381180021109108001010000235020311613354003580000800104010340039400394003940039
800244003830000000004325160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000005020171632324003580000800104003940039400394003940039
800254003830000004800101725160010800108000011800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000005027261633364003580000800104003940039400394003940039
800244003830000000004325160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000005020151627194003580000800104003940039400394003940039
800244003830000000004325160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000005021301630314003580000800104003940039400394003940039
800244003831100000004325160010800108000010800005064000040019401034003829992330018800102080000208000040038400381180021109108001010000105020361635354003580000800104003940039400394003940039
8002440038310000000010725160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000035022331631294003580000800104003940039400394003940039
8002440038311000000088825160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000005022371635354003580000800104003940039400394003940039
8002440038310000012004325160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000005022371632134003580000800104003940039400394003940039
800244003831100000004325160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000005038301632334003580000800104003940039400394003940039